public static final class PartsExportStlRequest.Builder extends Object
| Modifier and Type | Method | Description |
|---|---|---|
Number |
angleTolerance() |
Get Angle tolerance (in radians; must be < pi/2)
|
PartsExportStlRequest.Builder |
angleTolerance(Number value) |
Set Angle tolerance (in radians; must be < pi/2)
|
PartsExportStlResponse |
call(OnshapeDocument document,
String partid) |
Calls exportStl method, Export the part in text or binary STL format; returns a 307 redirect.
|
PartsExportStlResponse |
call(String did,
WVM wvmType,
String wvm,
String eid,
String partid) |
Calls exportStl method, Export the part in text or binary STL format; returns a 307 redirect.
|
InputStreamWithHeaders |
callToStream(String did,
WVM wvmType,
String wvm,
String eid,
String partid) |
Calls exportStl method, Export the part in text or binary STL format; returns a 307 redirect.
|
Number |
chordTolerance() |
Get Chord tolerance (in selected units)
|
PartsExportStlRequest.Builder |
chordTolerance(Number value) |
Set Chord tolerance (in selected units)
|
String |
configuration() |
Get Configuration string
|
PartsExportStlRequest.Builder |
configuration(String value) |
Set Configuration string
|
Boolean |
grouping() |
Get Whether parts should be exported as a group or individually in a .zip file
|
PartsExportStlRequest.Builder |
grouping(Boolean value) |
Set Whether parts should be exported as a group or individually in a .zip file
|
String |
linkDocumentId() |
Get Id of document that links to the document being accessed.
|
PartsExportStlRequest.Builder |
linkDocumentId(String value) |
Set Id of document that links to the document being accessed.
|
Number |
maxFacetWidth() |
Get Maximum facet width (in selected units)
|
PartsExportStlRequest.Builder |
maxFacetWidth(Number value) |
Set Maximum facet width (in selected units)
|
Number |
minFacetWidth() |
Get Minimum facet width (in selected units - must be < maximumFacetWidth)
|
PartsExportStlRequest.Builder |
minFacetWidth(Number value) |
Set Minimum facet width (in selected units - must be < maximumFacetWidth)
|
String |
mode() |
Get Type of file: text, binary
|
PartsExportStlRequest.Builder |
mode(String value) |
Set Type of file: text, binary
|
Number |
scale() |
Get Scale for measurements
|
PartsExportStlRequest.Builder |
scale(Number value) |
Set Scale for measurements
|
String |
units() |
Get Name of base unit (meter, centimeter, millimeter, inch, foot, or yard)
|
PartsExportStlRequest.Builder |
units(String value) |
Set Name of base unit (meter, centimeter, millimeter, inch, foot, or yard)
|
public final Boolean grouping()
public final PartsExportStlRequest.Builder grouping(Boolean value)
value - Whether parts should be exported as a group or individually in a .zip filepublic final Number scale()
public final PartsExportStlRequest.Builder scale(Number value)
value - Scale for measurementspublic final String units()
public final PartsExportStlRequest.Builder units(String value)
value - Name of base unit (meter, centimeter, millimeter, inch, foot, or yard)public final Number angleTolerance()
public final PartsExportStlRequest.Builder angleTolerance(Number value)
value - Angle tolerance (in radians; must be < pi/2)public final Number chordTolerance()
public final PartsExportStlRequest.Builder chordTolerance(Number value)
value - Chord tolerance (in selected units)public final Number maxFacetWidth()
public final PartsExportStlRequest.Builder maxFacetWidth(Number value)
value - Maximum facet width (in selected units)public final Number minFacetWidth()
public final PartsExportStlRequest.Builder minFacetWidth(Number value)
value - Minimum facet width (in selected units - must be < maximumFacetWidth)public final String mode()
public final PartsExportStlRequest.Builder mode(String value)
value - Type of file: text, binarypublic final String linkDocumentId()
public final PartsExportStlRequest.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 PartsExportStlRequest.Builder configuration(String value)
value - Configuration stringpublic final PartsExportStlResponse 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 - Part studio element IDpartid - Part IDOnshapeException - On HTTP or serialization errorpublic final PartsExportStlResponse call(OnshapeDocument document, String partid) throws OnshapeException
document - Document object from Onshape URL.partid - Part IDOnshapeException - On HTTP or serialization errorpublic final InputStreamWithHeaders callToStream(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 - Part studio element IDpartid - Part IDOnshapeException - On HTTP errorCopyright © 2021. All rights reserved.