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"><<a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>></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, <<a href="mailto:wastrel@gmail.com">wastrel@gmail.com</a>> wrote:<br>
> I used the the following snippet to generate data on the client side but<br>
> ended up with errors:<br>
><br>
> Code:<br>
> sm = servermanager<br>
> f = open('trivialproducer.xml', 'r')<br>
> parser = sm.vtkSMXMLParser()<br>
> parser.Parse(f.read())<br>
> parser.ProcessConfiguration(sm.vtkSMObject.GetProxyManager())<br>
> # Update the modules<br>
> sm._updateModules()<br>
><br>
> tp = sm.sources.TrivialProducer()<br>
> obj = tp.GetClientSideObject()<br>
> obj.SetOutput(pd)<br>
><br>
> # use tp as any other source proxy<br>
><br>
><br>
> trivialproducer.xml:<br>
><br>
> <ServerManagerConfiguration><br>
> <ProxyGroup name="sources"><br>
><br>
> <SourceProxy name="TrivialProducer"<br>
> class="vtkPVTrivialProducer"><br>
> </SourceProxy><br>
> </ProxyGroup><br>
><br>
><br>
> Errors:<br>
> ERROR: In<br>
> /home/berk/Work/ReleaseBuilds/ParaView3/Servers/Common/vtkProcessModule.cxx,<br>
> line 1001<br>
> vtkProcessModule (0x807b790): Cannot create object of type<br>
> "vtkPVTrivialProducer".<br>
> while processing<br>
> Message 0 = New<br>
> Argument 0 = string_value {vtkPVTrivialProducer}<br>
> Argument 1 = id_value {40}<br>
><br>
><br>
> ERROR: In<br>
> /home/berk/Work/ReleaseBuilds/ParaView3/Servers/Common/vtkProcessModule.cxx,<br>
> line 1002<br>
> vtkProcessModule (0x807b790): Aborting execution for debugging purposes.<br>
><br>
> Abort<br>
><br>
><br>
</div></div>> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Please keep messages on-topic and check the ParaView Wiki at:<br>
> <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
><br>
><br>
</blockquote></div><br>