<div dir="ltr"><div>I think you may be missing the FileName property. I thought that PV looked for that attribute to know that it should be classified as a writer. Also, you'll want to hide that property.<br><br>So:<br> <StringVectorProperty name="FileName"<br> command="SetFileName"<br> number_of_elements="1"<br> label="File Name"><br> <Documentation><br> The file name.<br> </Documentation><br> </StringVectorProperty><br><br><br></div>and:<br> <Hints><br> <Property name="Input" show="0"/><br> <Property name="FileName" show="0"/><br> <WriterFactory extensions="json" file_description="JSON tabular data" /><br> </Hints><br><br><br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 28, 2015 at 11:34 AM, David Thompson <span dir="ltr"><<a href="mailto:david.thompson@kitware.com" target="_blank">david.thompson@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 all,<br>
<br>
I have a ParaView plugin that contains a new writer which I would like to expose. However, while the plugin does properly expose a new view and representation, the writer does not appear to get added (when I try to save a vtkTable such as a statistics filter output, it doesn't appear as an option).<br>
<br>
1. Is there any documentation for adding writers in plugins? This page has a comment or two but doesn't appear complete:<br>
<br>
<a href="http://www.paraview.org/Wiki/ParaView/Plugin_HowTo" target="_blank">http://www.paraview.org/Wiki/ParaView/Plugin_HowTo</a><br>
<br>
2. If you're willing to look over the XML, I've attached it below. See any mistakes?<br>
<br>
Thanks,<br>
David<br>
<br>
<ServerManagerConfiguration><br>
<!-- Other proxy groups for views and representations here --><br>
<br>
<ProxyGroup name="writers"><br>
<WriterProxy<br>
class="vtkPJSONTableWriter"<br>
name="PJSONTableWriter"><br>
<Documentation><br>
Write tabular data to a JSON file.<br>
</Documentation><br>
<InputProperty<br>
command="SetInputConnection"<br>
name="Input"><br>
<DataTypeDomain<br>
composite_data_supported="0"<br>
name="input_type"><br>
<DataType value="vtkTable"/><br>
</DataTypeDomain><br>
<Documentation>The input filter/source whose output dataset is to<br>
written to the file.</Documentation><br>
</InputProperty><br>
<Hints><br>
<WriterFactory extensions="json" file_description="JSON tabular data" /><br>
</Hints><br>
</WriterProxy><br>
<br>
</ProxyGroup><br>
</ServerManagerConfiguration><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 <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>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" target="_blank">http://markmail.org/search/?q=ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview" target="_blank">http://public.kitware.com/mailman/listinfo/paraview</a><br>
</blockquote></div><br></div>