Script nodeΒΆ

The script node is used to define the general data of the PythonPart.

<Script>
<Name>PaletteExamples\AllControls.py</Name>
<Title>AllControls</Title>
<TextId>1001</TextId>
<Version>1.0</Version>
<DataColumnWidth>150</DataColumnWidth>
<ReadLastInput>True</ReadLastInput>
<Interactor>True</Interactor>
<GeometryExpand>True</GeometryExpand>
</Script>

Tag

Optional

Description

<Name>

No

Path and name link to the corresponding PythonParts py file. The path must be local to the folder PythonPartsExampleScripts, located in the etc, std or prj path from Allplan. Sub folders can be used and must be separated by the \ character.

<Title>

No

The title of the PythonPart that is displayed in the property palette.

<TextId>

Yes

Text ID of the <Title>, used for localization of the PythonPart.

<Version>

No

Version number of the PythonPart. Can be used to customize the parameter.

<DataColumnWidth>

Yes

Default width of the data column in the property palette of the PythonPart.

<ReadLastInput>

Yes

If set to True, the parameter of the PythonPart are initialized with the values from the last run (default is False)

<Interactor>

Yes

The PythonPart has interaction functionalities (default is False)

<GeometryExpand>

Yes

If a geometry expansion is used for reinforcement creation in the py file, the value for this tag must be set to True (default is False)