Local Asset STEP Import

Local Asset STEP Import script details
Author
matas
Type
Typescript logo image
typescript
App Version
0.14.4
Visibility
public
Date Created
Jan 24, 2024, 9:01:47 PM
Last Edit Date
Feb 22, 2024, 8:14:17 AM

Script Details

The 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();