S3D.export
The S3D.export namespace provides functions to export data and files from your s3d_model.
S3D.export.model.csv#
Exports a specific element type from the s3d_model (e.g. nodes, members, plates) as a CSV-formatted string.
important
S3D.model.set must be called earlier in the session.
| Key | Type | Accepts | Description |
|---|---|---|---|
element_type | string | Nodes, Members, Plates, Meshed Plates, Supports, Materials, Sections | The model element type to export as CSV. |
Sample input for S3D.export.model.csv
The response will return the CSV data as a string.
Sample response for S3D.export.model.csv
S3D.export.model.dxf#
Exports the s3d_model as a DXF file.
important
S3D.model.set must be called earlier in the session.
| Key | Type | Accepts | Description | Default |
|---|---|---|---|---|
scale | float | e.g. 1 | Scale factor applied to the exported geometry. | 1 |
vertical_z | boolean | true, false | If true, treats the Z axis as vertical instead of Y. | false |
timeout | integer | Milliseconds | How long to wait for the export to complete before timing out. | 60000 |
Sample input for S3D.export.model.dxf
The response will return the raw DXF file content as a string.
Sample response for S3D.export.model.dxf
S3D.export.model.stl#
Exports the s3d_model as an STL file, using the current 3D renderer geometry. This function takes no required arguments.
important
S3D.model.set must be called earlier in the session.
| Key | Type | Accepts | Description | Default |
|---|---|---|---|---|
timeout | integer | Milliseconds | How long to wait for the export to complete before timing out. | 60000 |
Sample input for S3D.export.model.stl
The response will return the raw STL file content as a string.
Sample response for S3D.export.model.stl