Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Create new µcad file

Before we design any geometry, we use the microcad command line tool to create a new µcad project:

microcad create lego_brick

This will create a file lego_brick.µcad.

Let's open this file in VSCode:

test

// microcad generated file

sketch YourSketch( /* your building plan */ ) {
    // your code
}

// create YourSketch
YourSketch();

We can export the file using the following command:

microcad export lego_brick

Nothing will be exported because the sketch does not contain any output geometry. Therefore, let's add some!