public static final class AssembliesTransformOccurrencesRequest.Builder extends Object
| Modifier and Type | Method | Description |
|---|---|---|
AssembliesTransformOccurrencesResponse |
call(OnshapeDocument document) |
Calls transformOccurrences method, Transform a list of assembly occurrences.
|
AssembliesTransformOccurrencesResponse |
call(String did,
String wid,
String eid) |
Calls transformOccurrences method, Transform a list of assembly occurrences.
|
Boolean |
isRelative() |
Get Whether the transform is relative or absolute.
|
AssembliesTransformOccurrencesRequest.Builder |
isRelative(Boolean value) |
Set Whether the transform is relative or absolute.
|
AssembliesTransformOccurrencesRequestOccurrences[] |
occurrences() |
Get A list of occurrences to transform.
|
AssembliesTransformOccurrencesRequest.Builder |
occurrences(AssembliesTransformOccurrencesRequestOccurrences[] value) |
Set A list of occurrences to transform.
|
Number[] |
transform() |
Get The transform to apply to the occurrences.
|
AssembliesTransformOccurrencesRequest.Builder |
transform(Number[] value) |
Set The transform to apply to the occurrences.
|
public final AssembliesTransformOccurrencesRequestOccurrences[] occurrences()
public final AssembliesTransformOccurrencesRequest.Builder occurrences(AssembliesTransformOccurrencesRequestOccurrences[] value)
value - A list of occurrences to transform.public final Number[] transform()
public final AssembliesTransformOccurrencesRequest.Builder transform(Number[] value)
value - The transform to apply to the occurrences. Must be 9, 12, or 16 elements in length, representing a 3x3, 4x3 or 4x4 matrix, respectively. All translation matrix components are in meters.public final Boolean isRelative()
public final AssembliesTransformOccurrencesRequest.Builder isRelative(Boolean value)
value - Whether the transform is relative or absolute. Each occurrence in an assembly has a transform that positions it relative to the top-most assembly. An absolute transform operation sets the transform of the occurrence and each child occurrence to the specified transform. A relative transform operation combines the specified transform with the existing transform of the occurrence and with each child occurrence transform.public final AssembliesTransformOccurrencesResponse call(String did, String wid, String eid) throws OnshapeException
did - Document IDwid - Workspace IDeid - Element IDOnshapeException - On HTTP or serialization errorpublic final AssembliesTransformOccurrencesResponse call(OnshapeDocument document) throws OnshapeException
document - Document object from Onshape URL.OnshapeException - On HTTP or serialization errorCopyright © 2021. All rights reserved.