ReinfMeshGroup

The ReinfMeshGroup type is used to create a combo box for a mesh group selection. The result assigned to the parameter is the integer value associated with the selected mesh group.

../../../../_images/ReinfMeshGroup.png

Syntax

<Parameter>
<Name>ReinfMeshGroup</Name>
<Text>ReinfMeshGroup</Text>
<Value>-1</Value>
<ValueType>ReinfMeshGroup</ValueType>
</Parameter>

If the <Value> tag is assigned the value -1, the parameter is initialized with the mesh group currently used in Allplan.

Optional tags

If the PythonPart should be localized, the following tag must be added

<TextId>1001</TextId>

Sometimes it’s useful to disable or hide the combo box depending on the value of another parameter. This is achieved by adding additional tags to the parameter or by defining functions in the py-file. See Enable and visible options

The persistent state of the parameter can be changed by adding

<Persistent></Persistent>

Example

The implementation of the ReinfMeshGroup value type is described in the example AllControls, which is located in

…\etc\Examples\PythonParts\PaletteExamples\AllControls.pyp
…\etc\PythonPartsExampleScripts\PaletteExamples\AllControls.py