<div dir="ltr">David,<br><div><br></div><div>I am correct is assuming that you have  ProxyProperty on the filter proxy that you are expecting have this Contour proxy be set on? In that case, I don't think that's what you want. Here's what I'd suggest:</div><div><br></div><div>1. Remove the ProxyProperty from your filter XML.</div><div>2. Change your XML as follows:</div><div><p class="MsoNormal" style="font-size:12.8px"> <u></u></p><p class="MsoNormal" style="font-size:12.8px"><span style="font-size:9.5pt;font-family:consolas;color:blue;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">      <</span><span style="font-size:9.5pt;font-family:consolas;color:rgb(163,21,21);background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">SubProxy<b> command="SetContourProxy"</b></span><span style="font-size:9.5pt;font-family:consolas;color:blue;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">></span><span style="font-size:9.5pt;font-family:consolas;color:black;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"><u></u><u></u></span></p><p class="MsoNormal" style="font-size:12.8px"><span style="font-size:9.5pt;font-family:consolas;color:blue;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">        <</span><span style="font-size:9.5pt;font-family:consolas;color:rgb(163,21,21);background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">Proxy</span><span style="font-size:9.5pt;font-family:consolas;color:blue;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"> </span><span style="font-size:9.5pt;font-family:consolas;color:red;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">name</span><span style="font-size:9.5pt;font-family:consolas;color:blue;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">=</span><span style="font-size:9.5pt;font-family:consolas;color:black;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">"</span><span style="font-size:9.5pt;font-family:consolas;color:blue;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">ContourProxy</span><span style="font-size:9.5pt;font-family:consolas;color:black;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">"</span><span style="font-size:9.5pt;font-family:consolas;color:blue;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"> </span><span style="font-size:9.5pt;font-family:consolas;color:red;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">proxygroup</span><span style="font-size:9.5pt;font-family:consolas;color:blue;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">=</span><span style="font-size:9.5pt;font-family:consolas;color:black;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">"</span><span style="font-size:9.5pt;font-family:consolas;color:blue;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">filters</span><span style="font-size:9.5pt;font-family:consolas;color:black;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">"</span><span style="font-size:9.5pt;font-family:consolas;color:blue;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"> </span><span style="font-size:9.5pt;font-family:consolas;color:red;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">proxyname</span><span style="font-size:9.5pt;font-family:consolas;color:blue;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">=</span><span style="font-size:9.5pt;font-family:consolas;color:black;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">"</span><span style="font-size:9.5pt;font-family:consolas;color:blue;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">Contour</span><span style="font-size:9.5pt;font-family:consolas;color:black;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">"</span><span style="font-size:9.5pt;font-family:consolas;color:blue;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"> /></span><span style="font-size:9.5pt;font-family:consolas;color:black;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"><u></u><u></u></span></p><p class="MsoNormal" style="font-size:12.8px"><span style="font-size:9.5pt;font-family:consolas;color:blue;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">        <</span><span style="font-size:9.5pt;font-family:consolas;color:rgb(163,21,21);background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">ExposedProperties</span><span style="font-size:9.5pt;font-family:consolas;color:blue;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">></span><span style="font-size:9.5pt;font-family:consolas;color:black;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"><u></u><u></u></span></p><p class="MsoNormal" style="font-size:12.8px"><span style="font-size:9.5pt;font-family:consolas;color:blue;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">          <</span><span style="font-size:9.5pt;font-family:consolas;color:rgb(163,21,21);background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">Property</span><span style="font-size:9.5pt;font-family:consolas;color:blue;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"> </span><span style="font-size:9.5pt;font-family:consolas;color:red;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">name</span><span style="font-size:9.5pt;font-family:consolas;color:blue;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">=</span><span style="font-size:9.5pt;font-family:consolas;color:black;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">"</span><span style="font-size:9.5pt;font-family:consolas;color:blue;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">SelectInputScalars</span><span style="font-size:9.5pt;font-family:consolas;color:black;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">"</span><span style="font-size:9.5pt;font-family:consolas;color:blue;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"> /></span><span style="font-size:9.5pt;font-family:consolas;color:black;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"><u></u><u></u></span></p><p class="MsoNormal" style="font-size:12.8px"><span style="font-size:9.5pt;font-family:consolas;color:blue;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">          <</span><span style="font-size:9.5pt;font-family:consolas;color:rgb(163,21,21);background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">Property</span><span style="font-size:9.5pt;font-family:consolas;color:blue;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"> </span><span style="font-size:9.5pt;font-family:consolas;color:red;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">name</span><span style="font-size:9.5pt;font-family:consolas;color:blue;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">=</span><span style="font-size:9.5pt;font-family:consolas;color:black;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">"</span><span style="font-size:9.5pt;font-family:consolas;color:blue;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">ComputeNormals</span><span style="font-size:9.5pt;font-family:consolas;color:black;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">"</span><span style="font-size:9.5pt;font-family:consolas;color:blue;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"> /></span><span style="font-size:9.5pt;font-family:consolas;color:black;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"><u></u><u></u></span></p><p class="MsoNormal" style="font-size:12.8px"><span style="font-size:9.5pt;font-family:consolas;color:blue;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">         </span><span style="font-size:9.5pt;font-family:consolas;color:black;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"><u></u><u></u></span></p><p class="MsoNormal" style="font-size:12.8px"><span style="font-size:9.5pt;font-family:consolas;color:blue;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">        </</span><span style="font-size:9.5pt;font-family:consolas;color:rgb(163,21,21);background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">ExposedProperties</span><span style="font-size:9.5pt;font-family:consolas;color:blue;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">></span><span style="font-size:9.5pt;font-family:consolas;color:black;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"><u></u><u></u></span></p><p class="MsoNormal" style="font-size:12.8px"><span style="font-size:9.5pt;font-family:consolas;color:blue;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">      </</span><span style="font-size:9.5pt;font-family:consolas;color:rgb(163,21,21);background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">SubProxy</span><span style="font-size:9.5pt;font-family:consolas;color:blue;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">></span><span style="font-size:9.5pt;font-family:consolas;color:blue"><u></u><u></u></span></p><p class="MsoNormal" style="font-size:12.8px"><span style="font-size:9.5pt;font-family:consolas;color:blue"><u></u> </span></p></div><div>Note the <b>command</b> attribute on SubProxy.</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 16, 2017 at 6:40 AM, David Lawrie <span dir="ltr"><<a href="mailto:dlawrie@ara.co.uk" target="_blank">dlawrie@ara.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-GB" link="blue" vlink="purple">
<div class="m_550120116780937860WordSection1">
<p class="MsoNormal">Hi All,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I am trying to create a simple filter that uses the SubProxy approach as  a learning exercise as I believe it will be useful in  a more complex filter I will need to create later.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Currently I am trying to create a filter which has a Contour sub-filter, exposes a couple of the properties then runs the contour filter using the user set values.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">In my XML I have the following subproxy block<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white">      <</span><span style="font-size:9.5pt;font-family:Consolas;color:#a31515;background:white">SubProxy</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white">></span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white">        <</span><span style="font-size:9.5pt;font-family:Consolas;color:#a31515;background:white">Proxy</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white">
</span><span style="font-size:9.5pt;font-family:Consolas;color:red;background:white">name</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white">=</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white">"</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white">ContourProxy</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white">"</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white">
</span><span style="font-size:9.5pt;font-family:Consolas;color:red;background:white">proxygroup</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white">=</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white">"</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white">filters</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white">"</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white">
</span><span style="font-size:9.5pt;font-family:Consolas;color:red;background:white">proxyname</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white">=</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white">"</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white">Contour</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white">"</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white">
 /></span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white">        <</span><span style="font-size:9.5pt;font-family:Consolas;color:#a31515;background:white">ExposedProperties</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white">></span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white">          <</span><span style="font-size:9.5pt;font-family:Consolas;color:#a31515;background:white">Property</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white">
</span><span style="font-size:9.5pt;font-family:Consolas;color:red;background:white">name</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white">=</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white">"</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white">SelectInputScalars</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white">"</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white">
 /></span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white">          <</span><span style="font-size:9.5pt;font-family:Consolas;color:#a31515;background:white">Property</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white">
</span><span style="font-size:9.5pt;font-family:Consolas;color:red;background:white">name</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white">=</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white">"</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white">ComputeNormals</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white">"</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white">
 /></span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white">         
</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white">        </</span><span style="font-size:9.5pt;font-family:Consolas;color:#a31515;background:white">ExposedProperties</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white">></span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white">      </</span><span style="font-size:9.5pt;font-family:Consolas;color:#a31515;background:white">SubProxy</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white">></span><span style="font-size:9.5pt;font-family:Consolas;color:blue"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:blue"><u></u> <u></u></span></p>
<p class="MsoNormal">In my filter header I have included the following lines to provide storage for the sub-proxy and my constructor sets it to NULL at creation.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:#6f008a;background:white">vtkSetObjectMacro</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white">(<wbr>ContourProxy,
</span><span style="font-size:9.5pt;font-family:Consolas;color:#2b91af;background:white">vtkPVContourFilter</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white">);</span><span style="font-size:9.5pt;font-family:Consolas;color:black"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:#2b91af;background:white">vtkPVContourFilter</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white">* ContourProxy;</span><span style="font-size:9.5pt;font-family:Consolas;color:black"><u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">So far so good, the gui does have the elements which are exposed, however the drop down box is empty and as far as I can tell the ContourProxy variable remains NULL. Presumably I have to create the vtkPVContourFilter object somewhere, however
 I am unsure as to how/where.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Can anyone provide some guidance on what steps I am missing?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thanks.<u></u><u></u></p>
</div>

<p>******************************<wbr>******************************<wbr>**********</p><p>

Please consider the environment. Only print this email if absolutely necessary.</p><p>This email contains information that is private and confidential and is intended only for the addressee.<br>If you are not the intended recipient please delete it and notify us immediately by e-mailing the sender.<br>Note: All email sent to or from this address may be accessed by someone other than the recipient, for<br>system management and security reasons.<br>Aircraft Research Association Ltd.  Registered in England, Registration No 503668 Registered Office:<br>Manton Lane, Bedford MK41 7PF England VAT No GB 196351245</p><p>******************************<wbr>******************************<wbr>**********</p>

</div>

<br>______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=Paraview-developers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>Paraview-developers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview-developers" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/paraview-<wbr>developers</a><br>
<br></blockquote></div><br></div>