export_to#

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

Exports the model to the specified file format.

Parameters:
Returns:

None

Method Type: Core


Usage

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

# Export model to IFC
rfem_app.export_to(
    filepath=os.path.abspath('./model_export.ifc'),
    export_attributes=common.import_export.IfcExportAttributes()
)

# Export model to glTF
rfem_app.export_to(
    filepath=os.path.abspath('./model_export.gltf'),
    export_attributes=common.import_export.GltfExportAttributes()
)

# Export model to glb
rfem_app.export_to(
    filepath=os.path.abspath('./model_export.glb'),
    export_attributes=common.import_export.GlbExportAttributes()
)