public static final class BlobElementsCreateTranslationRequest.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.
|
BlobElementsCreateTranslationRequest.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.
|
BlobElementsCreateTranslationResponse |
call(OnshapeDocument document) |
Calls createTranslation method, Create an element translation.
|
BlobElementsCreateTranslationResponse |
call(String did,
WV wvType,
String wv,
String eid) |
Calls createTranslation method, Create an element translation.
|
Boolean |
createComposite() |
Get If the value is specified as true, each part studio contains a single composite part made up of all its topologies.
|
BlobElementsCreateTranslationRequest.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.
|
Boolean |
flattenAssemblies() |
Get If true, remove assembly structure and create only a Part Studio
|
BlobElementsCreateTranslationRequest.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.
|
BlobElementsCreateTranslationRequest.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).
|
BlobElementsCreateTranslationRequest.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).
|
String |
linkDocumentWorkspaceId() |
Get If storeInDocument is true and linkDocumentId is specified, this specifies a workspace to be used for result storage within the linkDocument.
|
BlobElementsCreateTranslationRequest.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
|
BlobElementsCreateTranslationRequest.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).
|
BlobElementsCreateTranslationRequest.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)
|
BlobElementsCreateTranslationRequest.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.
|
BlobElementsCreateTranslationRequest.Builder |
yAxisIsUp(Boolean value) |
Set If true, treat the model's Y axis as the vertical axis.
|
public final String formatName()
public final BlobElementsCreateTranslationRequest.Builder formatName(String value)
value - Name of format into which this file or element should be translated.public final String versionString()
public final BlobElementsCreateTranslationRequest.Builder versionString(String value)
value - Version of output format to use (format-dependent)public final Boolean notifyUser()
public final BlobElementsCreateTranslationRequest.Builder notifyUser(Boolean value)
value - Whether a user notification should be generated on completionpublic final Boolean flattenAssemblies()
public final BlobElementsCreateTranslationRequest.Builder flattenAssemblies(Boolean value)
value - If true, remove assembly structure and create only a Part Studiopublic final Boolean yAxisIsUp()
public final BlobElementsCreateTranslationRequest.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 BlobElementsCreateTranslationRequest.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 BlobElementsCreateTranslationRequest.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 BlobElementsCreateTranslationRequest.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 BlobElementsCreateTranslationRequest.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 BlobElementsCreateTranslationRequest.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 BlobElementsCreateTranslationResponse 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 BlobElementsCreateTranslationResponse call(OnshapeDocument document) throws OnshapeException
document - Document object from Onshape URL.OnshapeException - On HTTP or serialization errorCopyright © 2021. All rights reserved.