๐Ÿค– New in SPACE GASS 14.51 โ€” the MCP server lets your AI agent build, analyse and design your models. Get started โ†’
SpaceGass API
SPACE GASS API

Export the current job to other file formats


Get IFC Export Settings

GET
/api/v1
/job/export/ifc/settings

Returns the settings that apply to an IFC export when the export request leaves them out. Every setting is always returned.

These are the same settings the SPACE GASS export dialog uses, read from the file that dialog stores them in. A setting changed in the dialog is returned here, and the settings outlive a restart of this service.

Get IFC Export Settings โ€บ Responses

Returns the stored IFC export settings

The stored IFC export settings. These supply the values for `POST job/export/ifc` whenever an export request omits them.
schema
โ€‹IfcSchemaย ยทย enum

IFC schema an export is written against.

Enum values:
Ifc4
Ifc2x3
physicalModel
โ€‹boolean

Include the physical model โ€” the fabricated shape of the structure: its members and plates as solids.

Example: true
analyticalModel
โ€‹boolean

Include the analytical model โ€” the analysis idealisation of the structure: its members, plates, loads and load combinations.

Example: true
convertTo
โ€‹IfcConvertToย ยทย enum

The program an IFC export is written for. SPACE GASS section names are translated to that program's naming through the built-in conversion tables, and a few writers change shape for it (the file header for Tekla Structural, member naming for Revit Structure).

Enum values:
Other
RevitStructure
ProSteel
TeklaStructural
XSteel
BentleyStructural
StruCAD
FrameworksPlus

Update IFC Export Settings

PATCH
/api/v1
/job/export/ifc/settings

Changes only the settings present in the body; every setting left out keeps its current value.

The change is written to the settings file SPACE GASS reads, so it also changes what the desktop export dialog opens showing. Settings passed on an export request instead apply to that one export and change nothing stored.

Example request:

Code
PATCH /api/v1/job/export/ifc/settings { "analyticalModel": false }

Update IFC Export Settings โ€บ Request Body

Request body for `PATCH job/export/ifc/settings`. Only the settings present in the body are changed; every setting left out keeps its current value. The change is written to the settings file SPACE GASS reads.
schema
โ€‹IfcSchemaย ยทย enum

IFC schema an export is written against.

Enum values:
Ifc4
Ifc2x3
physicalModel
โ€‹boolean | null

Include the physical model โ€” the fabricated shape of the structure: its members and plates as solids.

Example: true
analyticalModel
โ€‹boolean | null

Include the analytical model โ€” the analysis idealisation of the structure: its members, plates, loads and load combinations.

Example: true
convertTo
โ€‹IfcConvertToย ยทย enum

The program an IFC export is written for. SPACE GASS section names are translated to that program's naming through the built-in conversion tables, and a few writers change shape for it (the file header for Tekla Structural, member naming for Revit Structure).

Enum values:
Other
RevitStructure
ProSteel
TeklaStructural
XSteel
BentleyStructural
StruCAD
FrameworksPlus

Update IFC Export Settings โ€บ Responses

Settings updated; returns the stored settings

The stored IFC export settings. These supply the values for `POST job/export/ifc` whenever an export request omits them.
schema
โ€‹IfcSchemaย ยทย enum

IFC schema an export is written against.

Enum values:
Ifc4
Ifc2x3
physicalModel
โ€‹boolean

Include the physical model โ€” the fabricated shape of the structure: its members and plates as solids.

Example: true
analyticalModel
โ€‹boolean

Include the analytical model โ€” the analysis idealisation of the structure: its members, plates, loads and load combinations.

Example: true
convertTo
โ€‹IfcConvertToย ยทย enum

The program an IFC export is written for. SPACE GASS section names are translated to that program's naming through the built-in conversion tables, and a few writers change shape for it (the file header for Tekla Structural, member naming for Revit Structure).

Enum values:
Other
RevitStructure
ProSteel
TeklaStructural
XSteel
BentleyStructural
StruCAD
FrameworksPlus

Export IFC File

POST
/api/v1
/job/export/ifc

Exports the current job to IFC and returns the file itself as a download. The job is not modified and nothing is written to a server-side path.

The request body is optional. Every setting it carries applies to this export only and changes nothing stored; a setting left out falls back to the stored export settings (GET job/export/ifc/settings), which are the settings SPACE GASS itself exports with. An empty body exports entirely from those settings.

physicalModel and analyticalModel each cover everything in that model โ€” members and plates for both, plus loads and load combinations for the analytical model. When schema is Ifc2x3, no loads or load combinations are written, so an analytical model in that schema carries its members and plates only. Analysis results are never exported.

The number of warnings the exporter raised is returned in the Export-Warning-Count response header.

Export runs synchronously, so the request blocks for the duration of the export.

Example request:

Code
POST /api/v1/job/export/ifc { "schema": "Ifc4", "analyticalModel": false, "convertTo": "RevitStructure" }

Export IFC File โ€บ Request Body optional

Optional request body for `POST job/export/ifc`. Every setting is optional: a setting supplied here applies to this export only and changes nothing stored, and a setting left out falls back to the stored export settings (`GET job/export/ifc/settings`), which are shared with SPACE GASS. An empty body exports entirely from the stored settings.
schema
โ€‹IfcSchemaย ยทย enum

IFC schema an export is written against.

Enum values:
Ifc4
Ifc2x3
physicalModel
โ€‹boolean | null

Include the physical model โ€” the fabricated shape of the structure: its members and plates as solids.

Example: true
analyticalModel
โ€‹boolean | null

Include the analytical model โ€” the analysis idealisation of the structure: its members, plates, loads and load combinations.

Example: true
convertTo
โ€‹IfcConvertToย ยทย enum

The program an IFC export is written for. SPACE GASS section names are translated to that program's naming through the built-in conversion tables, and a few writers change shape for it (the file header for Tekla Structural, member naming for Revit Structure).

Enum values:
Other
RevitStructure
ProSteel
TeklaStructural
XSteel
BentleyStructural
StruCAD
FrameworksPlus

Export IFC File โ€บ Responses

Returns the exported file

binaryย ยทย application/octet-stream