Skip to main content

Design Automation Service (DAS)

Certain advanced CAD tasks may not be feasible to implement in the browser with TypeScript. However, you can still accomplish many such tasks within your DynaMaker application by utilizing our Design Automation Service.

To get started with DAS, the first step is to enable its plugin in your application's dashboard. This can be done by following these simple steps:

  1. Navigate to the Plugins section within your app dashboard and locate the Design Automation Service plugin.
  2. Open the plugin's Settings, enable it, and click on the Save button to save your changes.
  3. Once the plugin has been enabled, you can access the PLUGINS.DAS namespace and begin utilizing its functionality within your application.

Generate STEP File

To create a single STEP file from one or multiple SKYCAD.ParametricModel, you can achieve this directly within the browser by utilizing the DynaMaker libraries. However, if you are working with static models that have source STEP files, you must use DAS instead to generate the file.

Below is a code snippet that demonstrates how to create a button that can be used to generate and download a STEP file from the assembly geometry:

const downloadSTEPButton = new SKYUI.Button('Download STEP', async () => {
const assembly = ACTIONS.getAssembly()
const geometry = assembly.generateGeometry()

const stepData = await PLUGINS.DAS.generateSTEPFile(geometry)

Studio.downloadFile('model.step', stepData)
})