Skip to content

Python Part Transaction

Class full path: PythonPartTransaction.PythonPartTransaction

Implementation of the PythonPart transaction

Functions

__init__(doc, connect_to_pyp=<span data-autorefs-optional-hover="PythonPartTransaction.ConnectToPythonPart">ConnectToPythonPart</span>())

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, modify_uuid_list, rearrange_reinf_pos_nr=True, 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
modify_uuid_list List[str]

list with the UUID's of the modified PythonPart elements

required
rearrange_reinf_pos_nr bool

rearrange the reinforcement position numbers

True
append_reinf_pos_nr bool

True: Append the reinforcement position numbers to the existing position numbers

True
asso_ref_object Optional[BaseElementAdapter]

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