S3D.results
This namespace provides methods to interact with the solver results.
S3D.results.setAll#
Description: Sets the results data.
Operation Type: Synchronous
Access: set
Params: S3D.results.setAll(resultsObject)
| Key | Type | Description |
|---|---|---|
resultsObject | Object | The results object received from S3D.generalSolve. |
Sample:
S3D.results.getAll#
Description: If your model has been solved, users can download the analysis results. This will return an array of objects, containing all results from the analysis.
Operation Type: Synchronous
Access: get
Params: S3D.results.getAll(downloadAll)
| Key | Type | Accepts | Description |
|---|---|---|---|
downloadAll | boolean | true, false | If the results should be downloaded. If false, it will only return what has already been downloaded. This prevents excessive downloading where it may not be necessary. |
Sample:
tip
S3D.results.get() and S3D.results.getAll() return results in S3D's internal/legacy format, not
the analysis results object the S3D.results.get
API function returns. Always pass the output through S3D.API.output.S3D2API
first so results are shaped consistently whether they came from the S3D UI or the API โ e.g.
S3D.API.output.S3D2API(S3D.results.getAll(true)). Check S3D.solver.isSolved()
before calling either โ results are only instantly available once the model has been solved.