Skip to main content

Converting Onshape & STEP Files to glTF

AdvantageScope's 3D view accepts custom models for fields and robots, which can be installed using the process described here. All models must use the binary glTF file format (.glb), chosen for its small file sizes and fast loading performance.

info

glTF files come in two formats: JSON (.gltf) and binary (.glb). AdvantageScope requires the binary .glb format, which bundles all model data into a single file.

Converting Onshape to STEP​

While Onshape includes an export option for glTF, this often produces very large files that are difficult to manage. Instead, it is recommended to export from Onshape to STEP, then follow the instructions in the next section to convert to binary glTF (.glb).

  1. After opening the Onshape file, right-click on the main assembly and choose "Export...":
Selecting the "Export..." option
  1. In the options pop-up, ensure that the export format is "STEP" and click "Export":
Export options pop-up
  1. Wait for the file to convert and download. This may take a few minutes.

Converting STEP to glTF (.glb)​

  1. Download CAD Assistant. This free application is able to convert between many 3D formats, including STEP and glTF (.glb).

  2. Open CAD Assistant and select the STEP file to convert:

Opening STEP file in CAD Assistant
  1. Wait for the STEP file to import. This may take a few minutes.

  2. Click the "Save" icon:

Clicking the "Save" icon
  1. Choose a save location, then use the drop-down to switch the export format to "glb" (binary glTF):
Switching the export format
  1. Click the gear icon, then enable "Merge faces within the same part":
Enabling "Merge faces within the same part"
  1. Click the "Save" icon and wait for the export to finish:
Clicking the "Save" icon

Once exported, rename the .glb file (such as model.glb) and add it to your custom asset folder as described on the Custom Assets page.