export_model_to#
- dlubal.api.rfem.Application.export_model_to(self, *, filepath: str, export_attributes: Any, model_id: ModelId | None = None)#
Exports model to specified format
- Parameters:
filepath (str) – Full path of the file for export.
export_attributes (google.protobuf.any_pb2.Any) –
Specifies the format and attributes of the export
- Supported message types:
model_id (ModelId | None) – Unique identifier of the model. If not specified, the active model is used.
Example
# Export model to Python script
rfem_app.export_model_to(
filepath=os.path.abspath('./model_exported.py'),
export_attributes=rfem.import_export.PythonGrpcExportAttributes()
)
await rfem_app.export_model_to(
filepath: Path.GetFullPath("./model_exported.py"),
export_attributes: rfem.import_export.PythonGrpcExportAttributes()
)