public static final class DocumentsExportElementPostJsonRequest.Builder extends Object
| Modifier and Type | Method | Description |
|---|---|---|
Number |
angleTolerance() |
Get Angle tolerance (must be < pi/2) (STL)
|
DocumentsExportElementPostJsonRequest.Builder |
angleTolerance(Number value) |
Set Angle tolerance (must be < pi/2) (STL)
|
DocumentsExportElementPostJsonResponse |
call(OnshapeDocument document) |
Calls exportElementPostJson method, Export the given element in STL or Parasolid (PS) formats; returns an URI in the response body,
client should GET this URI to initiate the export.
|
DocumentsExportElementPostJsonResponse |
call(String did,
WV wvType,
String wv,
String eid) |
Calls exportElementPostJson method, Export the given element in STL or Parasolid (PS) formats; returns an URI in the response body,
client should GET this URI to initiate the export.
|
Number |
chordTolerance() |
Get Chord tolerance (STL)
|
DocumentsExportElementPostJsonRequest.Builder |
chordTolerance(Number value) |
Set Chord tolerance (STL)
|
String |
format() |
Get Export format: STL, PS
|
DocumentsExportElementPostJsonRequest.Builder |
format(String value) |
Set Export format: STL, PS
|
Boolean |
grouping() |
Get Whether parts should be exported as a group or individually in a .zip file (STL)
|
DocumentsExportElementPostJsonRequest.Builder |
grouping(Boolean value) |
Set Whether parts should be exported as a group or individually in a .zip file (STL)
|
String |
linkDocumentId() |
Get Id of document that links to the document being accessed.
|
DocumentsExportElementPostJsonRequest.Builder |
linkDocumentId(String value) |
Set Id of document that links to the document being accessed.
|
String |
linkDocumentWorkspaceId() |
Get The id of the workspace in which the result should be stored if storeInDocument is true and linkDocumentId is set.
|
DocumentsExportElementPostJsonRequest.Builder |
linkDocumentWorkspaceId(String value) |
Set The id of the workspace in which the result should be stored if storeInDocument is true and linkDocumentId is set.
|
Number |
maxFacetWidth() |
Get Maximum facet width (STL)
|
DocumentsExportElementPostJsonRequest.Builder |
maxFacetWidth(Number value) |
Set Maximum facet width (STL)
|
String |
microversion() |
Get Specified microversion for operation
|
DocumentsExportElementPostJsonRequest.Builder |
microversion(String value) |
Set Specified microversion for operation
|
Number |
minFacetWidth() |
Get Minimum facet width (must be < maximumFacetWidth) (STL)
|
DocumentsExportElementPostJsonRequest.Builder |
minFacetWidth(Number value) |
Set Minimum facet width (must be < maximumFacetWidth) (STL)
|
String |
mode() |
Get Type of file: text, binary (STL)
|
DocumentsExportElementPostJsonRequest.Builder |
mode(String value) |
Set Type of file: text, binary (STL)
|
String |
partIds() |
Get Comma-separated list of part IDs to export
|
DocumentsExportElementPostJsonRequest.Builder |
partIds(String value) |
Set Comma-separated list of part IDs to export
|
Number |
scale() |
Get Scale for measurements (STL)
|
DocumentsExportElementPostJsonRequest.Builder |
scale(Number value) |
Set Scale for measurements (STL)
|
Boolean |
storeInDocument() |
Get whether the output should be stored as a new element
|
DocumentsExportElementPostJsonRequest.Builder |
storeInDocument(Boolean value) |
Set whether the output should be stored as a new element
|
String |
units() |
Get Name of base unit: meter, centimeter, millimeter, inch, foot, yard (STL)
|
DocumentsExportElementPostJsonRequest.Builder |
units(String value) |
Set Name of base unit: meter, centimeter, millimeter, inch, foot, yard (STL)
|
Number |
version() |
Get Parasolid version (PS)
|
DocumentsExportElementPostJsonRequest.Builder |
version(Number value) |
Set Parasolid version (PS)
|
Boolean |
zipSingleFileOutput() |
Get Whether single file output should be returned as a .zip file (STL, grouping==true)
|
DocumentsExportElementPostJsonRequest.Builder |
zipSingleFileOutput(Boolean value) |
Set Whether single file output should be returned as a .zip file (STL, grouping==true)
|
public final String format()
public final DocumentsExportElementPostJsonRequest.Builder format(String value)
value - Export format: STL, PSpublic final Boolean storeInDocument()
public final DocumentsExportElementPostJsonRequest.Builder storeInDocument(Boolean value)
value - whether the output should be stored as a new elementpublic final String linkDocumentWorkspaceId()
public final DocumentsExportElementPostJsonRequest.Builder linkDocumentWorkspaceId(String value)
value - The id of the workspace in which the result should be stored if storeInDocument is true and linkDocumentId is set.public final String partIds()
public final DocumentsExportElementPostJsonRequest.Builder partIds(String value)
value - Comma-separated list of part IDs to exportpublic final String microversion()
public final DocumentsExportElementPostJsonRequest.Builder microversion(String value)
value - Specified microversion for operationpublic final Boolean grouping()
public final DocumentsExportElementPostJsonRequest.Builder grouping(Boolean value)
value - Whether parts should be exported as a group or individually in a .zip file (STL)public final Boolean zipSingleFileOutput()
public final DocumentsExportElementPostJsonRequest.Builder zipSingleFileOutput(Boolean value)
value - Whether single file output should be returned as a .zip file (STL, grouping==true)public final Number scale()
public final DocumentsExportElementPostJsonRequest.Builder scale(Number value)
value - Scale for measurements (STL)public final String units()
public final DocumentsExportElementPostJsonRequest.Builder units(String value)
value - Name of base unit: meter, centimeter, millimeter, inch, foot, yard (STL)public final Number angleTolerance()
public final DocumentsExportElementPostJsonRequest.Builder angleTolerance(Number value)
value - Angle tolerance (must be < pi/2) (STL)public final Number chordTolerance()
public final DocumentsExportElementPostJsonRequest.Builder chordTolerance(Number value)
value - Chord tolerance (STL)public final Number maxFacetWidth()
public final DocumentsExportElementPostJsonRequest.Builder maxFacetWidth(Number value)
value - Maximum facet width (STL)public final Number minFacetWidth()
public final DocumentsExportElementPostJsonRequest.Builder minFacetWidth(Number value)
value - Minimum facet width (must be < maximumFacetWidth) (STL)public final String mode()
public final DocumentsExportElementPostJsonRequest.Builder mode(String value)
value - Type of file: text, binary (STL)public final Number version()
public final DocumentsExportElementPostJsonRequest.Builder version(Number value)
value - Parasolid version (PS)public final String linkDocumentId()
public final DocumentsExportElementPostJsonRequest.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 DocumentsExportElementPostJsonResponse call(String did, WV wvType, String wv, String eid) throws OnshapeException
did - Document IDwvType - Type of Workspace or Versionwv - Workspace (w) or Version (v) IDeid - Element IDOnshapeException - On HTTP or serialization errorpublic final DocumentsExportElementPostJsonResponse call(OnshapeDocument document) throws OnshapeException
document - Document object from Onshape URL.OnshapeException - On HTTP or serialization errorCopyright © 2021. All rights reserved.