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 3D 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.
Reloads assembly data from the server.
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.OptionalselectionSetA: 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.
OptionalselectionSetB: 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.
Optionalparams: {An object containing test parameters.
Optionalclearance?: booleanThe type of the clashes that the test detects:
true - Clearance 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.Optionalinterval?: numberThe time, in milliseconds, the function should delay in between checking test status.
Optionalsignal?: AbortSignalAn AbortController signal, which can be used to abort waiting as desired.
Optionaltimeout?: numberThe time, in milliseconds that the function should wait test. If test is not
complete during this time, the TimeoutError exception will be thrown.
Optionaltolerance?: string | numberThe distance of separation between objects at which test begins detecting clashes.
OptionalwaitForDone?: 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.
OptionalonProgress: (progress: number, chunk: Uint8Array, requestId: number) => voidOptionalsignal: AbortSignalDownloads an assembly resource file. Resource files are files that contain model scene descriptions, or geometry data.
Resource file name.
OptionalonProgress: (progress: number, chunk: Uint8Array) => voidDownload progress callback.
Optionalsignal: 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.
Specify a non-empty requestId to append the ?requestId= search parameter to
the server request. If specified, server-side caching may not work.
Ranges of resource file contents to download. See HTTP range requests for more details.
OptionalonProgress: (progress: number, chunk: Uint8Array, requestId: number) => voidDownload progress callback.
Optionalsignal: AbortSignalAn AbortController signal. Allows to communicate with a fetch request and abort it if desired.
Returns the CDA tree for an assembly.
Returns information about the specified assembly clash test.
Test ID.
Returns a list of assembly clash tests.
Optionalstart: numberThe starting index in the test list. Used for paging.
Optionallimit: numberThe maximum number of tests that should be returned per request. Used for paging.
Optionalname: stringFilter the tests by part of the name. Case sensitive.
Optionalids: string | string[]List of tests IDs to return.
OptionalsortByDesc: booleanAllows to specify the descending order of the result. By default tests are sorted by name in ascending order.
OptionalsortField: stringAllows to specify sort field.
Returns list of assembly models.
Returns a model transformation.
Model original handle.
Returns the properties for objects in the assembly.
Optionalhandles: string | string[]Object original handle or handles array. Specify undefined to get properties for
all objects in the assembly.
If the group parameter is true, properties are returned grouped by category. By
default, or if group is set to false, properties are returned ungrouped.
To get grouped properties, the --properties_group command line argument must be specified for the
properties File Converter job when creating the assembly.
await client.createAssembly([file1.id, file2.id], "AssemblyName", {
jobParameters: { properties: "--properties_group" },
waitForDone: true,
});
Otherwise, the properties will be returned ungrouped, even if the group is true.
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.
Optionalsignal: AbortSignalAn AbortController signal, which can be used to abort waiting as desired.
Returns the viewpoint snapshot as base64-encoded Data URL.
Viewpoint GUID.
Returns the viewpoint snapshot data.
Viewpoint GUID.
Bitmap GUID.
Returns a list of assembly viewpoints. For more information, see Open Cloud Assembly Viewpoints API.
Deprecated since 25.3. Use downloadResource() instead.
OptionalonProgress: (progress: number, chunk: Uint8Array) => voidOptionalsignal: AbortSignalSaves assembly properties changes to the server. Call this method to update assembly data on the server after any property changes.
Saves 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 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.
Optionaltransform: 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.
Optionalparams: {An object containing waiting parameters.
Optionalinterval?: numberThe time, in milliseconds, the function should delay in between checking assembly status.
OptionalonCheckout?: (assembly: Assembly, ready: boolean) => booleanWaiting progress callback. Return true to cancel waiting.
Optionalsignal?: AbortSignalAn AbortController signal, which can be used to abort waiting as desired.
Optionaltimeout?: 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.