Hello,
Is there a way to duplicate steel connections or add components using the API II?
The following code copies most settings, except for the bearing conditions of the rods, but the actual components of a connection are not transferred.
Best regards
from dlubal.api import rfem
source_joint_index: int = 1
target_joint_index: int = 2
with rfem.Application() as rfem_app:
source_joint: rfem.steel_joints_objects.SteelJoint = rfem_app.get_object(
obj=rfem.steel_joints_objects.SteelJoint(
no=source_joint_index,
)
)
target_joint: rfem.steel_joints_objects.SteelJoint = (
rfem.steel_joints_objects.SteelJoint()
)
target_joint.CopyFrom(source_joint)
target_joint.no = target_joint_index
target_joint.name = "target_joint"
rfem_app.create_object(target_joint)