export_to#

dlubal.api.rstab.Application.export_to(self, *, filepath, export_attributes, model_id=None)#

Exports the current model to the specified format.

Parameters:
  • filepath (str) – Full path of the file for export.

  • export_attributes (Any) –

    Specifies the format and attributes of the export.

    Supported message types: PythonGrpcExportAttributes IfcExportAttributes

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

Returns:

None


Usage

# Export model to Python script
rstab_app.export_to(
    filepath=os.path.abspath('./model_exported.py'),
    export_attributes=common.import_export.PythonGrpcExportAttributes()
)