public static final class PartStudiosGetMassPropertiesRequest.Builder extends Object
| Modifier and Type | Method | Description |
|---|---|---|
PartStudiosGetMassPropertiesResponse |
call(OnshapeDocument document) |
Calls getMassProperties method, Get the mass properties of a part studio or parts; parts must have density in order to have mass.
|
PartStudiosGetMassPropertiesResponse |
call(String did,
WVM wvmType,
String wvm,
String eid) |
Calls getMassProperties method, Get the mass properties of a part studio or parts; parts must have density in order to have mass.
|
String |
configuration() |
Get Configuration string
|
PartStudiosGetMassPropertiesRequest.Builder |
configuration(String value) |
Set Configuration string
|
String |
linkDocumentId() |
Get Id of document that links to the document being accessed.
|
PartStudiosGetMassPropertiesRequest.Builder |
linkDocumentId(String value) |
Set Id of document that links to the document being accessed.
|
Boolean |
massAsGroup() |
Get If true, specified parts will be evaluated as a single object instead of individually
|
PartStudiosGetMassPropertiesRequest.Builder |
massAsGroup(Boolean value) |
Set If true, specified parts will be evaluated as a single object instead of individually
|
String |
partId() |
Get IDs of the parts for which to retrieve mass properties (repeat query param to add more than one, i.e.
|
PartStudiosGetMassPropertiesRequest.Builder |
partId(String value) |
Set IDs of the parts for which to retrieve mass properties (repeat query param to add more than one, i.e.
|
public final String partId()
public final PartStudiosGetMassPropertiesRequest.Builder partId(String value)
value - IDs of the parts for which to retrieve mass properties (repeat query param to add more than one, i.e. partId=JHK&partId=JHD)public final Boolean massAsGroup()
public final PartStudiosGetMassPropertiesRequest.Builder massAsGroup(Boolean value)
value - If true, specified parts will be evaluated as a single object instead of individuallypublic final String linkDocumentId()
public final PartStudiosGetMassPropertiesRequest.Builder linkDocumentId(String value)
value - Id of document that links to the document being accessed. This may provide additional access rights to the document. Allowed only with version (v) path parameter.public final String configuration()
public final PartStudiosGetMassPropertiesRequest.Builder configuration(String value)
value - Configuration stringpublic final PartStudiosGetMassPropertiesResponse call(String did, WVM wvmType, String wvm, String eid) throws OnshapeException
did - Document IDwvmType - Type of Workspace, Version or Microversionwvm - Workspace (w), Version (v) or Microversion (m) IDeid - Element IDOnshapeException - On HTTP or serialization errorpublic final PartStudiosGetMassPropertiesResponse call(OnshapeDocument document) throws OnshapeException
document - Document object from Onshape URL.OnshapeException - On HTTP or serialization errorCopyright © 2021. All rights reserved.