Evaluate FeatureScript
onshape_eval_featurescriptRun custom FeatureScript functions on an Onshape Part Studio to inspect geometry and return decoded values. Use for general-purpose geometry queries.
Instructions
Run a FeatureScript function against the Part Studio and return its decoded value. The general-purpose way to inspect geometry: 'function(context is Context, queries) { ... }'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ws | Yes | Workspace id — the <ws> segment of the document URL. | |
| doc | Yes | Document id — the <doc> in cad.onshape.com/documents/<doc>/w/<ws>/e/<elem>. | |
| raw | No | Return Onshape's raw response instead of the decoded value. | |
| elem | Yes | Element id (tab) — the <elem> segment of the document URL. | |
| script | Yes | A FeatureScript function expression taking (context, queries). |