public static final class TranslationsCreateTranslationRequest.Builder extends Object
| Modifier and Type | Method | Description |
|---|---|---|
Boolean |
allowFaultyParts() |
Get If not specified or if specified as false, bodies to be imported are examined for validity and any found to be faulty are removed from the import.
|
TranslationsCreateTranslationRequest.Builder |
allowFaultyParts(Boolean value) |
Set If not specified or if specified as false, bodies to be imported are examined for validity and any found to be faulty are removed from the import.
|
TranslationsCreateTranslationResponse |
call(OnshapeDocument document) |
Calls createTranslation method, Create a translation of the input data.
|
TranslationsCreateTranslationResponse |
call(String did,
String wid) |
Calls createTranslation method, Create a translation of the input data.
|
Boolean |
createComposite() |
Get If the value is specified as true, each part studio contains a single composite part made up of all its topologies.
|
TranslationsCreateTranslationRequest.Builder |
createComposite(Boolean value) |
Set If the value is specified as true, each part studio contains a single composite part made up of all its topologies.
|
Blob |
file() |
Get File to upload
|
TranslationsCreateTranslationRequest.Builder |
file(Blob value) |
Set File to upload
|
Boolean |
flattenAssemblies() |
Get If true, remove assembly structure and create only a Part Studio
|
TranslationsCreateTranslationRequest.Builder |
flattenAssemblies(Boolean value) |
Set If true, remove assembly structure and create only a Part Studio
|
String |
formatName() |
Get Name of format into which this file or element should be translated.
|
TranslationsCreateTranslationRequest.Builder |
formatName(String value) |
Set Name of format into which this file or element should be translated.
|
Boolean |
importInBackground() |
Get If storeInDocument is true and formatName is ONSHAPE and the source is a Parasolid file, this specifies the preference as to whether the import should be completed prior to the completion of the request (importInBackground=false) or whether it should be performed asynchronously (importInBackground=true).
|
TranslationsCreateTranslationRequest.Builder |
importInBackground(Boolean value) |
Set If storeInDocument is true and formatName is ONSHAPE and the source is a Parasolid file, this specifies the preference as to whether the import should be completed prior to the completion of the request (importInBackground=false) or whether it should be performed asynchronously (importInBackground=true).
|
Boolean |
notifyUser() |
Get Whether a user notification should be generated on completion
|
TranslationsCreateTranslationRequest.Builder |
notifyUser(Boolean value) |
Set Whether a user notification should be generated on completion
|
Boolean |
storeInDocument() |
Get controls whether the translation is stored as a new element or whether the data is stored as external data (storeInDocument=false).
|
TranslationsCreateTranslationRequest.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).
|
String |
versionString() |
Get Version of output format to use (format-dependent)
|
TranslationsCreateTranslationRequest.Builder |
versionString(String value) |
Set Version of output format to use (format-dependent)
|
Boolean |
yAxisIsUp() |
Get If true, treat the model's Y axis as the vertical axis.
|
TranslationsCreateTranslationRequest.Builder |
yAxisIsUp(Boolean value) |
Set If true, treat the model's Y axis as the vertical axis.
|
public final Blob file()
public final TranslationsCreateTranslationRequest.Builder file(Blob value)
value - File to uploadpublic final String formatName()
public final TranslationsCreateTranslationRequest.Builder formatName(String value)
value - Name of format into which this file or element should be translated.public final String versionString()
public final TranslationsCreateTranslationRequest.Builder versionString(String value)
value - Version of output format to use (format-dependent)public final Boolean notifyUser()
public final TranslationsCreateTranslationRequest.Builder notifyUser(Boolean value)
value - Whether a user notification should be generated on completionpublic final Boolean flattenAssemblies()
public final TranslationsCreateTranslationRequest.Builder flattenAssemblies(Boolean value)
value - If true, remove assembly structure and create only a Part Studiopublic final Boolean yAxisIsUp()
public final TranslationsCreateTranslationRequest.Builder yAxisIsUp(Boolean value)
value - If true, treat the model's Y axis as the vertical axis. Otherwise, Z is treated as the vertical axis.public final Boolean importInBackground()
public final TranslationsCreateTranslationRequest.Builder importInBackground(Boolean value)
value - If storeInDocument is true and formatName is ONSHAPE and the source is a Parasolid file, this specifies the preference as to whether the import should be completed prior to the completion of the request (importInBackground=false) or whether it should be performed asynchronously (importInBackground=true). Historically, this parameter was implicitly set to false, but large imports can take long enough that the request could result in a timeout. Applications are encouraged to set this parameter to true for reliable operation.public final Boolean allowFaultyParts()
public final TranslationsCreateTranslationRequest.Builder allowFaultyParts(Boolean value)
value - If not specified or if specified as false, bodies to be imported are examined for validity and any found to be faulty are removed from the import. If all bodies are found to be faulty, the import fails. If the value is specified as true, we attempt to import the bodies that appear to have faults.public final Boolean createComposite()
public final TranslationsCreateTranslationRequest.Builder createComposite(Boolean value)
value - If the value is specified as true, each part studio contains a single composite part made up of all its topologies.public final Boolean storeInDocument()
public final TranslationsCreateTranslationRequest.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 TranslationsCreateTranslationResponse call(String did, String wid) throws OnshapeException
did - Document IDwid - Workspace IDOnshapeException - On HTTP or serialization errorpublic final TranslationsCreateTranslationResponse call(OnshapeDocument document) throws OnshapeException
document - Document object from Onshape URL.OnshapeException - On HTTP or serialization errorCopyright © 2021. All rights reserved.