convert_objects#
Example
ifc_model_objects = rstab_app.get_object_list([rstab.ifc_objects.IfcModelObject()])
straight_members = list()
# Find IFC objects that will be converted to straight members
for ifc_object in ifc_model_objects:
ifc_type = ifc_object.ifc_type
if ifc_type in ["IfcColumn", "IfcBeam"]:
straight_members.append(ifc_object)
# Make the conversion
rstab_app.convert_objects(
convert_into=rstab.ConvertObjectInto.CONVERT_IFC_OBJECT_INTO_STRAIGHT_MEMBER,
objects=straight_members,
)