Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>CAD/CAM ToolsNew to Visual Studio Code? Get it now.
CAD/CAM Tools

CAD/CAM Tools

MaestroFusion360

|
1 install
| (0) | Free
Run MiniCAD and Easy G-Code Plot workflows from Visual Studio Code.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

CAD/CAM Tools for VS Code

CAD/CAM Tools is a Visual Studio Code extension for working with drawings, 3D models, CAM projects and NC programs. It connects VS Code to MiniCAD and Easy G-Code Plot (EGP), allowing engineering workflows to be run directly from the workspace.

The extension uses the local MiniCAD and EGP executables. Geometry calculations, toolpath generation and G-code analysis are performed by those applications. Commands work offline.

Getting started

  1. Open a trusted workspace in VS Code.
  2. Run CAD/CAM: Configure MiniCAD and EGP to select a CLI or desktop executable, or enter its path in Settings under cadcam. The CLI executables can also be resolved from PATH.
  3. Open the Command Palette (Ctrl+Shift+P) and type CAD/CAM:.
  4. Select a command and follow the prompts to choose input files, parameters and output paths.

File-based commands are also available from the Explorer context menu. Save changes to input files before running a command.

The command palette, settings, dialogs, and built-in presets are available in English and Russian. VS Code selects the language from its display settings.

Commands

All commands use the CAD/CAM: prefix.

CAD and 3D

Command Description
Inspect Drawing Inspect drawing geometry and properties.
Create Drawing Create a drawing from a JSON CAD recipe.
Apply CAD Recipe Apply a recipe to an existing drawing or project.
Generate Dimensions Generate coordinate dimensions, a dimension table, or both.
Render Drawing Export a drawing or selected sheet as SVG.
Create 3D Model Create a model from a JSON scene recipe.
Inspect 3D Model Display scene or body properties in a JSON report.
Export 3D Model Export a scene or selected body as STEP or STL.
Transfer 3D to CAM Transfer a scene body to a CAM project.

CAM

Command Description
Generate CAM Operations Generate machining operations from a CAM recipe.
Regenerate Toolpath Recalculate saved machining operations.
Calculate Stock Removal Generate a stock-removal report.
Postprocess Generate an NC program using the saved Setup or a selected postprocessor.
Run MiniCAD Command Run a MiniCAD command with custom arguments.

G-code

Command Description
Analyze G-Code Generate a JSON analysis report.
Export NC Export an NC program in expanded or full mode.
Export DXF Export toolpath geometry as DXF.
Batch Analysis Analyze NC programs in a directory.
Batch Export Export NC programs or DXF toolpaths in a directory.
Simulate NC Launch simulation in EGP, with optional stock and tooling data.
Run EGP Command Run an EGP command with custom arguments.

Workflows and results

Command Description
Run Preset Run a sequence of engineering operations.
Open Result Open a file generated during the current extension session.
Configure MiniCAD and EGP Select the CLI or desktop executable for either application.

Workflows

Use CAD/CAM: Run Preset to select a built-in workflow.

Preset Result
CAD recipe → DXF → SVG DXF drawing and SVG preview from a CAD recipe.
3D recipe → model → STEP STEP model and geometry report from a 3D scene recipe.
3D scene → CAM project CNC project with reference geometry from a selected scene body.
Drawing → CAM → NC CAM project and FANUC NC program from a drawing and CAM recipe.
NC → EGP analysis JSON report for an NC program.
MiniCAD CAM → NC and stock → EGP simulation NC program and stock-removal simulation from saved CAM operations.

For example, use CAD recipe → DXF → SVG to create a drawing, then use Drawing → CAM → NC with the generated DXF and a CAM recipe. Open the resulting CNC project with MiniCAD CAM → NC and stock → EGP simulation to inspect the machining process in EGP.

Custom workflows can be defined in .cadcam/presets.json. Workflow steps run in sequence and stop on the first error. Completed results remain available.

Results

The CAD/CAM output channel shows command output, diagnostics, exit codes and result paths. Running commands can be cancelled using the progress notification.

The save dialog starts in the working directory. For presets with several outputs, enter one output folder and the preset writes its files there. Use cadcam.outputDirectory to set another default. Choose a new filename or destination when a result already exists. EGP batch export requires a new destination outside the input folder.

Use CAD/CAM: Open Result to open a generated file. NC, JSON, SVG, CSV and HTML files open in the VS Code editor. DXF, DWG and CNC files open in MiniCAD if configured, or through the system file association. STEP and STL files use the system file association. Machining simulations open in EGP.

Settings

Search for cadcam in VS Code Settings.

Setting Description
cadcam.minicad.cliPath MiniCAD CLI path. The default CLI on PATH is minicad_cli.
cadcam.egp.cliPath EGP CLI path. The default CLI on PATH is easy_gcode_plot_cli.
cadcam.minicad.guiPath MiniCAD desktop executable for opening drawings and CNC projects.
cadcam.egp.guiPath EGP desktop executable for simulations with an explicitly selected machine language.
cadcam.workingDirectory Working directory. Defaults to the workspace folder.
cadcam.outputDirectory Default results directory. An empty setting uses the working directory.
cadcam.presetsPath Custom preset file. Defaults to .cadcam/presets.json.

Paths in settings are relative to the workspace folder.

Running commands from an agent or extension

In VS Code Chat Agent mode, use #cadcamListCommands to get command IDs and their input fields. Use #cadcamRunCommand to run a command or preset with those fields. Both tools use the configured applications and return JSON with status, result paths, and diagnostics.

From a VS Code extension, use the cadcam.* command ID and pass an object to vscode.commands.executeCommand. Calls with an object run without dialogs. For example, vscode.commands.executeCommand('cadcam.analyzeGCode', { inputs: { source: 'part.nc' }, outputs: { result: 'analysis.json' } }) analyzes part.nc in the workspace and writes analysis.json there.

Inputs and explicit outputs paths are relative to workspaceFolder. cwd changes the working directory for a call. outputDirectory changes the folder for suggested filenames and is relative to that working directory. A runPreset request takes a preset ID. Preset templates can use ${outputDirectory} for the selected results folder. ${runDirectory} is an alias for existing presets.

Requirements and limitations

  • VS Code 1.100 or later on Windows or Linux.
  • Local MiniCAD and EGP executables for their respective commands.
  • A trusted VS Code workspace.
  • Automatic stock and tooling exchange between MiniCAD and EGP supports FANUC milling projects with saved Setup, stock bounds, tools and machining operations in the WCS.
  • Existing milling and turning simulation manifests can be used with Simulate NC.
  • A successful simulation launch does not indicate that playback has completed. Check the simulation in EGP. Simulation does not replace verification on the actual CNC machine.

License

MIT License - See LICENSE for details

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft