Raw assembly data received from the server. For more information, see Open Cloud Assemblies API.
HTTP client instance used to send requests to the REST API server.
Endpoint-specific HTTP headers for the GET
, POST
, PUT
and DELETE
requests. You can add
custom headers at any time.
Endpoint API path relative to the REST API server URL.
List of unique files from which the assembly was created.
Assembly creation time (UTC) in the format specified in ISO 8601.
Returns the raw assembly data received from the server. For more information, see Open Cloud Assemblies API.
List of file IDs from which the assembly was created.
Assembly geometry data type:
vsfx
- VSFX
format, assembly can be opened in VisualizeJS
viewer.Returns an empty string if the geometry data is not yet ready.
Unique assembly ID.
Assembly name.
Assembly owner information.
List of assembly related job IDs.
Assembly geometry data and properties status. Can be waiting
, inprogress
, done
or failed
.
An assemblies without geometry data cannot be opened in viewer.
Assembly type. Returns an assembly
string.
Creates an assembly clash test. Assembly must be in a done
state, otherwise the test will fail.
Test name.
The type of first selection set for clash detection. Can be one of:
all
- All file/assembly objects.handle
- Objects with original handles specified in the selectionSetA
.models
- All objects of the models with original handles specified in the selectionSetA
.searchquery
- Objects retrieved by the search queries specified in selectionSetA
.The type of second selection set for clash detection. Can be one of:
all
- All file/assembly objects.handle
- Objects with original handles specified in the selectionSetB
.models
- All objects of the models with original handles specified in the selectionSetB
.searchquery
- Objects retrieved by the search queries specified in selectionSetB
.Optional
selectionSetA: string | string[]First selection set for clash detection. Objects from selectionSetA
will be
tested against each others by objects from the selectionSetB
during the test.
Optional
selectionSetB: string | string[]Second selection set for clash detection. Objects from selectionSetB
will
be tested against each others by objects from the selectionSetA
during the test.
Optional
params: {An object containing test parameters.
Optional
clearance?: booleanThe type of the clashes that the test detects:
true
- Сlearance clash. A clash in which the object A may or may not intersect with object B, but
comes within a distance of less than the tolerance
.false
- Hard clash. A clash in which the object A intersects with object B by a distance of more
than the tolerance
.Optional
interval?: numberThe time, in milliseconds, the function should delay in between checking test status.
Optional
signal?: AbortSignalAn AbortController signal, which can be used to abort waiting as desired.
Optional
timeout?: numberThe time, in milliseconds that the function should wait test. If test is not
complete during this time, the TimeoutError
exception will be thrown.
Optional
tolerance?: string | numberThe distance of separation between objects at which test begins detecting clashes.
Optional
waitForDone?: booleanWait for test to complete.
Deletes an assembly from the server.
Returns the raw data of a deleted assembly. For more information, see Open Cloud Assemblies API.
Deletes the specified assembly clash test.
Test ID.
Returns the raw data of a deleted test. For more information, see Open Cloud Assemblies API.
Deletes the specified assembly viewpoint.
Viewpoint GUID.
Returns a deleted viewpoint. For more information, see Open Cloud Assembly Viewpoints API.
Deprecated since 25.3
. Use downloadResourceRange() instead.
Optional
onProgress: (progress: number, chunk: Uint8Array, requestId: number) => voidOptional
signal: AbortSignalDownloads an assembly resource file. Resource files are files that contain model scene descriptions, or geometry data.
Resource file name.
Optional
onProgress: (progress: number, chunk: Uint8Array) => voidDownload progress callback.
Optional
signal: AbortSignalAn AbortController signal. Allows to communicate with a fetch request and abort it if desired.
Downloads a part of assembly resource file. Resource files are files that contain model scene descriptions, or geometry data.
Resource file name.
Request ID for download progress callback.
A range of resource file contents to download.
Optional
onProgress: (progress: number, chunk: Uint8Array, requestId: number) => voidDownload progress callback.
Optional
signal: AbortSignalAn AbortController signal. Allows to communicate with a fetch request and abort it if desired.
Returns a list of assembly clash tests.
Optional
start: numberThe starting index in the test list. Used for paging.
Optional
limit: numberThe maximum number of tests that should be returned per request. Used for paging.
Optional
name: stringFilter the tests by part of the name. Case sensitive.
Optional
ids: string | string[]List of tests IDs to return.
Optional
sortByDesc: booleanAllows to specify the descending order of the result. By default tests are sorted by name in ascending order.
Optional
sortField: stringAllows to specify sort field.
Returns a model transformation.
Model original handle.
Returns a list of assembly references containing references from all the files from which the assembly was created.
References are images, fonts, or any other files to correct rendering of the assembly.
Optional
signal: AbortSignalAn AbortController signal, which can be used to abort waiting as desired.
Returns the viewpoint snapshot as base64-encoded Data URL.
Viewpoint GUID.
Returns a list of assembly viewpoints. For more information, see Open Cloud Assembly Viewpoints API.
Deprecated since 25.3
. Use downloadResource() instead.
Optional
onProgress: (progress: number, chunk: Uint8Array) => voidOptional
signal: AbortSignalSaves a new assembly viewpoint to the server. To create a viewpoint use Viewer.createViewpoint()
.
Viewpoint object. For more information, see Open Cloud Assembly Viewpoints API.
Returns the list of original handles for an objects in the file that match the specified patterns. Search patterns may be combined using query operators.
Search pattern or combination of the patterns, see example below.
Sets or removes a model transformation.
Model original handle.
Optional
transform: IModelTransformMatrixTransformation matrix. Specify undefined
to remove transformation.
Updates assembly data on the server.
Raw assembly data. For more information, see Open Cloud Assemblies API.
Waits for assembly to be created. Assembly is created when it changes to done
or failed
status.
Optional
params: {An object containing waiting parameters.
Optional
interval?: numberThe time, in milliseconds, the function should delay in between checking assembly status.
Optional
onCheckout?: (assembly: Assembly, ready: boolean) => booleanWaiting progress callback. Return true
to cancel waiting.
Optional
signal?: AbortSignalAn AbortController signal, which can be used to abort waiting as desired.
Optional
timeout?: numberThe time, in milliseconds that the function should wait assembly. If
assembly is not created during this time, the TimeoutError
exception will be thrown.
Provides properties and methods for obtaining information about an assembly on the Open Cloud Server and managing its data.