Is there any possible ways to write out the client-side data?<br>
<br><br><div class="gmail_quote">On Fri, Apr 23, 2010 at 4:44 PM, Utkarsh Ayachit <span dir="ltr">&lt;<a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

You no longer need the initial part for loading the XML. You can directly use:<br>
<br>
 tp = sm.sources.TrivialProducer()<br>
<br>
and that should work.<br>
<br>
Utkarsh<br>
<div><div></div><div class="h5"><br>
On Fri, Apr 23, 2010 at 5:09 PM,  &lt;<a href="mailto:wastrel@gmail.com">wastrel@gmail.com</a>&gt; wrote:<br>
&gt; I used the the following snippet to generate data on the client side but<br>
&gt; ended up with errors:<br>
&gt;<br>
&gt; Code:<br>
&gt; sm = servermanager<br>
&gt; f = open(&#39;trivialproducer.xml&#39;, &#39;r&#39;)<br>
&gt; parser = sm.vtkSMXMLParser()<br>
&gt; parser.Parse(f.read())<br>
&gt; parser.ProcessConfiguration(sm.vtkSMObject.GetProxyManager())<br>
&gt; # Update the modules<br>
&gt; sm._updateModules()<br>
&gt;<br>
&gt; tp = sm.sources.TrivialProducer()<br>
&gt; obj = tp.GetClientSideObject()<br>
&gt; obj.SetOutput(pd)<br>
&gt;<br>
&gt; # use tp as any other source proxy<br>
&gt;<br>
&gt;<br>
&gt; trivialproducer.xml:<br>
&gt;<br>
&gt; &lt;ServerManagerConfiguration&gt;<br>
&gt; &lt;ProxyGroup name=&quot;sources&quot;&gt;<br>
&gt;<br>
&gt; &lt;SourceProxy name=&quot;TrivialProducer&quot;<br>
&gt; class=&quot;vtkPVTrivialProducer&quot;&gt;<br>
&gt; &lt;/SourceProxy&gt;<br>
&gt; &lt;/ProxyGroup&gt;<br>
&gt;<br>
&gt;<br>
&gt; Errors:<br>
&gt; ERROR: In<br>
&gt; /home/berk/Work/ReleaseBuilds/ParaView3/Servers/Common/vtkProcessModule.cxx,<br>
&gt; line 1001<br>
&gt; vtkProcessModule (0x807b790): Cannot create object of type<br>
&gt; &quot;vtkPVTrivialProducer&quot;.<br>
&gt; while processing<br>
&gt; Message 0 = New<br>
&gt;   Argument 0 = string_value {vtkPVTrivialProducer}<br>
&gt;   Argument 1 = id_value {40}<br>
&gt;<br>
&gt;<br>
&gt; ERROR: In<br>
&gt; /home/berk/Work/ReleaseBuilds/ParaView3/Servers/Common/vtkProcessModule.cxx,<br>
&gt; line 1002<br>
&gt; vtkProcessModule (0x807b790): Aborting execution for debugging purposes.<br>
&gt;<br>
&gt; Abort<br>
&gt;<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at<br>
&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; Please keep messages on-topic and check the ParaView Wiki at:<br>
&gt; <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
&gt;<br>
&gt;<br>
</blockquote></div><br>