Script: Local Asset STEP Import

Local Asset STEP Import picture
Type
Typescript logo indicatortypescript
Author
matas
Date Created
Jan 24, 2024, 11:01:47 PM
Last Edit Date
Feb 22, 2024, 10:14:17 AM

Project Information

This project contains demo scripts for TypeScript Monaco editor that are used as examples in the "Getting Started" section of the documentation.

View Full Project

Script Code

const start = async () => {

    const file = await bitbybit.asset.getLocalFile({
        fileName: "KukaRobot"
    }) as File;

    const shape = await bitbybit.occt.io.loadSTEPorIGES({
        assetFile: file,
        adjustZtoY: true,
    });

    bitbybit.draw.drawAnyAsync({
        entity: shape
    })
}

start();