Skip to main content

How To Upload Files

In DynaMaker you can reuse your 2D and 3D files created in other softwares and visualize them right away together with your parametric models built in DynaMaker.

warning

In order to visualize your uploaded files, a Visualization block is needed.

3D Files​

The file formats that can be uploaded for further use in DynaMaker are .step, .glb and .stl for static models.

As an example, we will work with a valve:

Then it can be uploaded in two different ways, via the Code Editor or via Assets & Files:

a) Code Editor​

  • At the top of the Code Editor of your package, click Insert/Upload > Upload (.glb, .stl, .stp, .step).
  • Choose the file VALVE.step and finally click Create.

b) Assets & Files​

Ideally when having many files to upload at once, you can upload all your files first and then use them in the editors. For this:

  • In Assets & Files, click Upload File.
  • Keep Automatically create static models from GLB/STL files selected.
  • Choose the file VALVE.step and click Upload.
  • Then, step into the visualization block, via Insert/Upload, chose the existing model via the dropdown Select or search existing item.
note

Since the file was already uploaded beforehand in Assets & Files, the model shows up under the dropdown Select or search existing item. However you can try to upload the file again via Upload (.glb, .stl, .stp, .step) and see that it shows up automatically in the existing-items dropdown as shown in the video above.

tip

Once uploaded in Assets & Files, you can use the resulting static model in any block like:

const group = new SKYCAD.GeometryGroup()
const valveStaticModel = ASSETS.STATIC_MODELS.VALVE
group.addGeometry(valveStaticModel)

2D Files​

The file format that can be uploaded for further use in DynaMaker is .dxf for static sketches.

As an example, we will work with a cross section of a beam:

Then it can be uploaded in two different ways, via the Code Editor or via Assets & Files:

a) Code Editor (only for 3D Extrusion)​

  • At the top of the Code Editor of your package, click Extrude > Upload (.dxf) > Upload (.dxf)
  • Choose the file PROFILE 75X75.dxf and finally click Create.

b) Assets & Files​

Ideally when having many files to upload at once, you can upload all your files first and then use them in the editors. For this:

  • In Assets & Files, click Upload File
  • Keep Automatically create static sketches from DXF files selected.
  • Choose the file PROFILE 75X75.dxf and click Upload.
  • Then in your visualization block, add it to a layout with layout.addSketch(), that is added to the group:
tip

Once uploaded in Assets & Files, you can use the resulting static sketch in any block like:

const group = new SKYCAD.GeometryGroup()
const layout = new SKYCAD.Layout()
const profileStaticSketch = ASSETS.STATIC_SKETCHES.PROFILE_75X75
layout.addSketch(profileStaticSketch)
group.addGeometry(layout)

Images​

The file formats that can be uploaded for further use in DynaMaker are .png, .jpg, .svg for images.

As an example, we will work with the DynaMaker Logo:

Then it can be uploaded in two different ways, via Assets & Files:

a) Assets & Files​

Alternatively, you can upload all your files first and then step into the editors after. For this:

  • In Assets & Files, click Upload File
  • Keep Automatically create image assets from image source files selected.
  • Choose the file DYNAMAKER_LOGO.png and click Upload.
  • Then in your visualization block, add it to a layout with layout.addImage() that is added to the group:
tip

Once uploaded in Assets & Files, you can use the resulting images in any block like:

const group = new SKYCAD.GeometryGroup()
const layout = new SKYCAD.Layout()
const logoImage = ASSETS.STATIC_SKETCHES.DYNAMAKER_LOGO
layout.addImage(logoImage)
group.addGeometry(layout)