# Managing proxies from C++

**URL:** https://discourse.paraview.org/t/managing-proxies-from-c/13919
**Category:** Development
**Created:** [February 13, 2024, 9:09am UTC](https://discourse.paraview.org/t/managing-proxies-from-c/13919 "2024-02-13T09:09:04Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![joint](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/dc4da7/32.png) [@joint](https://discourse.paraview.org/u/joint)
#### Post date: [February 13, 2024, 9:09am UTC](https://discourse.paraview.org/t/managing-proxies-from-c/13919/1 "2024-02-13T09:09:04Z")

</div>

Hello dear Paraview developers!

Could you please explain me, why such a snippet does not work?

```auto
vtkSMSession* session = vtkSMSession::New();

vtkSMSessionProxyManager* pxm = session->GetSessionProxyManager();
vtkSmartPointer<vtkSMProxy> proxy;
proxy.TakeReference(pxm->NewProxy("sources", "SphereSource"));

vtkSMPropertyHelper(proxy, "Radius").Set(2);
proxy->UpdateVTKObjects();

```

Thank you!
