<div>Hi All and Seb,</div><div> so sorry for borring you, I have settled the problem down!</div><div><br></div><div> SOLUTION: </div><div> the connect order must be before the view creation!</div><div> just like below:</div><div> paraview.Connect("192.168.0.48", 11111);</div><div><span class="Apple-tab-span" style="white-space:pre"> </span> myview = paraview.CreateIfNeededRenderView();</div><div>Thanks!</div><div>Have a good weekend!</div><div><br></div><div><div style="color:#909090;font-family:Arial Narrow;font-size:12px">------------------</div><div style="font-size:14px;font-family:Verdana;color:#000;"><div style="font-family: Simsun; font-size: medium; line-height: normal;"><br></div></div></div><div><div dir="ltr">Hi Ewin,<div><br></div><div>this version of ParaViewWeb is so old, that I don't remember it on top of my head.</div><div><br></div><div>I will guess that the view was not properly created. (myview) hence the NoneType.</div>
<div>Moreover, you will have an issue with "wirefire" which should be "Wireframe" I believe.</div><div><br></div><div>Seb</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jun 26, 2014 at 4:03 AM, Ewin <span dir="ltr"><<a href="mailto:tiandong@fingergo.com" target="_blank">tiandong@fingergo.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Hi all,</div><div> I want to show paraview result on webpage, and I setup the paraviewweb envi (version 3.98.0). </div>
<div> Method "paraview.loadData" can get a normal source object and show well, but it can only open native file. So, I use "paraview.OpenDataFile" to read the remote file, but I got an Error:</div>
<div> </div><div> <font color="#ff0000"> 'NoneType' object has no attribute 'Representations'</font><span style="line-height:0px"></span></div><div><font color="#ff0000"> </font></div><div><font color="#ff0000"> </font>My Code:</div>
<div> <font color="#ff0000">paraview = new Paraview(serverUrl);<span style="line-height:0px"></span></font></div><div><font color="#ff0000"> ......</font></div><div><font color="#ff0000"> var reader = paraview.OpenDataFile(val);<span style="line-height:0px"></span></font></div>
<div><font color="#ff0000"> <span style="line-height:1.5">paraview.SetDisplayProperties( {</span></font></div><div><font color="#ff0000"><span style="white-space:pre-wrap"> </span>'proxy' : reader <span style="line-height:0px"></span>,</font></div>
<div><font color="#ff0000"><span style="white-space:pre-wrap"> </span> 'view' : myview,</font></div><div><font color="#ff0000"><span style="white-space:pre-wrap"> </span>Representation : 'wirefire<span style="line-height:0px"></span>'</font></div>
<div><font color="#ff0000"><span style="white-space:pre-wrap"> </span> } );</font><span style="line-height:0px"></span></div><div><br></div><div>Any help will be appreciated!</div><div>Thanks all!</div><div><div style="color:#909090;font-family:Arial Narrow;font-size:12px">
------------------</div><div style="font-size:14px;font-family:Verdana;color:#000"><div style="font-family:Simsun;font-size:medium;line-height:normal"><span>------------------</span><span>------------------</span><span>--</span></div>
<div style="font-family:Simsun;font-size:medium;line-height:normal"><span style="line-height:18px"><font face="黑体" color="#999999"><b><a href="http://baike.baidu.com/view/350205.htm#sub9836231" target="_blank">Ewin.TD</a></b></font></span></div>
<div style="font-family:Simsun;font-size:medium;line-height:normal"><div style="line-height:21px"><br></div></div></div></div>
<br></blockquote></div><br></div></div>