# What is subproxy?

**URL:** https://discourse.paraview.org/t/what-is-subproxy/14313
**Category:** Development
**Created:** [April 2, 2024, 8:21am UTC](https://discourse.paraview.org/t/what-is-subproxy/14313 "2024-04-02T08:21:28Z")
**Posts on this page:** 6
**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: [April 2, 2024, 8:21am UTC](https://discourse.paraview.org/t/what-is-subproxy/14313/1 "2024-04-02T08:21:28Z")

</div>

Hello ParaView developers!

Could one please clarify when I should use SubProxy and not property and give an example?

Thank you very much!

---

<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: [April 2, 2024, 8:23am UTC](https://discourse.paraview.org/t/what-is-subproxy/14313/2 "2024-04-02T08:23:17Z")

</div>

It is proxy that is integrated into another proxy seamlessly.

see:  
`Examples/Plugins/Representation/Plugin/GeometryRepresentations/Representation.xml`

---

<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: [April 2, 2024, 8:30am UTC](https://discourse.paraview.org/t/what-is-subproxy/14313/3 "2024-04-02T08:30:31Z")

</div>

I dont get what is written there

What is representation type?

```auto
      <!-- this adds to what is already defined in PVRepresentationBase -->
      <RepresentationType subproxy="MySpecialRepresentation"
        text="Special Mapper" subtype="Surface" />

```

And what is this subproxy needed for?

```
  <SubProxy>
    <Proxy name="MySpecialRepresentation"
      proxygroup="representations" proxyname="MySpecialRepresentation">
    </Proxy>
    <ShareProperties subproxy="SurfaceRepresentation">
      <Exception name="Input" />
      <Exception name="Visibility" />
      <Exception name="Representation" />
    </ShareProperties>
  </SubProxy>

```

---

<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: [April 2, 2024, 8:32am UTC](https://discourse.paraview.org/t/what-is-subproxy/14313/4 "2024-04-02T08:32:08Z")

</div>

> What is representation type?

Surface, SurfaceWithEdges, Volume…

> And what is this subproxy needed for?

It is needed so that “MySpecialRepresentation” is added to the possible representaiton types.

---

<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: [April 2, 2024, 12:39pm UTC](https://discourse.paraview.org/t/what-is-subproxy/14313/5 "2024-04-02T12:39:37Z")

</div>

What is the difference of name and proxyname for proxy/subproxy?

---

<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: [April 3, 2024, 7:24am UTC](https://discourse.paraview.org/t/what-is-subproxy/14313/6 "2024-04-03T07:24:27Z")

</div>

A proxy has a name, it should be unique.

When you set a subproxy, you give it a name, then you point which proxy to use using `proxygroup` and `proxyname`. It should correspond to a proxy `name` and `group`.
