Button¶
The value type Button is used to create a button.
Syntax¶
The button must be included in a Row, because there are two texts needed. One as description text on the left side and one for the tooltip text.
After clicking the button, the value of <EventId> can be processed by the function on_control_event in the PythonPart script (.py) file.
If the value of the <Text> tag is too long, only the end of the text will be displayed in the button. The whole text is displayed as a tooltip on the button.
Button with weblink¶
To open a web page directly when a button is clicked, a weblink can be associated with the button by adding the Value tag to the parameter as follows:
<Value>https://www.allplan.com</ValueType>
Optional tags¶
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
Example¶
The implementation of the Button value type is described in the example Button, which is located in