Symbol dialog

The value dialog SymbolDialog is used to create a button that allows to open the dialog for a symbol name and path selection from the Allplan library.

../../../../_images/SymbolDialog.png

Clicking the button opens the library dialog and can e.g. be used to select a profile from the Allplan profile catalog like

../../../../_images/ProfileLibrary.png

After closing the dialog, the name of the selected symbol is displayed as the button text and assigned to the parameter.

Syntax

<Parameter>
<Name>SymbolName</Name>
<Text>Symbol</Text>
<Value></Value>
<ValueType>String</ValueType>
<ValueDialog>SymbolDialog</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 SymbolDialog value dialog is described in the example AllControls located in

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