import_model_from#
- dlubal.api.rstab.Application.import_model_from(self, *, filepath, import_attributes, model_id=None)#
Imports model from the specified file
- Parameters:
filepath (str) – Path to the file to be imported
import_attributes (google.protobuf.any_pb2.Any) –
Specifies the format and attributes of the import.
- Supported message types:
model_id (dlubal.api.common.model_id_pb2.ModelId | None) – Unique identifier of the model. If not specified, the active model is used.
Example
ifc_file_path = "C:/Users/my/Desktop/cantilever.ifc"
rstab_app.import_model_from(
filepath=ifc_file_path,
import_attributes=rstab.import_export.IfcImportAttributes()
)
var ifc_file_path = "C:/Users/my/Desktop/cantilever.ifc";
await rstab_app.import_model_from(
filepath=ifc_file_path,
import_attributes=rstab.import_export.IfcImportAttributes()
);