๐Ÿค– 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

Import data into the current job


Import Text File

POST
/api/v1
/job/import/txt

Creates a new job and imports the SpaceGass text file into it. The new job will use the units defined in the imported text file โ€” no conversion is performed.

No job must be open when calling this endpoint. If a job is already open (even an empty one), the request will return 409 Conflict โ€” close the current job first using POST /job/close.

The file should be uploaded as multipart/form-data with the field name "file".

Example usage with curl:

Code
curl -X POST "/api/v1/job/import/txt" \ -F "file=@/path/to/model.txt"

Import Text File โ€บ Request Body optional

file
โ€‹binaryย ยทย application/octet-stream

The SpaceGass text file (.txt) to import

Import Text File โ€บ Responses

Text file imported successfully. Returns the new job status with model counts.

Full job status response including the current job, session state, structure summary, and loads summary. Returned by lifecycle operations (new, open, save, status) and GET /job/status.
โ€‹Job

Read DTO for job responses. Model counts and file state are available via GET /job/status (JobStatusDto).

โ€‹JobState

Current session/file state of the job.

โ€‹StructureSummary

Summary counts of structural entities in the current job โ€” geometry, boundary conditions, and section/material properties.

โ€‹LoadsSummary

Summary counts of load-related entities in the current job โ€” load case management and all applied load types.

โ€‹AnalysisResultsSummary

Summary of which analysis types have stored results for the current job.

โ€‹SteelDesignSummary

Summary of steel design data and results for the current job โ€” the number of steel member design groups, and which steel design types have stored results.

accessMode
โ€‹AccessModeย ยทย enum

Current operational mode of the API.

Enum values:
ReadWrite
ReadOnly
NoAccess