public static final class PartsGetMassPropertiesRequest.Builder extends Object
| Modifier and Type | Method | Description |
|---|---|---|
PartsGetMassPropertiesResponse |
call(OnshapeDocument document,
String partid) |
Calls getMassProperties method, Get the mass properties of a part; parts must have density in order to have mass.
|
PartsGetMassPropertiesResponse |
call(String did,
WVM wvmType,
String wvm,
String eid,
String partid) |
Calls getMassProperties method, Get the mass properties of a part; parts must have density in order to have mass.
|
String |
configuration() |
Get Configuration string
|
PartsGetMassPropertiesRequest.Builder |
configuration(String value) |
Set Configuration string
|
Boolean |
inferMetadataOwner() |
Get If the referenced part is a Standard Content part, specifying a value of true causes the API to look for metadata owned by the owner of the referencing linkDocument prior to calculating mass properties.
|
PartsGetMassPropertiesRequest.Builder |
inferMetadataOwner(Boolean value) |
Set If the referenced part is a Standard Content part, specifying a value of true causes the API to look for metadata owned by the owner of the referencing linkDocument prior to calculating mass properties.
|
String |
linkDocumentId() |
Get Id of document that links to the document being accessed.
|
PartsGetMassPropertiesRequest.Builder |
linkDocumentId(String value) |
Set Id of document that links to the document being accessed.
|
public final Boolean inferMetadataOwner()
public final PartsGetMassPropertiesRequest.Builder inferMetadataOwner(Boolean value)
value - If the referenced part is a Standard Content part, specifying a value of true causes the API to look for metadata owned by the owner of the referencing linkDocument prior to calculating mass properties. If Standard Content metadata is found and it contains a material assignment, the density from that material is applied to the mass properties calculation.public final String linkDocumentId()
public final PartsGetMassPropertiesRequest.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 PartsGetMassPropertiesRequest.Builder configuration(String value)
value - Configuration stringpublic final PartsGetMassPropertiesResponse call(String did, WVM wvmType, String wvm, String eid, String partid) throws OnshapeException
did - Document IDwvmType - Type of Workspace, Version or Microversionwvm - Workspace (w), Version (v) or Microversion (m) IDeid - Element IDpartid - Part ID (must be URL encoded)OnshapeException - On HTTP or serialization errorpublic final PartsGetMassPropertiesResponse call(OnshapeDocument document, String partid) throws OnshapeException
document - Document object from Onshape URL.partid - Part ID (must be URL encoded)OnshapeException - On HTTP or serialization errorCopyright © 2021. All rights reserved.