You can use the python console instead of a plugin, if you want. Open the python console under the Tools menu and execute:<br><br>filename = "foo.facet"<br><br>import vtkIOPython<br>r = vtkIOPython.vtkUGFacetReader()<br>
r.SetFileName(filename)<br>r.Update()<br>t = TrivialProducer()<br>t.GetClientSideObject().SetOutput(r.GetOutput())<br>t.UpdatePipeline()<br>Show()<br><br><br>Note, this works for paraview in the standard client only mode. This will not work when paraview is connected to a remote server.<br>
<br>Pat<br><br><div class="gmail_quote">On Fri, Oct 14, 2011 at 3:42 PM, Robert Maynard <span dir="ltr"><<a href="mailto:robert.maynard@kitware.com">robert.maynard@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
<br>
Currently in ParaView you can't expose a new reader with a pure XML<br>
based plugin. I have added the feature to mantis so you can track the<br>
feature ( <a href="http://paraview.org/Bug/view.php?id=12657" target="_blank">http://paraview.org/Bug/view.php?id=12657</a>)<br>
<br>
In the meantime you will have build your own plugin which will require<br>
you too build your own version of ParaView or to use the developer<br>
release. I have included the necessary files to make the reader once<br>
you have the correct ParaView version.<br>
<br>
I would recommend reading the<br>
<a href="http://www.vtk.org/Wiki/ParaView/Plugin_HowTo" target="_blank">http://www.vtk.org/Wiki/ParaView/Plugin_HowTo</a> page to understand how<br>
to build your own plugin.<br>
<br>
On Fri, Oct 14, 2011 at 10:06 AM, Robert Maynard<br>
<div><div></div><div class="h5"><<a href="mailto:robert.maynard@kitware.com">robert.maynard@kitware.com</a>> wrote:<br>
> Sure give me a couple of minutes.<br>
><br>
> On Fri, Oct 14, 2011 at 9:45 AM, Micah North<br>
> <<a href="mailto:micah.north@matrixresearch.com">micah.north@matrixresearch.com</a>> wrote:<br>
>> Robert,<br>
>> Do you have an example file that I could use to build off of. I have<br>
>> almost no programming experience. I would really appreciate it.<br>
>> Micah<br>
>><br>
>> On 10/14/11 9:40 AM, "Robert Maynard" <<a href="mailto:robert.maynard@kitware.com">robert.maynard@kitware.com</a>> wrote:<br>
>><br>
>>>You can create an xml plugin that exposes the reader in ParaView. You<br>
>>>should read the wiki page on this at:<br>
>>><a href="http://www.vtk.org/Wiki/ParaView/Plugin_HowTo#XML_Only" target="_blank">http://www.vtk.org/Wiki/ParaView/Plugin_HowTo#XML_Only</a><br>
>>><br>
>>><br>
>>><br>
>>>On Fri, Oct 14, 2011 at 9:33 AM, Micah North<br>
>>><<a href="mailto:micah.north@matrixresearch.com">micah.north@matrixresearch.com</a>> wrote:<br>
>>>> Robert,<br>
>>>> Is there a way that I can expose it. I really appreciate your help.<br>
>>>> Thanks<br>
>>>> Micah<br>
>>>><br>
>>>> On 10/14/11 9:31 AM, "Robert Maynard" <<a href="mailto:robert.maynard@kitware.com">robert.maynard@kitware.com</a>><br>
>>>>wrote:<br>
>>>><br>
>>>>>Hi,<br>
>>>>><br>
>>>>>VTK supports facet files with the vtkUGFacetReader which has not been<br>
>>>>>exposed in ParaView. I don't have any experience with the reader but I<br>
>>>>>don't see why we can't expose it.<br>
>>>>><br>
>>>>>On Thu, Oct 13, 2011 at 9:04 PM, Moreland, Kenneth <<a href="mailto:kmorel@sandia.gov">kmorel@sandia.gov</a>><br>
>>>>>wrote:<br>
>>>>>> Does ParaView support .facet files? There appears to be one in VTK,<br>
>>>>>>some<br>
>>>>>> documentation suggests it should be there<br>
>>>>>> (<a href="http://www.vtk.org/Wiki/ParaView:FAQ" target="_blank">http://www.vtk.org/Wiki/ParaView:FAQ</a>), but ParaView does not seem to<br>
>>>>>>load<br>
>>>>>> them.<br>
>>>>>> -Ken<br>
>>>>>> From: Micah North <<a href="mailto:micah.north@matrixresearch.com">micah.north@matrixresearch.com</a>><br>
>>>>>> Date: Thu, 13 Oct 2011 18:12:50 -0400<br>
>>>>>> To: Kenneth Moreland <<a href="mailto:kmorel@sandia.gov">kmorel@sandia.gov</a>><br>
>>>>>> Subject: Dayton<br>
>>>>>><br>
>>>>>> Dr. Moreland,<br>
>>>>>> I am engineer working at Matrix Research in Dayton, OH. I am trying<br>
>>>>>>to<br>
>>>>>>use<br>
>>>>>> Paraview, but am having difficulty opening a .facet file.<br>
>>>>>>Specificially,<br>
>>>>>> when I click on the file open button and locate the directory where<br>
>>>>>>the<br>
>>>>>>file<br>
>>>>>> is located, I can not see it. I then scroll down to show all files.<br>
>>>>>>When I<br>
>>>>>> click on the .facet file it asks for me to select a reader. So far,<br>
>>>>>>I<br>
>>>>>>have<br>
>>>>>> been unable to make the right selection. I am running ParaView 3.12<br>
>>>>>>on<br>
>>>>>>a<br>
>>>>>> Mac (using Lion).<br>
>>>>>> I really hate to bother you, but would really appreciate any help you<br>
>>>>>>could<br>
>>>>>> offer. Thank you very much for your time.<br>
>>>>>> Sincerely<br>
>>>>>> Micah North<br>
>>>>>> J. Micah North, PhD<br>
>>>>>> Matrix Research & Engineering<br>
>>>>>><br>
>>>>>> 1300 Research Park Dr<br>
>>>>>><br>
>>>>>> Dayton, OH 45432<br>
>>>>>><br>
>>>>>> <a href="mailto:Micah.North@matrixresearch.com">Micah.North@matrixresearch.com</a><br>
>>>>>><br>
>>>>>> <a href="tel:937.427.8433%20ext%20145" value="+19374278433">937.427.8433 ext 145</a><br>
>>>>>><br>
>>>>>> <a href="tel:937.470.3591" value="+19374703591">937.470.3591</a> (cell)<br>
>>>>>><br>
>>>>>> <a href="http://www.matrixresearch.com" target="_blank">www.matrixresearch.com</a><br>
>>>>>><br>
>>>>>><br>
>>>>>><br>
>>>>>><br>
>>>>>> _______________________________________________<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>
>>>>><br>
>>>>><br>
>>>>><br>
>>>>>--<br>
>>>>>Robert Maynard<br>
>>>><br>
>>>><br>
>>><br>
>>><br>
>>><br>
>>>--<br>
>>>Robert Maynard<br>
>><br>
>><br>
><br>
><br>
><br>
> --<br>
> Robert Maynard<br>
><br>
<br>
<br>
<br>
</div></div><font color="#888888">--<br>
Robert Maynard<br>
</font><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <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: <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></blockquote></div><br>