# Proxy property not generating in client server wrapper source

**URL:** https://discourse.paraview.org/t/proxy-property-not-generating-in-client-server-wrapper-source/4799
**Category:** Development
**Created:** [July 9, 2020, 8:49pm UTC](https://discourse.paraview.org/t/proxy-property-not-generating-in-client-server-wrapper-source/4799 "2020-07-09T20:49:38Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![HollowSun0](https://discourse.paraview.org/user_avatar/discourse.paraview.org/hollowsun0/32/431_2.png) [@HollowSun0](https://discourse.paraview.org/u/HollowSun0)
#### Post date: [July 9, 2020, 8:49pm UTC](https://discourse.paraview.org/t/proxy-property-not-generating-in-client-server-wrapper-source/4799/1 "2020-07-09T20:49:38Z")

</div>

Hi there!

I made a filter called MainProxy.cxx with the following xml:

```
<ProxyProperty name="ProxyExample"
               command="SetProxyExample"
               label="Proxy Example">
     <ProxyListDomain name="proxy_list">
          <Proxy group="proxy_examples"
               name="ProxyExample1" />
          <Proxy group="proxy_examples"
               name="ProxyExample2" />
     </ProxyListDomain>
</ProxyProperty>

```

but the client-server wrapper does not generate the associated code in the MainProxyClientServer.cxx. I made sure to follow the logic of the Kernel setup in the PointInterpolator.

If I edit the MainProxyClientServer.cxx and add this piece of code:

```
if (!strcmp("SetProxyExample", method) && msg.GetNumberOfArguments(0) == 3)
{
    AbstractProxyExample* temp0;
    if (vtkClientServerStreamGetArgumentObject(msg, 0, 2, &temp0, "AbstractProxyExample"))
    {
        op->SetProxyExample(temp0);
        return 1;
    }
}
if (!strcmp("GetProxyExample", method) && msg.GetNumberOfArguments(0) == 2)
{
    AbstractProxyExample* temp20;
    {
        temp20 = (op)->GetProxyExample();
        resultStream.Reset();
        resultStream << vtkClientServerStream::Reply << (vtkObjectBase*)temp20 << vtkClientServerStream::End;
        return 1;
    }
}

```

everything works, but it dissapears after compilation. ProxyExample1 and ProxyExample2 are children of AbstractProxyExample.

Any hints on why this could happen? Do I have to include more information?

Thank you,  
Patrick Laurin

---

<div class="post-metadata">

### Author: ![utkarsh.ayachit](https://discourse.paraview.org/user_avatar/discourse.paraview.org/utkarsh.ayachit/32/39_2.png) [@utkarsh.ayachit](https://discourse.paraview.org/u/utkarsh.ayachit)
#### Post date: [July 10, 2020, 7:41am UTC](https://discourse.paraview.org/t/proxy-property-not-generating-in-client-server-wrapper-source/4799/2 "2020-07-10T07:41:50Z")

</div>

Can you try renaming the classes with a `vtk...` prefix? I don’t recall if that’s still the case, but a long time ago I remember these classes needed to have a `vtk...` prefix for the wrappers to treat them correctly.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [July 10, 2020, 8:25am UTC](https://discourse.paraview.org/t/proxy-property-not-generating-in-client-server-wrapper-source/4799/3 "2020-07-10T08:25:29Z")

</div>

Maybe an export problem.

I had these kind of issue with improperly exported classes.

---

<div class="post-metadata">

### Author: ![HollowSun0](https://discourse.paraview.org/user_avatar/discourse.paraview.org/hollowsun0/32/431_2.png) [@HollowSun0](https://discourse.paraview.org/u/HollowSun0)
#### Post date: [July 10, 2020, 1:30pm UTC](https://discourse.paraview.org/t/proxy-property-not-generating-in-client-server-wrapper-source/4799/4 "2020-07-10T13:30:44Z")

</div>

Thank you for your prompt response! Indeed, by adding “vtk” in front of my class name, it generates my client server wrapper correctly.

Thanks,

Patrick Laurin
