PartStudio

Evaluate the FeatureScript snippet for a Part Studio.

Changed on

See API Guide: Evaluating FeatureScript for more details.

Note that only lambda expressions can be evaulated with this endpoint.

post/partstudios/d/{did}/{wvm}/{wvmid}/e/{eid}/featurescript

Request

  • Base URL: https://api.onshape.com/api/v17
  • URL: https://api.onshape.com/api/v17/partstudios/d/{did}/{wvm}/{wvmid}/e/{eid}/featurescript
  • Auth: OAuth 2 (authorization code, authorization URL /oauth/authorize, token URL /oauth/token, scopes: OAuth2Read) and HTTP basic

Path parameters

didstring required

The id of the document in which to perform the operation.

wvm'w' | 'v' | 'm' required

Indicates which of workspace (w), version (v), or document microversion (m) id is specified below.

wvmidstring required

The id of the workspace, version or document microversion in which the operation should be performed.

eidstring required

The id of the element in which to perform the operation.

Query parameters

linkDocumentIdstring

The id of the document through which the above document should be accessed; only applicable when accessing a version of the document. This allows a user who has access to document a to see data from document b, as long as document b has been linked to document a by a user who has permission to both.

configurationstring

URL-encoded string of configuration values (separated by ;). See the Configurations API Guide for details.

rollbackBarIndexinteger

Index specifying the location of the rollback bar when the call is evaluated. A -1 indicates that it should be at the end of the featurelist.

elementMicroversionIdstring

A specific element microversion in which to evaluate the request.

Response

default response

Changes

    • warning

      added the new CUSTOM_STANDARD_CONTENT_TAG_COMPOSITE_PART_TOO_MANY_CONSTITUENTS enum value to the /// response property for the response status

    • warning

      added the new ASSEMBLY_NAMED_POSITIONS_LOCK_RIGID enum value to the /// response property for the response status

    • warning

      added the new ASSEMBLY_NAMED_POSITIONS_UNLOCKING_UNLOCKED enum value to the /// response property for the response status

    • warning

      added the new SHEET_METAL_JOG_OPPOSITE_DIRECTION enum value to the /// response property for the response status

    • warning

      added the new SHEET_METAL_JOINT_K_FACTOR enum value to the /// response property for the response status

    • warning

      added the new SIMULATION_BOUNDARY_CONDITION_ALL_CONSTRAINTS_DISABLED enum value to the /// response property for the response status

    • warning

      added the new SIMULATION_RIGID_INSTANCE_MATERIAL_PROPERTY_OUTSIDE_REQUIRED_BOUNDS enum value to the /// response property for the response status