Python Part Transaction
Class full path: PythonPartTransaction.PythonPartTransaction
Implementation of the PythonPart transaction
Functions
__init__(doc, connect_to_pyp=ConnectToPythonPart())
Initialize
Parameters:
Name | Type | Description | Default |
---|---|---|---|
doc
|
DocumentAdapter
|
document |
required |
connect_to_pyp
|
ConnectToPythonPart
|
element connection data |
ConnectToPythonPart()
|
create_connection(connect_ele, pyp_uuid)
create the PythonPart connection
Parameters:
Name | Type | Description | Default |
---|---|---|---|
connect_ele
|
BaseElementAdapter
|
connection element |
required |
pyp_uuid
|
GUID
|
UUID of the PythonPart |
required |
execute(placement_matrix, view_world_projection, model_ele_list, modification_ele_list, rearrange_reinf_pos_nr=ReinforcementRearrange(), append_reinf_pos_nr=True, asso_ref_object=None, uuid_parameter_name='', _elementation_delete_py=True)
execute the transaction
Parameters:
Name | Type | Description | Default |
---|---|---|---|
placement_matrix
|
Matrix3D
|
placement matrix |
required |
view_world_projection
|
ViewWorldProjection
|
view world projection |
required |
model_ele_list
|
list[Any]
|
list with the model elements |
required |
modification_ele_list
|
ModificationElementList
|
list with the UUID's of the modified PythonPart elements |
required |
rearrange_reinf_pos_nr
|
ReinforcementRearrange
|
data for the reinforcement rearrange |
ReinforcementRearrange()
|
append_reinf_pos_nr
|
bool
|
True: Append the reinforcement position numbers to the existing position numbers |
True
|
asso_ref_object
|
BaseElementAdapter | None
|
associative view reference object |
None
|
uuid_parameter_name
|
str
|
if set, the model object UUID of the created PythonPart is assigned to this name |
''
|
_elementation_delete_py
|
bool
|
delete the PythonPart after the precast elementation |
True
|
Returns:
Type | Description |
---|---|
BaseElementAdapterList
|
list with the created elements |