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 3 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.

  1. Once the plugin has been enabled, you can access the PLUGINS.DAS namespace and begin utilizing its functionality within your application.

Generate STEP File‚Äč

Depending on what you have in your geometry, you can generate STEP files in one way or another. Here we show a code snippet that demonstrates how to create a button that can be used to generate and download a STEP file in each way from:

  • geometry with 2 or more models that include static models with source STEP files (geometries made from SKYCAD.ParametricModel can be included or not), DAS must be used:

    const downloadSTEPButton = new SKYUI.Button('Download STEP', async () => {
    const assemblyComponent = ACTIONS.getAssemblyComponent()
    const geometry = assemblyComponent.generateGeometry()
    const stepData = await PLUGINS.DAS.generateSTEPFile(geometry)
    Studio.downloadFile('assembly.step', stepData)

    Notice that there must be always 2 models present and one of them must be a static model to be able to use DAS.

  • geometry with 1 static model with no geometries made of SKYCAD.ParametricModel, you can retrieve it directly from Files.

    const downloadSTEPButton = new SKYUI.Button('Download Door handle STEP', async () => {
    const doorHandleStepData = await fetchFileText(ASSETS.URLS.DOOR_HANDLE_STEP)
    Studio.downloadFile('model.step', doorHandleStepData)

    async function fetchFileText(url: string) {
    const response = await fetch(url)
    return response.text()

    Notice that the original STEP file will be used, meaning that it will keep its origin and the new possible position/rotation given to the static model will be lost.

  • geometry with no static models but 1 or more geometries made exclusively of SKYCAD.ParametricModel, you need to contact so we can help you with your specific case.