Skip to content

Python Part Parameter Util

Class full path: Utils.PythonPartParameterUtil.PythonPartParameterUtil

implementation of the PythonPart parameter utilities

Functions

__create_attribute_id_label_data(doc, prop, ctrl_props, label_data, prop_pal_ctrl_service) staticmethod

create the label data for the value type AttributeID

Parameters:

Name Type Description Default
doc DocumentAdapter

document of the Allplan drawing files

required
prop ParameterProperty

parameter property

required
ctrl_props ControlProperties

control properties

required
label_data ParameterValueList

label data

required
prop_pal_ctrl_service PropertyPaletteControlService

property palette control service

required

__init__(python_part_ele, str_table_service)

initialize

Parameters:

Name Type Description Default
python_part_ele BaseElementAdapter

PythonPart element

required
str_table_service StringTableService

sting table service

required

get_label_data(doc)

get the data for a label from the parameters

Parameters:

Name Type Description Default
doc DocumentAdapter

document of the Allplan drawing files

required

Returns:

Type Description
ParameterValueList

parameter value data