import_from#

dlubal.api.rstab.Application.import_from(self, *, filepath, import_attributes, model_id=None)#

Imports a model from the specified file.

Parameters:
  • filepath (str) – Path to the file to be imported.

  • import_attributes (Any) –

    Specifies the format and attributes of the import.

    Supported message types: IfcImportAttributes RsectionImportAttributes

  • model_id (ModelId | None) – Unique identifier of the model. If None, the active model is used.

Returns:

None


Usage

ifc_file_path = "C:/Users/my/Desktop/cantilever.ifc"

rstab_app.import_from(
    filepath=ifc_file_path,
    import_attributes=rstab.import_export.IfcImportAttributes()
)