public static final class DrawingsCreateTranslationRequest.Builder extends Object
| Modifier and Type | Method | Description |
|---|---|---|
DrawingsCreateTranslationResponse |
call(OnshapeDocument document) |
Calls createTranslation method, Create an element translation.
|
DrawingsCreateTranslationResponse |
call(String did,
WV wvType,
String wv,
String eid) |
Calls createTranslation method, Create an element translation.
|
String |
colorMethod() |
Get (PDF only) The color transformation that should be applied to the drawing on export.
|
DrawingsCreateTranslationRequest.Builder |
colorMethod(String value) |
Set (PDF only) The color transformation that should be applied to the drawing on export.
|
Boolean |
currentSheetOnly() |
Get (DWG only) Whether to only export the last active sheet or all sheets
|
DrawingsCreateTranslationRequest.Builder |
currentSheetOnly(Boolean value) |
Set (DWG only) Whether to only export the last active sheet or all sheets
|
String |
destinationName() |
Get Name of the output file or new element.
|
DrawingsCreateTranslationRequest.Builder |
destinationName(String value) |
Set Name of the output file or new element.
|
Boolean |
flatten() |
Get Whether to set z-height to zero and normals to positive
|
DrawingsCreateTranslationRequest.Builder |
flatten(Boolean value) |
Set Whether to set z-height to zero and normals to positive
|
String |
formatName() |
Get Name of format into which this element should be translated.
|
DrawingsCreateTranslationRequest.Builder |
formatName(String value) |
Set Name of format into which this element should be translated.
|
String |
linkDocumentWorkspaceId() |
Get If storeInDocument is true and linkDocumentId is specified, this specifies a workspace to be used for result storage within the linkDocument.
|
DrawingsCreateTranslationRequest.Builder |
linkDocumentWorkspaceId(String value) |
Set If storeInDocument is true and linkDocumentId is specified, this specifies a workspace to be used for result storage within the linkDocument.
|
Boolean |
notifyUser() |
Get Whether a user notification should be generated on completion
|
DrawingsCreateTranslationRequest.Builder |
notifyUser(Boolean value) |
Set Whether a user notification should be generated on completion
|
Boolean |
selectablePdfText() |
Get (PDF only) Controls if text on the drawing should be selectable on the output PDF.
|
DrawingsCreateTranslationRequest.Builder |
selectablePdfText(Boolean value) |
Set (PDF only) Controls if text on the drawing should be selectable on the output PDF.
|
Boolean |
showOveriddenDimensions() |
Get (DWG only) Whether overridden dimensions should be underlined
|
DrawingsCreateTranslationRequest.Builder |
showOveriddenDimensions(Boolean value) |
Set (DWG only) Whether overridden dimensions should be underlined
|
Boolean |
splinesAsPolylines() |
Get Whether splines should be converted to polylines on the export
|
DrawingsCreateTranslationRequest.Builder |
splinesAsPolylines(Boolean value) |
Set Whether splines should be converted to polylines on the export
|
Boolean |
storeInDocument() |
Get controls whether the translation is stored as a new element or whether the data is stored as external data (storeInDocument=false).
|
DrawingsCreateTranslationRequest.Builder |
storeInDocument(Boolean value) |
Set controls whether the translation is stored as a new element or whether the data is stored as external data (storeInDocument=false).
|
Boolean |
textAsGeometry() |
Get Whether text should be exploded into polylines
|
DrawingsCreateTranslationRequest.Builder |
textAsGeometry(Boolean value) |
Set Whether text should be exploded into polylines
|
String |
versionString() |
Get (DWG only) Version of output format to use (format-dependent).
|
DrawingsCreateTranslationRequest.Builder |
versionString(String value) |
Set (DWG only) Version of output format to use (format-dependent).
|
public final String formatName()
public final DrawingsCreateTranslationRequest.Builder formatName(String value)
value - Name of format into which this element should be translated.public final String destinationName()
public final DrawingsCreateTranslationRequest.Builder destinationName(String value)
value - Name of the output file or new element. If the name does not include a file extension the extension will be derived from the formatName parameterpublic final String versionString()
public final DrawingsCreateTranslationRequest.Builder versionString(String value)
value - (DWG only) Version of output format to use (format-dependent). Currently supported formats are: 2013, 2010, 2007, 2004, 2000, R14, R13, R12public final Boolean notifyUser()
public final DrawingsCreateTranslationRequest.Builder notifyUser(Boolean value)
value - Whether a user notification should be generated on completionpublic final Boolean textAsGeometry()
public final DrawingsCreateTranslationRequest.Builder textAsGeometry(Boolean value)
value - Whether text should be exploded into polylinespublic final Boolean showOveriddenDimensions()
public final DrawingsCreateTranslationRequest.Builder showOveriddenDimensions(Boolean value)
value - (DWG only) Whether overridden dimensions should be underlinedpublic final Boolean currentSheetOnly()
public final DrawingsCreateTranslationRequest.Builder currentSheetOnly(Boolean value)
value - (DWG only) Whether to only export the last active sheet or all sheetspublic final Boolean splinesAsPolylines()
public final DrawingsCreateTranslationRequest.Builder splinesAsPolylines(Boolean value)
value - Whether splines should be converted to polylines on the exportpublic final Boolean flatten()
public final DrawingsCreateTranslationRequest.Builder flatten(Boolean value)
value - Whether to set z-height to zero and normals to positivepublic final String colorMethod()
public final DrawingsCreateTranslationRequest.Builder colorMethod(String value)
value - (PDF only) The color transformation that should be applied to the drawing on export. Supported options are: color, blackandwhite and grayscalepublic final Boolean selectablePdfText()
public final DrawingsCreateTranslationRequest.Builder selectablePdfText(Boolean value)
value - (PDF only) Controls if text on the drawing should be selectable on the output PDF.public final Boolean storeInDocument()
public final DrawingsCreateTranslationRequest.Builder storeInDocument(Boolean value)
value - controls whether the translation is stored as a new element or whether the data is stored as external data (storeInDocument=false).public final String linkDocumentWorkspaceId()
public final DrawingsCreateTranslationRequest.Builder linkDocumentWorkspaceId(String value)
value - If storeInDocument is true and linkDocumentId is specified, this specifies a workspace to be used for result storage within the linkDocument.public final DrawingsCreateTranslationResponse 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 DrawingsCreateTranslationResponse call(OnshapeDocument document) throws OnshapeException
document - Document object from Onshape URL.OnshapeException - On HTTP or serialization errorCopyright © 2021. All rights reserved.