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