Attribute dialog¶
The attribute selection value dialogs ar used to create a button that allows to open the dialog for an attribute selection. The following dialogs can be assigned
Dialog |
Description |
---|---|
AttributeSelection |
Allow to select all attributes |
AttributeSelectionInsert |
Allow to select the insert attributes (additional to the default object attributes) |
AttributeSelectionProject |
Allow to select the project attributes |
Clicking the button opens the attribute dialog like
After closing the dialog, the name of the selected attribute is displayed as then button text and the ID is assigned to the parameter.
Syntax¶
<Parameter>
<Name>AttributeID</Name>
<Text>Attribute</Text>
<Value>0</Value>
<ValueType>Integer</ValueType>
<ValueDialog>AttributeSelection</ValueDialog>
</Parameter>
Example¶
The implementation of the AttributeSelection value dialog is described in the example AllControls located in
..\etc\Examples\PythonParts\PaletteExamples\AllControls.pyp
..\etc\PythonPartsExampleScripts\PaletteExamples\AllControls.py