public static final class AssembliesCreateInstanceRequest.Builder extends Object
| Modifier and Type | Method | Description |
|---|---|---|
AssembliesCreateInstanceResponse |
call(OnshapeDocument document) |
Calls createInstance method, Create an instance of a part, part studio or assembly into an existing assembly element.
|
AssembliesCreateInstanceResponse |
call(String did,
String wid,
String eid) |
Calls createInstance method, Create an instance of a part, part studio or assembly into an existing assembly element.
|
String |
configuration() |
Get Configuration of the source element, valid only if the referenced element is a Part Studio.
|
AssembliesCreateInstanceRequest.Builder |
configuration(String value) |
Set Configuration of the source element, valid only if the referenced element is a Part Studio.
|
String |
documentId() |
Get The id of the content document containing the parts or assemblies to be inserted.
|
AssembliesCreateInstanceRequest.Builder |
documentId(String value) |
Set The id of the content document containing the parts or assemblies to be inserted.
|
String |
elementId() |
Get The id of the element containing the part(s), feature or assemblies to be inserted.
|
AssembliesCreateInstanceRequest.Builder |
elementId(String value) |
Set The id of the element containing the part(s), feature or assemblies to be inserted.
|
String |
featureId() |
Get If isAssembly and isWholePartStudio are false, then this is the id of the feature to be inserted.
|
AssembliesCreateInstanceRequest.Builder |
featureId(String value) |
Set If isAssembly and isWholePartStudio are false, then this is the id of the feature to be inserted.
|
String[] |
includePartTypes() |
Get The part types to include.
|
AssembliesCreateInstanceRequest.Builder |
includePartTypes(String[] value) |
Set The part types to include.
|
Boolean |
isAssembly() |
Get If true then the source element must be an assembly and whole assembly is inserted.
|
AssembliesCreateInstanceRequest.Builder |
isAssembly(Boolean value) |
Set If true then the source element must be an assembly and whole assembly is inserted.
|
Boolean |
isHidden() |
Get If true add the instance as hidden
|
AssembliesCreateInstanceRequest.Builder |
isHidden(Boolean value) |
Set If true add the instance as hidden
|
Boolean |
isSuppressed() |
Get If true add the instance as suppressed
|
AssembliesCreateInstanceRequest.Builder |
isSuppressed(Boolean value) |
Set If true add the instance as suppressed
|
Boolean |
isWholePartStudio() |
Get If true then the source element must be a partStudio and all parts are inserted.
|
AssembliesCreateInstanceRequest.Builder |
isWholePartStudio(Boolean value) |
Set If true then the source element must be a partStudio and all parts are inserted.
|
String |
microversionId() |
Get The document microversionId in which the elementId and partId will be resolved.
|
AssembliesCreateInstanceRequest.Builder |
microversionId(String value) |
Set The document microversionId in which the elementId and partId will be resolved.
|
String |
partId() |
Get If isAssembly and isWholePartStudio are false, then this is the id of the part or surface to be inserted.
|
AssembliesCreateInstanceRequest.Builder |
partId(String value) |
Set If isAssembly and isWholePartStudio are false, then this is the id of the part or surface to be inserted.
|
String |
partNumber() |
Get The part number identifying the part or assembly in the release that is to be inserted.
|
AssembliesCreateInstanceRequest.Builder |
partNumber(String value) |
Set The part number identifying the part or assembly in the release that is to be inserted.
|
String |
revision() |
Get The revision containing the released part or assembly to be inserted.
|
AssembliesCreateInstanceRequest.Builder |
revision(String value) |
Set The revision containing the released part or assembly to be inserted.
|
String |
versionId() |
Get The document versionId from which the parts or assembly to be inserted will be taken.
|
AssembliesCreateInstanceRequest.Builder |
versionId(String value) |
Set The document versionId from which the parts or assembly to be inserted will be taken.
|
public final String documentId()
public final AssembliesCreateInstanceRequest.Builder documentId(String value)
value - The id of the content document containing the parts or assemblies to be inserted.public final String elementId()
public final AssembliesCreateInstanceRequest.Builder elementId(String value)
value - The id of the element containing the part(s), feature or assemblies to be inserted.public final String versionId()
public final AssembliesCreateInstanceRequest.Builder versionId(String value)
value - The document versionId from which the parts or assembly to be inserted will be taken. If documentId references a different document than did, this must be set to a valid version.public final String microversionId()
public final AssembliesCreateInstanceRequest.Builder microversionId(String value)
value - The document microversionId in which the elementId and partId will be resolved. This is valid only if no versionId is specified. When a versionId is specified, the partId must be obtained from the specified version.public final Boolean isSuppressed()
public final AssembliesCreateInstanceRequest.Builder isSuppressed(Boolean value)
value - If true add the instance as suppressedpublic final Boolean isHidden()
public final AssembliesCreateInstanceRequest.Builder isHidden(Boolean value)
value - If true add the instance as hiddenpublic final Boolean isAssembly()
public final AssembliesCreateInstanceRequest.Builder isAssembly(Boolean value)
value - If true then the source element must be an assembly and whole assembly is inserted.public final Boolean isWholePartStudio()
public final AssembliesCreateInstanceRequest.Builder isWholePartStudio(Boolean value)
value - If true then the source element must be a partStudio and all parts are inserted.public final String partId()
public final AssembliesCreateInstanceRequest.Builder partId(String value)
value - If isAssembly and isWholePartStudio are false, then this is the id of the part or surface to be inserted. Must be left blank if featureId is set.public final String featureId()
public final AssembliesCreateInstanceRequest.Builder featureId(String value)
value - If isAssembly and isWholePartStudio are false, then this is the id of the feature to be inserted. Currently, only sketch features are valid. Must be left blank if partId is set.public final String configuration()
public final AssembliesCreateInstanceRequest.Builder configuration(String value)
value - Configuration of the source element, valid only if the referenced element is a Part Studio.public final String revision()
public final AssembliesCreateInstanceRequest.Builder revision(String value)
value - The revision containing the released part or assembly to be inserted.public final String partNumber()
public final AssembliesCreateInstanceRequest.Builder partNumber(String value)
value - The part number identifying the part or assembly in the release that is to be inserted.public final String[] includePartTypes()
public final AssembliesCreateInstanceRequest.Builder includePartTypes(String[] value)
value - The part types to include. used only if "isWholePartStudio" is "true". Can be: {"PARTS", "SKETCHES","SURFACES","FLATTENED_PARTS", "COMPOSITE_PARTS", "PART_STUDIOS", "WIRES", "UNKNOWN"}.public final AssembliesCreateInstanceResponse call(String did, String wid, String eid) throws OnshapeException
did - Document IDwid - Workspace IDeid - Element IDOnshapeException - On HTTP or serialization errorpublic final AssembliesCreateInstanceResponse call(OnshapeDocument document) throws OnshapeException
document - Document object from Onshape URL.OnshapeException - On HTTP or serialization errorCopyright © 2021. All rights reserved.