Bottom plane reference dialog

The value dialog BottomPlaneReferences is used to create a button that allows to open the dialog for a bottom plane reference selection.

../../../../_images/BottomPlane.png

Clicking the button opens the height dialog for the plane selection and the offset input like

../../../../_images/BottomPlaneDialog.png

After closing the dialog, the selected level dependency is displayed in the button and the absolute height is displayed in the edit field. The data from the dialog are assigned to the parameter.

Syntax

<Parameter>
<Name>BottomPlane</Name>
<Text>Bottom plane</Text>
<Value></Value>
<ValueType>PlaneReferences</ValueType>
<ValueDialog>BottomPlaneReferences</ValueDialog>
</Parameter>

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 button 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 BottomPlaneReferences value dialog is described in the example AllControls located in

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