S3D.file
The S3D.file namespace provides functionality allowing the user to interact with their file manager on the SkyCiv platform.
S3D.file.save#
Save a model to the user's SkyCiv cloud storage.
important
S3D.model.set must be called earlier in the session.
| Key | Type | Description |
|---|---|---|
name | string | File name of the model |
path | string | Path in the user's cloud file storage |
public_share | boolean | Also return a link for a public share link (view only) |
Sample input for the S3D.file.save function#
Sample response for the S3D.file.save function#
The response will confirm whether or not the model was successfully saved to the user's SkyCiv cloud storage. It will also include a link to the model:
Visit the URL to view, analyse and modify the model in Structural 3D.

S3D.file.open#
Load a model from the user's SkyCiv cloud storage.
| Key | Type | Description |
|---|---|---|
name | string | File name of the model. |
path | string | Path in the user's cloud file storage |
load_results | boolean | Boolean to load analysis results with file (false by default) |
Sample input for the S3D.file.open function#
Sample response for the S3D.file.open function#
S3D.file.share#
Share a model with another SkyCiv user.
| Key | Type | Description |
|---|---|---|
name | string | File name of the model to share. |
path | string | Path in the user's cloud file storage. |
share_with | [string] | An array of SkyCiv email addresses to share the model with. |
Sample input for the S3D.file.share function#
Sample response for the S3D.file.share function#
The response will contain a confirmation message, a list of shared users and a public (view only) link.
S3D.file.getFileDirectory#
Returns a list of files and folders of in the user's cloud storage. Useful for locating files or building a tree of files.
| Key | Type | Description |
|---|---|---|
path | string | Path in the user's cloud file storage. "" will return the contents of the root directory. |
full_list | boolean | Return user's entire file directory in a nested format. |
full_list_flat | boolean | Returns the data as a flattened list for easier iteration. |
Sample input for the S3D.file.getFileDirectory function#
Sample response for the S3D.file.getFileDirectory function#
The below response shows the contents of the folder, which includes one folder called QA and a file (model) called FCSP Moment Frame ASD - for revit.
S3D.file.restoreVersion#
SkyCiv has built in version control for your models. Rollback previous versions of your file using this function.
| Key | Type | Description |
|---|---|---|
rollback_versions | integer | Number of models to rollback |