Loading a CAD Design
Below is an example of initializing the Aurora Client SDK and loading a design into a DOM element.
Try it for yourself by replacing <script_url>
with the URL of the Aurora Client SDK and <access_token>
with your access token.
// Importing Aurora ES Module and Loading a Design
const library = await import('<script_url>');
const sdk = await library.load({ token: '<access_token>' });
await sdk.cad.attach('#cad-element');
let design = await window.sdk.design.load('<design_id>');