export_to#
- dlubal.api.rfem.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
Example
# Export model to Python script
rfem_app.export_to(
filepath=os.path.abspath('./model_exported.py'),
export_attributes=rfem.import_export.PythonGrpcExportAttributes()
)
await rfem_app.export_to(
filepath: Path.GetFullPath("./model_exported.py"),
export_attributes: rfem.import_export.PythonGrpcExportAttributes()
)