# StringVectorProperty attributes

**URL:** https://discourse.paraview.org/t/stringvectorproperty-attributes/4596
**Category:** ParaView Support
**Created:** [June 16, 2020, 2:18pm UTC](https://discourse.paraview.org/t/stringvectorproperty-attributes/4596 "2020-06-16T14:18:09Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![PetiteViking](https://discourse.paraview.org/user_avatar/discourse.paraview.org/petiteviking/32/4074_2.png) [@PetiteViking](https://discourse.paraview.org/u/PetiteViking)
#### Post date: [June 16, 2020, 2:18pm UTC](https://discourse.paraview.org/t/stringvectorproperty-attributes/4596/1 "2020-06-16T14:18:10Z")

</div>

Hi,  
after searching this discourse as well as the VTK documentation I could not find the information I was looking for.  
When declaring a StringVectorProperty there are a number of attributes where I cannot figure out what exactly they are specifying.  
What I need is a property that will list all the point data arrays from the input data set and use the selected entry to call a method taking a string as single argument.  
From the code I read, my best guess is that “number\_of\_elements” specifies the number of arguments that the target method is taking and then “element\_types” lists the argument types used to call the method. Is that correct? If so, which data types are represented by which values, i.e. what is element type 2? String, int, char?  
What I have now is this

```
<StringVectorProperty command="SetLineField"
                        element_types="2"
                        name="Line field"
                        number_of_elements="1">

```

Using this, ParaView throws an error saying that I am not calling the method 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: [June 17, 2020, 2:10am UTC](https://discourse.paraview.org/t/stringvectorproperty-attributes/4596/2 "2020-06-17T02:10:06Z")

</div>

0: int  
1: float  
2: string

hth

---

<div class="post-metadata">

### Author: ![PetiteViking](https://discourse.paraview.org/user_avatar/discourse.paraview.org/petiteviking/32/4074_2.png) [@PetiteViking](https://discourse.paraview.org/u/PetiteViking)
#### Post date: [June 17, 2020, 11:38am UTC](https://discourse.paraview.org/t/stringvectorproperty-attributes/4596/3 "2020-06-17T11:38:05Z")

</div>

Thanks, that seems to work.

Is there any place where I could look up the definitions of the attributes? There a still plenty that are mysterious to me, such as repeat\_command, set\_number\_command, and use\_index.

---

<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: [June 19, 2020, 2:34am UTC](https://discourse.paraview.org/t/stringvectorproperty-attributes/4596/4 "2020-06-19T02:34:44Z")

</div>

All the doc is here :  
[https://www.paraview.org/paraview-docs/nightly/cxx/ProxyHints.html](https://www.paraview.org/paraview-docs/nightly/cxx/ProxyHints.html)  
[https://www.paraview.org/paraview-docs/nightly/cxx/PluginHowto.html](https://www.paraview.org/paraview-docs/nightly/cxx/PluginHowto.html)  
[https://www.paraview.org/paraview-docs/nightly/cxx/PropertyHints.html](https://www.paraview.org/paraview-docs/nightly/cxx/PropertyHints.html)  
[https://www.paraview.org/paraview-docs/nightly/cxx/classvtkSMProxy.html](https://www.paraview.org/paraview-docs/nightly/cxx/classvtkSMProxy.html)  
[https://www.paraview.org/paraview-docs/nightly/cxx/classvtkSMProperty.html](https://www.paraview.org/paraview-docs/nightly/cxx/classvtkSMProperty.html)

(edited from @ltetrel message below)

---

<div class="post-metadata">

### Author: ![ltetrel](https://discourse.paraview.org/user_avatar/discourse.paraview.org/ltetrel/32/15636_2.png) [@ltetrel](https://discourse.paraview.org/u/ltetrel)
#### Post date: [November 29, 2024, 11:25am UTC](https://discourse.paraview.org/t/stringvectorproperty-attributes/4596/5 "2024-11-29T11:25:02Z")

</div>

Updated links:  
[https://www.paraview.org/paraview-docs/nightly/cxx/ProxyHints.html](https://www.paraview.org/paraview-docs/nightly/cxx/ProxyHints.html)  
[https://www.paraview.org/paraview-docs/nightly/cxx/PluginHowto.html](https://www.paraview.org/paraview-docs/nightly/cxx/PluginHowto.html)  
[https://www.paraview.org/paraview-docs/nightly/cxx/PropertyHints.html](https://www.paraview.org/paraview-docs/nightly/cxx/PropertyHints.html)  
[https://www.paraview.org/paraview-docs/nightly/cxx/classvtkSMProxy.html](https://www.paraview.org/paraview-docs/nightly/cxx/classvtkSMProxy.html)  
[https://www.paraview.org/paraview-docs/nightly/cxx/classvtkSMProperty.html](https://www.paraview.org/paraview-docs/nightly/cxx/classvtkSMProperty.html)
