3D CAD Converter CLI and MCP reference
cadconvert is the command line of 3D CAD Converter, installed with the desktop app. cadconvert serve runs its MCP server for AI agents. This page lists every command, option, exit code and MCP tool.
cadconvert <command> [arguments] [options]
cadconvert convert part.step -o part.stl --quality fine
Generated from cadconvert catalog, version 1.2.1. Every command also has --help. Older spellings of some commands and options still work, so existing scripts keep running, but this page and --help leave them out. The same reference is on GitHub: cli.md and mcp-server.md.
Commands
| Command | What it does |
|---|---|
cadconvert bake-ao <file> --out <out> | Bake per-vertex ambient occlusion into a static copy of the model (.ao.glb: geometry, base colour, metallic and roughness factors; no skins, animations or other texture maps) and a ground contact-shadow decal (.shadow.png). |
cadconvert bake-env <file> --out <out> | Prefilter an HDR/EXR sky panorama into a Babylon .env v2 IBL environment. |
cadconvert bake-impostor <file> --out <out> | Render N orthographic azimuth views into a far-card impostor atlas, JSON descriptor and optional GLB. |
cadconvert bake-pbr <file> --out <out> | Synthesize seamless PBR maps (albedo, normal, ORM) and optional standalone KTX2 from one texture. |
cadconvert batch <input> | Batch convert a folder of 3D files. |
cadconvert catalog | Print every CLI command and MCP tool as JSON (for AI agents, docs and the website). |
cadconvert convert <input> | Convert a single 3D file. |
cadconvert formats | List all supported 3D formats. |
cadconvert info <file> | Display information about a 3D file. |
cadconvert register <email> <key> | Register your license. |
cadconvert render <file> --out <out> | Draw a lit PNG thumbnail of a 3D file from one or more views. |
cadconvert serve | Start MCP server for AI agent integration. |
cadconvert status | Show the license and trial state: registered or trial, free conversions left (the trial has no end date), and what exports become after them (Draft quality with a trial note). |
cadconvert watch <input> | Watch a folder and auto-convert new 3D files. |
Output options
These options work the same way in the four ContentaSoft command lines. catalog and serve take none of them: catalog always prints JSON and serve keeps stdout for the MCP protocol.
| Option | Description |
|---|---|
--json | Print one JSON object on stdout (success, exitCode, error, warnings, errors, outputs + the command's fields); nothing else goes to stdout. |
--plain | Plain text: no colours, no escape codes, ASCII tables. Automatic when stdout is a pipe or a file, or when NO_COLOR is set. |
--quiet | Print errors only. |
--verbose | Verbose output: details and, on an error, the stack trace. |
--progress | With --json: before the result object, one line per finished item, {"type":"progress","file":NAME,"completed":N,"total":T}. |
Exit codes
The same table in the four ContentaSoft command lines. --help ends with it and catalog lists it.
| Code | Name | Meaning |
|---|---|---|
| 0 | ok | OK: everything asked for was done. |
| 1 | unexpected_error | Unexpected error (a bug or a broken install); see the log. |
| 2 | invalid_arguments | Invalid arguments: unknown option, missing or malformed value; nothing was done. |
| 3 | input_not_found | Input not found or unreadable; nothing was done. |
| 4 | partial_failure | Partial failure: some items succeeded, some failed. |
| 5 | all_failed | All failed: no item succeeded. |
| 6 | license_refused | License or trial refused the run. |
| 130 | cancelled | Cancelled (Ctrl+C). |
JSON output
With --json a command prints one JSON object on stdout and nothing else; logs go to stderr. Every object has these keys, beside the fields of the command itself:
| Key | Meaning |
|---|---|
success | true when the run did everything it was asked to do |
exitCode | the process exit code (see Exit codes) |
error | one sentence when the run failed, otherwise null |
warnings | notes about the run that did not stop it |
errors | one entry per item that failed (a batch keeps going) |
outputs | the files the run wrote |
Trial keys, present only when they apply:
| Key | Meaning |
|---|---|
trialWatermarked | the output carries the trial watermark |
trialExport | the output is a trial export |
trialNotice | one sentence about the trial, for the user |
freeFilesRemaining | free full-quality files left on this computer |
buyUrl | where to buy a licence |
With --json --progress a long command first prints one progress line per finished item (NDJSON), then the result object last. A script that wants only the result skips the lines that start with {"type":"progress". Progress keys:
| Key | Meaning |
|---|---|
type | always "progress" |
file | the file that finished |
completed | items finished so far |
total | items in the run |
Command reference
cadconvert bake-ao
Bake per-vertex ambient occlusion into a static copy of the model (.ao.glb: geometry, base colour, metallic and roughness factors; no skins, animations or other texture maps) and a ground contact-shadow decal (.shadow.png).
cadconvert bake-ao <file> --out <out> [options]
| Argument | Description |
|---|---|
<file> | 3D model to bake (.glb, .gltf, .obj, .fbx, .step, .stl, ...) |
| Option | Type | Description |
|---|---|---|
--out | string, required | Output prefix or directory (writes <prefix>.ao.glb, <prefix>.shadow.png, <prefix>.shadow.json). |
--samples | integer | Hemisphere occlusion ray count (8 to 256). |
--max-distance | number | Max ray occlusion distance in world units (0 = auto 35% of model diagonal). |
--strength | number | Ambient occlusion contrast exponent (0.1 to 3). |
--no-vertex-ao | boolean | Skip baking per-vertex AO into .ao.glb (emit only the contact-shadow decal). |
--no-shadow | boolean | Skip baking the ground contact-shadow decal (emit only .ao.glb). |
--shadow-size | integer | Square contact-shadow decal size in pixels (64 to 1024). |
--shadow-padding | number | Extra shadow quad margin around model XZ footprint (0.0 to 1.5). |
Output options: --json, --plain, --quiet, --verbose, --progress.
cadconvert bake-env
Prefilter an HDR/EXR sky panorama into a Babylon .env v2 IBL environment.
cadconvert bake-env <file> --out <out> [options]
| Argument | Description |
|---|---|
<file> | Equirectangular HDR sky panorama (.hdr or .exr). |
| Option | Type | Description |
|---|---|---|
--out | string, required | Output .env file path (for example sky.env). |
--size | integer | Cubemap face size in pixels (power of two, 64 to 512). |
--samples | integer | GGX importance sample count per roughness mip texel (8 to 512). |
Output options: --json, --plain, --quiet, --verbose, --progress.
cadconvert bake-impostor
Render N orthographic azimuth views into a far-card impostor atlas, JSON descriptor and optional GLB.
cadconvert bake-impostor <file> --out <out> [options]
| Argument | Description |
|---|---|
<file> | 3D model file to bake into an impostor atlas (any format formats --input lists). |
| Option | Type | Description |
|---|---|---|
--out | string, required | Output directory or file prefix (writes <prefix>.impostor.png/webp, <prefix>.impostor.json, and optional .impostor.glb). |
--angles | integer | Evenly spaced azimuth angles (4 to 16). |
--pitch | number | Camera elevation angle in degrees (-45 to 45). |
--tile-size | integer | Square tile resolution in pixels (64 to 1024). |
--format | string | Atlas image format: png (default) or webp. |
--emit-glb | boolean | Also write a ready-to-instance crossed-card <prefix>.impostor.glb billboard mesh (needs an even --angles). |
Output options: --json, --plain, --quiet, --verbose, --progress.
cadconvert bake-pbr
Synthesize seamless PBR maps (albedo, normal, ORM) and optional standalone KTX2 from one texture.
cadconvert bake-pbr <file> --out <out> [options]
| Argument | Description |
|---|---|
<file> | Source albedo/diffuse texture (.png, .jpg, .webp, .ktx2). |
| Option | Type | Description |
|---|---|---|
--out | string, required | Output prefix or directory (writes <prefix>.albedo.png, .normal.png, .orm.png, .pbr.json and optional .ktx2). |
--seamless | boolean | Make the texture seamlessly tileable with toroidal cross-blending before generating maps. |
--normal-strength | number | Normal map slope strength (0.1 to 10). |
--invert-normal-y | boolean | Flip normal green channel for DirectX (-Y) instead of OpenGL/glTF (+Y). |
--roughness-min | number | Minimum roughness value (0.0 to 1.0). |
--roughness-max | number | Maximum roughness value (roughness-min to 1.0). |
--metallic | number | Constant metallic channel written into ORM blue (0.0 to 1.0). |
--ao-strength | number | Cavity ambient occlusion strength (0 to 2). |
--invert-roughness | boolean | Invert luminance-to-roughness mapping (bright areas rougher instead of smoother). |
--ktx2 | boolean | Also emit standalone KTX2 textures (ETC1S for albedo, UASTC for normal and ORM) via gltfpack. |
--ktx2-quality | integer | KTX2 encoding quality (1 to 10). |
Output options: --json, --plain, --quiet, --verbose, --progress.
cadconvert batch
Batch convert a folder of 3D files.
cadconvert batch <input> [options]
| Argument | Description |
|---|---|
<input> | Input folder. |
| Option | Type | Description |
|---|---|---|
--format | string | Target format. |
--report | string | Write a CSV report of the batch to this file: one row per input with input and output file, formats, triangles before and after, output size, size budget, within budget yes/no, duration and result or error. |
--output | string | Output folder. Default: <input>_converted next to the input folder. |
--include | string[] | Only files matching this pattern, e.g. *.step or parts\*.stp; repeat the option or separate patterns with ';' or ','. A pattern with * or ? is matched against the file name and the path below the folder; other text is part of that path. |
--exclude | string[] | Leave out files matching this pattern, e.g. *_old.step or archive; repeat the option or separate patterns with ';' or ','. Same matching as --include. |
--recursive | boolean | Include subfolders (the default; -r false converts the folder itself only). |
--workers | integer | Parallel workers (default: the number of processors). |
--quality | string | Mesh quality for STEP/IGES/BREP sources: a preset (draft, standard, fine, ultrafine) or a linear deflection in mm (0.1 = standard; lower = finer). Default: standard. |
--angular | string | Angular deflection in radians (0.5 = about 29 degrees; lower = smoother curves). Default: the preset's value (0.5 for standard and for a numeric --quality). |
--repair | boolean | Repair STEP/IGES/BREP surfaces before meshing: fixes broken edges and faces and closes small gaps. No effect on mesh sources (STL, OBJ ...) |
--units | string | Target units (mm, cm, in, m, ft). |
--binary | boolean | Binary output for STL/PLY. |
--up-axis | string | Rotate the model so this axis points up: y (game engines, glTF, three.js) or z (CAD, 3D printing). Default: unchanged. A STEP/IGES/BREP re-export cannot be rotated and says so. |
--decimate | string | Reduce mesh sources (STL, OBJ, PLY, glTF, FBX, 3MF ...) to this share of their triangles: 0.25 or 25% keeps about a quarter. STEP/IGES/BREP are tessellated, not reduced - use --quality. |
--max-size | string | glTF/GLB only: the largest file to write, in MB (5, 0.5 or 15MB; 1 MB = 1,000,000 bytes). A file over it is written again with fewer triangles until it fits, down to 5% of its triangles. One that still does not fit is written at the smallest size reached, reported as over budget, and the exit code is 4 (partial). On a glTF/GLB source the textures come first: with --textures their size limit is lowered; with textures kept as they are, they are converted to WebP (then scaled down) before any triangle goes. |
--compress | boolean | glTF/GLB only: compress the meshes with meshopt (gltfpack); the file is often 5 to 10 times smaller. The viewer must support EXT_meshopt_compression (three.js, Babylon.js, Blender 3.0+, Unity glTFast). |
--assembly | string | STEP assemblies: preserve (default) writes one file per top-level body of a STEP that has several; merge writes every body into one file. A one-root assembly is one file either way. For glTF/GLB output, merge also joins the meshes into one (node names are not kept), but only together with a web option (--textures, --lods, --quantize, --compress-fallback, --keep-extras); a plain conversion or --compress alone keeps the nodes. |
--textures | string | glTF/GLB only: keep (default), ktx2 or webp. ktx2 converts every texture to KTX2 (Basis Universal), the one format that stays compressed in GPU memory; the viewer needs a KTX2 transcoder (three.js KTX2Loader, Babylon.js). webp makes the download smaller only. |
--keep-textures | string | glTF/GLB only: all (default, keep all texture maps), base-color (keep baseColorTexture only and strip normal, metallic-roughness, occlusion, emissive and KHR material texture maps) or none (strip all textures). |
--texture-mode | string | With --textures ktx2: auto (default: ETC1S for colour textures, UASTC for normal and data maps), etc1s (smallest) or uastc (best quality, larger). |
--base-color | string | glTF/GLB output from FBX, OBJ, DAE and other mesh sources: a PNG or JPEG put on every material that has texture coordinates, with a white base colour (an asset pack's shared colour atlas, which its FBX files do not link). |
--texture-dir | string | glTF/GLB output from FBX, OBJ, DAE and other mesh sources: a folder searched by file name (and for a PNG or JPEG of the same name) for a texture the source links but that is not where the link says. A link found nowhere is removed with a note. |
--texture-quality | string | Texture encoding quality, 1 (smallest) to 10 (best). Default: 8. |
--texture-max-size | string | Largest texture side in pixels when textures are converted, such as 2048. Default: no limit; 0 or none removes a limit a preset sets. |
--texture-pow2 | boolean | Resize converted textures to the nearest power of two (WebGL 1). With --texture-max-size the result can be one step above the limit. |
--lods | string | glTF/GLB only: also write LOD files, one per ratio: 0.5,0.25 (or 0.5 0.25, or 50%,25%) writes name.lod1 and name.lod2. Each ratio is a target share of the main file's triangles; a mesh that cannot be simplified further without visible damage keeps more: the result says how many triangles each LOD file kept (lods in --json). With --max-size the LOD files are made from the already reduced main file. LOD files are written without textures (skins and animations stay). Ratios must fall; at most four; none removes the LOD files a preset sets. |
--instancing | boolean | glTF/GLB only: write a mesh that is placed several times once (EXT_mesh_gpu_instancing). Node names are not kept. |
--quantize | string | With --compress or --compress-fallback: standard (default), fine (more precise positions and normals, slightly larger) or off. A quantized mesh moves into a new unnamed child of its node, which carries the scale that undoes the quantization: node names stay, but code that expects the mesh directly on the named node must look one level down. off keeps the structure. |
--simplify-mode | string | glTF/GLB --decimate: quality (default: keeps texture coordinates and stops at the error limit, so it may keep more triangles than asked; the result says how many) or aggressive (forces the target triangle ratio). --max-size always forces its size. |
--max-error | string | glTF/GLB --decimate in quality mode, and LOD files: maximum normalized simplification error (0.001 to 1.0, gltfpack -se). Default: 0.01. |
--lock-border | boolean | glTF/GLB --decimate: keep the open borders of the mesh in place while simplifying (default: true; pass --lock-border false to let them move). LOD files always keep them. |
--compress-fallback | boolean | glTF/GLB only: compress with a fallback for viewers without meshopt support (a larger file). Implies --compress. |
--keep-extras | boolean | glTF/GLB only: keep the source's extras data. Extras are dropped only when the file is compressed, textures are converted, or meshes are instanced or merged; a plain conversion keeps them. |
--strict | boolean | Fail a file when compression, texture conversion or a LOD file could not be applied, instead of writing it with a warning (exit code 5; 4 when other files of a batch succeeded). For build scripts. |
--profile | string | Start from a saved conversion profile (JSON, as the app saves it in %APPDATA%\CadConverter\profiles). Options given on the command line override the profile's values. |
--preset | string | Start from a built-in preset: web-game (GLB, meshopt compression, KTX2 textures up to 2048 px), 3d-printing, visualization, engineering or mesh-review. Options given on the command line override the preset's values; --profile wins when both are given. |
--overwrite | boolean | Replace an output file that already exists. |
--skip-existing | boolean | Leave an input alone when its output file already exists, so a re-run only converts what is missing (a skipped file is not converted and costs no free conversion). |
Output options: --json, --plain, --quiet, --verbose, --progress.
cadconvert catalog
Print every CLI command and MCP tool as JSON (for AI agents, docs and the website).
cadconvert catalog
cadconvert convert
Convert a single 3D file.
cadconvert convert <input> [options]
| Argument | Description |
|---|---|
<input> | Input 3D file. |
| Option | Type | Description |
|---|---|---|
--format | string | Target format (stl, obj, step, iges, etc.) |
--output | string | Output file or folder. Default: next to the input, with the -f format's extension. |
--quality | string | Mesh quality for STEP/IGES/BREP sources: a preset (draft, standard, fine, ultrafine) or a linear deflection in mm (0.1 = standard; lower = finer). Default: standard. |
--angular | string | Angular deflection in radians (0.5 = about 29 degrees; lower = smoother curves). Default: the preset's value (0.5 for standard and for a numeric --quality). |
--repair | boolean | Repair STEP/IGES/BREP surfaces before meshing: fixes broken edges and faces and closes small gaps. No effect on mesh sources (STL, OBJ ...) |
--units | string | Target units (mm, cm, in, m, ft). |
--binary | boolean | Binary output for STL/PLY. |
--up-axis | string | Rotate the model so this axis points up: y (game engines, glTF, three.js) or z (CAD, 3D printing). Default: unchanged. A STEP/IGES/BREP re-export cannot be rotated and says so. |
--decimate | string | Reduce mesh sources (STL, OBJ, PLY, glTF, FBX, 3MF ...) to this share of their triangles: 0.25 or 25% keeps about a quarter. STEP/IGES/BREP are tessellated, not reduced - use --quality. |
--max-size | string | glTF/GLB only: the largest file to write, in MB (5, 0.5 or 15MB; 1 MB = 1,000,000 bytes). A file over it is written again with fewer triangles until it fits, down to 5% of its triangles. One that still does not fit is written at the smallest size reached, reported as over budget, and the exit code is 4 (partial). On a glTF/GLB source the textures come first: with --textures their size limit is lowered; with textures kept as they are, they are converted to WebP (then scaled down) before any triangle goes. |
--compress | boolean | glTF/GLB only: compress the meshes with meshopt (gltfpack); the file is often 5 to 10 times smaller. The viewer must support EXT_meshopt_compression (three.js, Babylon.js, Blender 3.0+, Unity glTFast). |
--assembly | string | STEP assemblies: preserve (default) writes one file per top-level body of a STEP that has several; merge writes every body into one file. A one-root assembly is one file either way. For glTF/GLB output, merge also joins the meshes into one (node names are not kept), but only together with a web option (--textures, --lods, --quantize, --compress-fallback, --keep-extras); a plain conversion or --compress alone keeps the nodes. |
--textures | string | glTF/GLB only: keep (default), ktx2 or webp. ktx2 converts every texture to KTX2 (Basis Universal), the one format that stays compressed in GPU memory; the viewer needs a KTX2 transcoder (three.js KTX2Loader, Babylon.js). webp makes the download smaller only. |
--keep-textures | string | glTF/GLB only: all (default, keep all texture maps), base-color (keep baseColorTexture only and strip normal, metallic-roughness, occlusion, emissive and KHR material texture maps) or none (strip all textures). |
--texture-mode | string | With --textures ktx2: auto (default: ETC1S for colour textures, UASTC for normal and data maps), etc1s (smallest) or uastc (best quality, larger). |
--base-color | string | glTF/GLB output from FBX, OBJ, DAE and other mesh sources: a PNG or JPEG put on every material that has texture coordinates, with a white base colour (an asset pack's shared colour atlas, which its FBX files do not link). |
--texture-dir | string | glTF/GLB output from FBX, OBJ, DAE and other mesh sources: a folder searched by file name (and for a PNG or JPEG of the same name) for a texture the source links but that is not where the link says. A link found nowhere is removed with a note. |
--texture-quality | string | Texture encoding quality, 1 (smallest) to 10 (best). Default: 8. |
--texture-max-size | string | Largest texture side in pixels when textures are converted, such as 2048. Default: no limit; 0 or none removes a limit a preset sets. |
--texture-pow2 | boolean | Resize converted textures to the nearest power of two (WebGL 1). With --texture-max-size the result can be one step above the limit. |
--lods | string | glTF/GLB only: also write LOD files, one per ratio: 0.5,0.25 (or 0.5 0.25, or 50%,25%) writes name.lod1 and name.lod2. Each ratio is a target share of the main file's triangles; a mesh that cannot be simplified further without visible damage keeps more: the result says how many triangles each LOD file kept (lods in --json). With --max-size the LOD files are made from the already reduced main file. LOD files are written without textures (skins and animations stay). Ratios must fall; at most four; none removes the LOD files a preset sets. |
--instancing | boolean | glTF/GLB only: write a mesh that is placed several times once (EXT_mesh_gpu_instancing). Node names are not kept. |
--quantize | string | With --compress or --compress-fallback: standard (default), fine (more precise positions and normals, slightly larger) or off. A quantized mesh moves into a new unnamed child of its node, which carries the scale that undoes the quantization: node names stay, but code that expects the mesh directly on the named node must look one level down. off keeps the structure. |
--simplify-mode | string | glTF/GLB --decimate: quality (default: keeps texture coordinates and stops at the error limit, so it may keep more triangles than asked; the result says how many) or aggressive (forces the target triangle ratio). --max-size always forces its size. |
--max-error | string | glTF/GLB --decimate in quality mode, and LOD files: maximum normalized simplification error (0.001 to 1.0, gltfpack -se). Default: 0.01. |
--lock-border | boolean | glTF/GLB --decimate: keep the open borders of the mesh in place while simplifying (default: true; pass --lock-border false to let them move). LOD files always keep them. |
--compress-fallback | boolean | glTF/GLB only: compress with a fallback for viewers without meshopt support (a larger file). Implies --compress. |
--keep-extras | boolean | glTF/GLB only: keep the source's extras data. Extras are dropped only when the file is compressed, textures are converted, or meshes are instanced or merged; a plain conversion keeps them. |
--strict | boolean | Fail a file when compression, texture conversion or a LOD file could not be applied, instead of writing it with a warning (exit code 5; 4 when other files of a batch succeeded). For build scripts. |
--profile | string | Start from a saved conversion profile (JSON, as the app saves it in %APPDATA%\CadConverter\profiles). Options given on the command line override the profile's values. |
--preset | string | Start from a built-in preset: web-game (GLB, meshopt compression, KTX2 textures up to 2048 px), 3d-printing, visualization, engineering or mesh-review. Options given on the command line override the preset's values; --profile wins when both are given. |
--overwrite | boolean | Replace an output file that already exists. |
--skip-existing | boolean | Leave an input alone when its output file already exists, so a re-run only converts what is missing (a skipped file is not converted and costs no free conversion). |
Output options: --json, --plain, --quiet, --verbose, --progress.
cadconvert formats
List all supported 3D formats.
cadconvert formats [options]
| Option | Type | Description |
|---|---|---|
--input | boolean | Only the formats it reads (import). |
--output | boolean | Only the formats it writes (export). |
Output options: --json, --plain, --quiet, --verbose, --progress.
cadconvert info
Display information about a 3D file.
cadconvert info <file> [options]
| Argument | Description |
|---|---|
<file> | 3D file to inspect. |
| Option | Type | Description |
|---|---|---|
--bom | boolean | STEP only: also list the parts (name, quantity, solids, faces, size in mm), one row per unique part. |
--bom-csv | string | STEP only: write the part list as CSV to this file (the same columns as the app's BOM export). |
--extract-textures | string | glTF/GLB only: write every texture image into this folder (PNG and JPEG as they are, WebP and KTX2 decoded to PNG); each texture in the JSON names its file. |
--check-colours | boolean | STEP over 10 MB: also count the colours a conversion carries (a second OpenCascade pass, about as long as the info itself). Smaller STEP files are always checked; without it a larger one reports the colours as not checked (hasMaterials and materialCount left out, coloursChecked false). IGES and BREP carry no colours. |
Output options: --json, --plain, --quiet, --verbose, --progress.
cadconvert register
Register your license.
cadconvert register <email> <key>
| Argument | Description |
|---|---|
<email> | The email address the license was bought with. |
<key> | License key. |
Output options: --json, --plain, --quiet, --verbose, --progress.
cadconvert render
Draw a lit PNG thumbnail of a 3D file from one or more views.
cadconvert render <file> --out <out> [options]
| Argument | Description |
|---|---|
<file> | 3D file to draw (any format formats --input lists). |
| Option | Type | Description |
|---|---|---|
--out | string, required | PNG to write; with several views each gets -<view> before .png; an existing folder gets <model>-<view>.png. |
--views | string | Comma-separated views: front, side, top, iso, back, bottom (Y up, the model's front facing +Z). |
--size | integer | Width and height of each PNG in pixels (64 to 4096). |
Output options: --json, --plain, --quiet, --verbose, --progress.
cadconvert serve
Start MCP server for AI agent integration.
cadconvert serve
cadconvert status
Show the license and trial state: registered or trial, free conversions left (the trial has no end date), and what exports become after them (Draft quality with a trial note).
cadconvert status
Output options: --json, --plain, --quiet, --verbose, --progress.
cadconvert watch
Watch a folder and auto-convert new 3D files.
cadconvert watch <input> [options]
| Argument | Description |
|---|---|
<input> | Folder to watch. |
| Option | Type | Description |
|---|---|---|
--format | string | Target format. |
--report | string | Keep a CSV report of this watch session in this file, rewritten after every file: one row per input with input and output file, formats, triangles before and after, output size, size budget, within budget yes/no, duration and result or error. |
--output | string | Output folder. Default: <input>_converted next to the watched folder. |
--include | string[] | Only files matching this pattern, e.g. *.step or parts\*.stp; repeat the option or separate patterns with ';' or ','. A pattern with * or ? is matched against the file name and the path below the folder; other text is part of that path. |
--exclude | string[] | Leave out files matching this pattern, e.g. *_old.step or archive; repeat the option or separate patterns with ';' or ','. Same matching as --include. |
--recursive | boolean | Include subfolders (the default; -r false converts the folder itself only). |
--workers | integer | Parallel workers (default: the number of processors). |
--quality | string | Mesh quality for STEP/IGES/BREP sources: a preset (draft, standard, fine, ultrafine) or a linear deflection in mm (0.1 = standard; lower = finer). Default: standard. |
--angular | string | Angular deflection in radians (0.5 = about 29 degrees; lower = smoother curves). Default: the preset's value (0.5 for standard and for a numeric --quality). |
--repair | boolean | Repair STEP/IGES/BREP surfaces before meshing: fixes broken edges and faces and closes small gaps. No effect on mesh sources (STL, OBJ ...) |
--units | string | Target units (mm, cm, in, m, ft). |
--binary | boolean | Binary output for STL/PLY. |
--up-axis | string | Rotate the model so this axis points up: y (game engines, glTF, three.js) or z (CAD, 3D printing). Default: unchanged. A STEP/IGES/BREP re-export cannot be rotated and says so. |
--decimate | string | Reduce mesh sources (STL, OBJ, PLY, glTF, FBX, 3MF ...) to this share of their triangles: 0.25 or 25% keeps about a quarter. STEP/IGES/BREP are tessellated, not reduced - use --quality. |
--max-size | string | glTF/GLB only: the largest file to write, in MB (5, 0.5 or 15MB; 1 MB = 1,000,000 bytes). A file over it is written again with fewer triangles until it fits, down to 5% of its triangles. One that still does not fit is written at the smallest size reached, reported as over budget, and the exit code is 4 (partial). On a glTF/GLB source the textures come first: with --textures their size limit is lowered; with textures kept as they are, they are converted to WebP (then scaled down) before any triangle goes. |
--compress | boolean | glTF/GLB only: compress the meshes with meshopt (gltfpack); the file is often 5 to 10 times smaller. The viewer must support EXT_meshopt_compression (three.js, Babylon.js, Blender 3.0+, Unity glTFast). |
--assembly | string | STEP assemblies: preserve (default) writes one file per top-level body of a STEP that has several; merge writes every body into one file. A one-root assembly is one file either way. For glTF/GLB output, merge also joins the meshes into one (node names are not kept), but only together with a web option (--textures, --lods, --quantize, --compress-fallback, --keep-extras); a plain conversion or --compress alone keeps the nodes. |
--textures | string | glTF/GLB only: keep (default), ktx2 or webp. ktx2 converts every texture to KTX2 (Basis Universal), the one format that stays compressed in GPU memory; the viewer needs a KTX2 transcoder (three.js KTX2Loader, Babylon.js). webp makes the download smaller only. |
--keep-textures | string | glTF/GLB only: all (default, keep all texture maps), base-color (keep baseColorTexture only and strip normal, metallic-roughness, occlusion, emissive and KHR material texture maps) or none (strip all textures). |
--texture-mode | string | With --textures ktx2: auto (default: ETC1S for colour textures, UASTC for normal and data maps), etc1s (smallest) or uastc (best quality, larger). |
--base-color | string | glTF/GLB output from FBX, OBJ, DAE and other mesh sources: a PNG or JPEG put on every material that has texture coordinates, with a white base colour (an asset pack's shared colour atlas, which its FBX files do not link). |
--texture-dir | string | glTF/GLB output from FBX, OBJ, DAE and other mesh sources: a folder searched by file name (and for a PNG or JPEG of the same name) for a texture the source links but that is not where the link says. A link found nowhere is removed with a note. |
--texture-quality | string | Texture encoding quality, 1 (smallest) to 10 (best). Default: 8. |
--texture-max-size | string | Largest texture side in pixels when textures are converted, such as 2048. Default: no limit; 0 or none removes a limit a preset sets. |
--texture-pow2 | boolean | Resize converted textures to the nearest power of two (WebGL 1). With --texture-max-size the result can be one step above the limit. |
--lods | string | glTF/GLB only: also write LOD files, one per ratio: 0.5,0.25 (or 0.5 0.25, or 50%,25%) writes name.lod1 and name.lod2. Each ratio is a target share of the main file's triangles; a mesh that cannot be simplified further without visible damage keeps more: the result says how many triangles each LOD file kept (lods in --json). With --max-size the LOD files are made from the already reduced main file. LOD files are written without textures (skins and animations stay). Ratios must fall; at most four; none removes the LOD files a preset sets. |
--instancing | boolean | glTF/GLB only: write a mesh that is placed several times once (EXT_mesh_gpu_instancing). Node names are not kept. |
--quantize | string | With --compress or --compress-fallback: standard (default), fine (more precise positions and normals, slightly larger) or off. A quantized mesh moves into a new unnamed child of its node, which carries the scale that undoes the quantization: node names stay, but code that expects the mesh directly on the named node must look one level down. off keeps the structure. |
--simplify-mode | string | glTF/GLB --decimate: quality (default: keeps texture coordinates and stops at the error limit, so it may keep more triangles than asked; the result says how many) or aggressive (forces the target triangle ratio). --max-size always forces its size. |
--max-error | string | glTF/GLB --decimate in quality mode, and LOD files: maximum normalized simplification error (0.001 to 1.0, gltfpack -se). Default: 0.01. |
--lock-border | boolean | glTF/GLB --decimate: keep the open borders of the mesh in place while simplifying (default: true; pass --lock-border false to let them move). LOD files always keep them. |
--compress-fallback | boolean | glTF/GLB only: compress with a fallback for viewers without meshopt support (a larger file). Implies --compress. |
--keep-extras | boolean | glTF/GLB only: keep the source's extras data. Extras are dropped only when the file is compressed, textures are converted, or meshes are instanced or merged; a plain conversion keeps them. |
--strict | boolean | Fail a file when compression, texture conversion or a LOD file could not be applied, instead of writing it with a warning (exit code 5; 4 when other files of a batch succeeded). For build scripts. |
--profile | string | Start from a saved conversion profile (JSON, as the app saves it in %APPDATA%\CadConverter\profiles). Options given on the command line override the profile's values. |
--preset | string | Start from a built-in preset: web-game (GLB, meshopt compression, KTX2 textures up to 2048 px), 3d-printing, visualization, engineering or mesh-review. Options given on the command line override the preset's values; --profile wins when both are given. |
--overwrite | boolean | Replace an output file that already exists. |
--skip-existing | boolean | Leave an input alone when its output file already exists, so a re-run only converts what is missing (a skipped file is not converted and costs no free conversion). |
Output options: --json, --plain, --quiet, --verbose, --progress.
MCP server
cadconvert serve exposes 13 tools over the Model Context Protocol (stdio, newline-delimited JSON-RPC 2.0; protocol versions 2025-11-25, 2025-06-18, 2025-03-26 and 2024-11-05), so an AI agent such as Claude Code, Claude Desktop, Cursor or Codex can work on files on your PC. Server name: cad-converter. Pass absolute paths to every tool.
{
"mcpServers": {
"cad-converter": {
"command": "cadconvert",
"args": [
"serve"
]
}
}
}
In Claude Code one command adds it: claude mcp add cad-converter -- cadconvert serve. Stdout carries JSON-RPC only, ping is answered while a tool runs, notifications/cancelled stops a running call, and a tool that cannot do its job returns isError: true with a sentence that names the problem.
| Tool | Title | Read-only | Destructive | Idempotent | Network |
|---|---|---|---|---|---|
bake_ao | Bake vertex AO and ground contact shadow | no | yes | no | no |
bake_environment | Bake HDR sky panorama to Babylon .env | no | yes | no | no |
bake_impostor | Bake far-card impostor atlas | no | yes | no | no |
bake_pbr | Bake PBR texture maps and KTX2 | no | yes | no | no |
batch_convert_cad | Convert a folder of 3D/CAD files | no | yes | no | no |
convert_cad | Convert 3D/CAD file | no | yes | no | no |
detect_format | Detect 3D format | yes | no | yes | no |
get_bom | Get the part list of a STEP assembly | yes | no | yes | no |
get_file_info | Get 3D file info | yes | no | yes | no |
get_license_status | Get license and trial status | yes | no | yes | no |
list_formats | List supported formats | yes | no | yes | no |
register_license | Register a license key | no | no | yes | yes |
render_model | Render 3D model thumbnails | yes | no | yes | no |
Destructive: the tool can replace a file that already exists. Network: the tool uses the internet.
bake_ao
writes filescan replace files
Bake vertex AO and ground contact shadow. Offline BVH raycast ambient occlusion baker: writes per-vertex AO into glTF COLOR_0 of a static copy of the model (<prefix>.ao.glb: geometry, base colour, metallic and roughness factors; skins, animations and other texture maps are not carried, the result's warnings say what was left out) and/or renders a soft ground contact-shadow decal (<prefix>.shadow.png + <prefix>.shadow.json) for zero-GPU-cost grounding.
| Parameter | Type | Required | Description |
|---|---|---|---|
input_path | string | yes | Absolute path to the 3D model. |
output_path | string | yes | Absolute output directory or prefix (writes <prefix>.ao.glb, .shadow.png, .shadow.json). |
samples | integer | no | Hemisphere ray count (default 32). Range: 8 to 256. |
max_distance | number | no | Max occlusion ray distance in world units (0 = auto 35% of diagonal). Minimum: 0. |
strength | number | no | AO contrast curve strength (default 1.0). Range: 0.1 to 3. |
bake_vertex_ao | boolean | no | Emit .ao.glb with COLOR_0 vertex AO (default true). |
bake_contact_shadow | boolean | no | Emit .shadow.png and .shadow.json ground decal (default true). |
shadow_size | integer | no | Contact-shadow decal resolution in pixels (default 256). Range: 64 to 1024. |
shadow_padding | number | no | Margin around model XZ footprint as a fraction of max XZ span (default 0.25). Range: 0 to 1.5. |
bake_environment
writes filescan replace files
Bake HDR sky panorama to Babylon .env. Prefilter a Radiance (.hdr) or OpenEXR (.exr) equirectangular sky panorama into a Babylon.js .env v2 container (spherical polynomial diffuse irradiance and RGBD GGX specular mip chain). No GPU required.
| Parameter | Type | Required | Description |
|---|---|---|---|
input_path | string | yes | Absolute path to the .hdr or .exr sky panorama. |
output_path | string | yes | Absolute path for the output .env file. |
size | integer | no | Cubemap face resolution in pixels (power of two, default 256). One of: 64, 128, 256, 512. |
samples | integer | no | GGX importance samples per texel (default 64). Range: 8 to 512. |
bake_impostor
writes filescan replace files
Bake far-card impostor atlas. Render a 3D model from N evenly spaced orthographic azimuth angles at a pitch angle into a packed transparent RGBA atlas (.impostor.png or .webp with alpha color bleed), a JSON metadata descriptor (.impostor.json with world-space bounds), and an optional crossed-card billboard mesh (.impostor.glb).
| Parameter | Type | Required | Description |
|---|---|---|---|
input_path | string | yes | Absolute path to the 3D model. |
output_path | string | yes | Absolute output directory or prefix (writes <prefix>.impostor.png/webp, <prefix>.impostor.json and optional .impostor.glb). |
angles | integer | no | Evenly spaced azimuth angles (default 8). Range: 4 to 16. |
pitch | number | no | Elevation pitch angle in degrees (default 8). Range: -45 to 45. |
tile_size | integer | no | Square tile width and height in pixels (default 256). Range: 64 to 1024. |
format | string | no | Atlas image format: png (default) or webp. One of: png, webp. |
emit_glb | boolean | no | Also emit a crossed-card <prefix>.impostor.glb billboard mesh (default false). |
bake_pbr
writes filescan replace files
Bake PBR texture maps and KTX2. Synthesize a glTF/Babylon.js PBR material texture set from one albedo/diffuse image: optional seamless toroidal tiling, multi-scale tangent-space normal map, cavity AO, roughness, packed ORM (R=AO, G=Roughness, B=Metallic), metadata JSON, and optional standalone KTX2 textures (ETC1S albedo, UASTC normal/ORM).
| Parameter | Type | Required | Description |
|---|---|---|---|
input_path | string | yes | Absolute path to the source texture (.png, .jpg, .webp, .ktx2). |
output_path | string | yes | Absolute output directory or prefix (writes <prefix>.albedo.png, .normal.png, .orm.png, .pbr.json and optional .ktx2). |
seamless | boolean | no | Make the texture seamlessly tileable before baking maps (default false). |
normal_strength | number | no | Normal slope strength (default 2.0). Range: 0.1 to 10. |
invert_normal_y | boolean | no | Flip normal green channel for DirectX -Y instead of OpenGL/glTF +Y (default false). |
roughness_min | number | no | Minimum roughness value (default 0.25). Range: 0 to 1. |
roughness_max | number | no | Maximum roughness value (default 0.85). Range: 0 to 1. |
metallic | number | no | Constant metallic channel in ORM blue (default 0.0). Range: 0 to 1. |
ao_strength | number | no | Cavity AO strength (default 1.0). Range: 0 to 2. |
invert_roughness | boolean | no | Invert luminance-to-roughness mapping (default false). |
ktx2 | boolean | no | Also emit standalone KTX2 files via gltfpack (default false). |
ktx2_quality | integer | no | KTX2 quality 1..10 (default 8). Range: 1 to 10. |
batch_convert_cad
writes filescan replace files
Convert a folder of 3D/CAD files. Convert every 3D file in a folder (STEP, IGES, BREP and the mesh formats convert_cad reads) to one format, with the same options as convert_cad; format, or a preset that names one, is required. Outputs are named after their sources; with recursive, subfolders are mirrored under output_dir. Files already in the target format are left alone when output_dir is the input folder. The result lists every file with its own convert_cad result or error (success false = a failed conversion). A CAD program's own file or a known 3D format no reader opens is listed too, never converted, with success true, skipped true, status Skipped and reason native_cad (nativeFormat names the program: export STEP from it first) or unsupported_format, counted in refused, not in total; other files (PDFs, images) are only counted in ignored. Send a progressToken for progress over the whole folder.
| Parameter | Type | Required | Description |
|---|---|---|---|
input_dir | string | yes | Absolute path of the folder with the 3D files. |
output_dir | string | no | Absolute path of the folder for the outputs (created if missing). Default: input_dir. |
recursive | boolean | no | Include subfolders (their structure is kept under output_dir). Default: false. |
format | string | no | Output format: stl, obj, ply, gltf, glb, 3mf, dae, step, iges, fbx, vrml, off, brep. Default: the output_path extension, else the preset's format. One of: stl, obj, ply, gltf, glb, 3mf, dae, step, iges, fbx, vrml, off, brep. |
quality | string | no | Mesh quality for STEP/IGES/BREP sources: a preset (draft, standard, fine, ultrafine) or a linear deflection in mm ("0.1" = standard; lower = finer, e.g. "0.001"). Default: standard. No effect on mesh sources (STL, OBJ ...): they keep their triangles. |
angular | number or string | no | Angular deflection in radians for STEP/IGES/BREP sources (0.5 = about 29 degrees; lower = smoother curves). Default: the preset's value (0.5 for standard and for a numeric quality). |
units | string | no | Target units for conversion. One of: mm, cm, in, m, ft. |
up_axis | string | no | Rotate the model so this axis points up: y (game engines, glTF, three.js) or z (CAD, 3D printing). Default: unchanged. A STEP/IGES/BREP re-export cannot be rotated and the result's notes say so. One of: y, z, unchanged. |
decimate | number or string | no | Reduce mesh sources (STL, OBJ, PLY, glTF, FBX, 3MF ...) to this share of their triangles: 0.25 or "25%" keeps about a quarter. STEP/IGES/BREP sources are tessellated, not reduced - use quality instead; the result's notes say so. |
max_size_mb | number or string | no | glTF/GLB only: the largest file to write, in MB (5, 0.5, 15; 1 MB = 1,000,000 bytes). A file over it is written again with fewer triangles until it fits, down to 5% of its triangles. The result's withinBudget is true when the written file fits and false when it was written at the smallest size reached and is still over; outputBytes, trianglesBefore and trianglesAfter are what was measured. On a glTF/GLB source with textures ktx2 or webp, the texture size limit is lowered first; with textures kept as they are, they are converted to WebP (then scaled down) before any triangle goes. |
compress | boolean | no | glTF/GLB only: compress the meshes with meshopt (gltfpack); the file is often 5 to 10 times smaller. The viewer must support EXT_meshopt_compression (three.js, Babylon.js, Blender 3.0+, Unity glTFast). Default: false. |
assembly | string | no | STEP assemblies: preserve (default) writes one file per top-level body of a STEP that has several (the result's additionalOutputs lists them); merge writes every body into one file. A one-root assembly is one file either way. For glTF/GLB output, merge also joins the meshes into one (node names are not kept), but only together with a web option (textures, lods, quantize, compress_fallback, keep_extras); a plain conversion or compress alone keeps the nodes. One of: preserve, merge. |
textures | string | no | glTF/GLB only: keep (default), ktx2 or webp. ktx2 converts every texture to KTX2 (Basis Universal), the one format that stays compressed in GPU memory; the viewer needs a KTX2 transcoder (three.js KTX2Loader, Babylon.js). webp makes the download smaller only. The result's web.texturesConverted and the two estimatedGpuTextureBytes say what changed. One of: keep, ktx2, webp. |
keep_textures | string | no | glTF/GLB only: all (default, keep every texture), base-color (keep only baseColorTexture and strip normal, metallic-roughness, occlusion, emissive and KHR material texture maps) or none (strip all textures). One of: all, base-color, none. |
texture_mode | string | no | With textures ktx2: auto (default: ETC1S for colour textures, UASTC for normal and data maps), etc1s (smallest) or uastc (best quality, larger). One of: auto, etc1s, uastc. |
base_color | string | no | glTF/GLB output from FBX, OBJ, DAE and other mesh sources: path of a PNG or JPEG put on every material that has texture coordinates, with a white base colour (an asset pack's shared colour atlas, which its FBX files do not link). |
texture_dir | string | no | glTF/GLB output from FBX, OBJ, DAE and other mesh sources: a folder searched by file name (and for a PNG or JPEG of the same name) for a texture the source links but that is not where the link says. A link found nowhere is removed with a note. |
texture_quality | integer or string | no | Texture encoding quality, a whole number from 1 (smallest) to 10 (best). Default: 8. |
texture_max_size | integer or string | no | Largest texture side in pixels when textures are converted, such as 2048. Default: no limit; 0 or none removes a limit a preset sets. |
texture_pow2 | boolean | no | Resize converted textures to the nearest power of two (WebGL 1). Default: false. |
lods | string | no | glTF/GLB only: also write LOD files, one per ratio: "0.5,0.25" or "50%,25%" writes name.lod1 and name.lod2. Each ratio is a target share of the main file's triangles; a mesh that cannot be simplified further without visible damage keeps more. With max_size_mb the LOD files are made from the already reduced main file. They are written without textures (skins and animations stay) and are listed in the result's web.lodFiles. Ratios must fall; at most four; "none" removes the LOD files a preset sets. |
instancing | boolean | no | glTF/GLB only: write a mesh that is placed several times once (EXT_mesh_gpu_instancing). Node names are not kept. Not with assembly merge. Default: false. |
quantize | string | no | With compress or compress_fallback: standard (default), fine (more precise positions and normals, slightly larger) or off. One of: standard, fine, off. |
simplify_mode | string | no | glTF/GLB decimate: quality (default: keeps texture coordinates and stops at the error limit, so it may keep more triangles than asked; web.achievedRatio and web.stoppedForQuality say so) or aggressive (forces the target triangle ratio). max_size_mb always forces its size. One of: quality, aggressive. |
max_error | number or string | no | glTF/GLB decimate in quality mode, and LOD files: maximum normalized simplification error (0.001 to 1.0, gltfpack -se). Default: 0.01. |
lock_border | boolean | no | glTF/GLB decimate: keep the open borders of the mesh in place while simplifying (default: true). LOD files always keep them. |
compress_fallback | boolean | no | glTF/GLB only: compress with a fallback for viewers without meshopt support (a larger file). Implies compress. Default: false. |
keep_extras | boolean | no | glTF/GLB only: keep the source's extras data. Extras are dropped only when the file is compressed, textures are converted, or meshes are instanced or merged; a plain conversion keeps them. Default: false. |
strict | boolean | no | Fail the call when compression, texture conversion or a LOD file could not be applied, instead of writing the file with a warning (then web.applied is false and web.problem says why). Default: false. |
preset | string | no | Start from a built-in preset; the other arguments override it. web-game: GLB, meshopt compression, KTX2 textures up to 2048 px. Without format the preset's format is used (an output_path extension still wins). One of: web-game, 3d-printing, visualization, engineering, mesh-review. |
repair | boolean | no | Repair STEP/IGES/BREP surfaces before meshing (fixes broken edges and faces, closes small gaps). No effect on mesh sources such as STL or OBJ. |
binary | boolean | no | Use binary output for STL/PLY (default: true). |
overwrite | boolean | no | Replace an output file that already exists (default: the existing file is kept and the new one is written beside it as name (1)). |
skip_existing | boolean | no | Leave the input alone when its output file already exists: nothing is converted and no free conversion is used; the result says skipped: true. |
convert_cad
writes filescan replace files
Convert 3D/CAD file. Convert a 3D CAD file (STEP, IGES) to mesh formats (STL, OBJ, PLY, FBX, glTF, 3MF) or between mesh formats. Mesh sources include VRML (.wrl, .vrml, gzip .wrz): VRML is read in metres (a 1 m cube is 1000 mm) and Y-up, as the specification says. The result's notes list what an option could not do on this route (a STEP source is tessellated, not reduced; a STEP re-export cannot be rotated). For the web and games: textures ktx2, lods and preset web-game optimise a glTF/GLB (a glTF or GLB source keeps its animations and skins); the result's web object says what was done. A large assembly can take minutes: send a progressToken to get progress notifications. Calling again with exactly the same arguments within 30 minutes, while the source and the output are unchanged, returns the earlier result without converting again (for a client that gave up waiting).
| Parameter | Type | Required | Description |
|---|---|---|---|
input_path | string | yes | Absolute path to the source 3D file. |
output_path | string | no | Absolute path for the converted output file. Give this or output_dir. |
output_dir | string | no | Absolute path of a folder: the output is written there, named after the input with the format's extension (format, or a preset that names one, is then required). Give this or output_path. |
format | string | no | Output format: stl, obj, ply, gltf, glb, 3mf, dae, step, iges, fbx, vrml, off, brep. Default: the output_path extension, else the preset's format. One of: stl, obj, ply, gltf, glb, 3mf, dae, step, iges, fbx, vrml, off, brep. |
quality | string | no | Mesh quality for STEP/IGES/BREP sources: a preset (draft, standard, fine, ultrafine) or a linear deflection in mm ("0.1" = standard; lower = finer, e.g. "0.001"). Default: standard. No effect on mesh sources (STL, OBJ ...): they keep their triangles. |
angular | number or string | no | Angular deflection in radians for STEP/IGES/BREP sources (0.5 = about 29 degrees; lower = smoother curves). Default: the preset's value (0.5 for standard and for a numeric quality). |
units | string | no | Target units for conversion. One of: mm, cm, in, m, ft. |
up_axis | string | no | Rotate the model so this axis points up: y (game engines, glTF, three.js) or z (CAD, 3D printing). Default: unchanged. A STEP/IGES/BREP re-export cannot be rotated and the result's notes say so. One of: y, z, unchanged. |
decimate | number or string | no | Reduce mesh sources (STL, OBJ, PLY, glTF, FBX, 3MF ...) to this share of their triangles: 0.25 or "25%" keeps about a quarter. STEP/IGES/BREP sources are tessellated, not reduced - use quality instead; the result's notes say so. |
max_size_mb | number or string | no | glTF/GLB only: the largest file to write, in MB (5, 0.5, 15; 1 MB = 1,000,000 bytes). A file over it is written again with fewer triangles until it fits, down to 5% of its triangles. The result's withinBudget is true when the written file fits and false when it was written at the smallest size reached and is still over; outputBytes, trianglesBefore and trianglesAfter are what was measured. On a glTF/GLB source with textures ktx2 or webp, the texture size limit is lowered first; with textures kept as they are, they are converted to WebP (then scaled down) before any triangle goes. |
compress | boolean | no | glTF/GLB only: compress the meshes with meshopt (gltfpack); the file is often 5 to 10 times smaller. The viewer must support EXT_meshopt_compression (three.js, Babylon.js, Blender 3.0+, Unity glTFast). Default: false. |
assembly | string | no | STEP assemblies: preserve (default) writes one file per top-level body of a STEP that has several (the result's additionalOutputs lists them); merge writes every body into one file. A one-root assembly is one file either way. For glTF/GLB output, merge also joins the meshes into one (node names are not kept), but only together with a web option (textures, lods, quantize, compress_fallback, keep_extras); a plain conversion or compress alone keeps the nodes. One of: preserve, merge. |
textures | string | no | glTF/GLB only: keep (default), ktx2 or webp. ktx2 converts every texture to KTX2 (Basis Universal), the one format that stays compressed in GPU memory; the viewer needs a KTX2 transcoder (three.js KTX2Loader, Babylon.js). webp makes the download smaller only. The result's web.texturesConverted and the two estimatedGpuTextureBytes say what changed. One of: keep, ktx2, webp. |
keep_textures | string | no | glTF/GLB only: all (default, keep every texture), base-color (keep only baseColorTexture and strip normal, metallic-roughness, occlusion, emissive and KHR material texture maps) or none (strip all textures). One of: all, base-color, none. |
texture_mode | string | no | With textures ktx2: auto (default: ETC1S for colour textures, UASTC for normal and data maps), etc1s (smallest) or uastc (best quality, larger). One of: auto, etc1s, uastc. |
base_color | string | no | glTF/GLB output from FBX, OBJ, DAE and other mesh sources: path of a PNG or JPEG put on every material that has texture coordinates, with a white base colour (an asset pack's shared colour atlas, which its FBX files do not link). |
texture_dir | string | no | glTF/GLB output from FBX, OBJ, DAE and other mesh sources: a folder searched by file name (and for a PNG or JPEG of the same name) for a texture the source links but that is not where the link says. A link found nowhere is removed with a note. |
texture_quality | integer or string | no | Texture encoding quality, a whole number from 1 (smallest) to 10 (best). Default: 8. |
texture_max_size | integer or string | no | Largest texture side in pixels when textures are converted, such as 2048. Default: no limit; 0 or none removes a limit a preset sets. |
texture_pow2 | boolean | no | Resize converted textures to the nearest power of two (WebGL 1). Default: false. |
lods | string | no | glTF/GLB only: also write LOD files, one per ratio: "0.5,0.25" or "50%,25%" writes name.lod1 and name.lod2. Each ratio is a target share of the main file's triangles; a mesh that cannot be simplified further without visible damage keeps more. With max_size_mb the LOD files are made from the already reduced main file. They are written without textures (skins and animations stay) and are listed in the result's web.lodFiles. Ratios must fall; at most four; "none" removes the LOD files a preset sets. |
instancing | boolean | no | glTF/GLB only: write a mesh that is placed several times once (EXT_mesh_gpu_instancing). Node names are not kept. Not with assembly merge. Default: false. |
quantize | string | no | With compress or compress_fallback: standard (default), fine (more precise positions and normals, slightly larger) or off. One of: standard, fine, off. |
simplify_mode | string | no | glTF/GLB decimate: quality (default: keeps texture coordinates and stops at the error limit, so it may keep more triangles than asked; web.achievedRatio and web.stoppedForQuality say so) or aggressive (forces the target triangle ratio). max_size_mb always forces its size. One of: quality, aggressive. |
max_error | number or string | no | glTF/GLB decimate in quality mode, and LOD files: maximum normalized simplification error (0.001 to 1.0, gltfpack -se). Default: 0.01. |
lock_border | boolean | no | glTF/GLB decimate: keep the open borders of the mesh in place while simplifying (default: true). LOD files always keep them. |
compress_fallback | boolean | no | glTF/GLB only: compress with a fallback for viewers without meshopt support (a larger file). Implies compress. Default: false. |
keep_extras | boolean | no | glTF/GLB only: keep the source's extras data. Extras are dropped only when the file is compressed, textures are converted, or meshes are instanced or merged; a plain conversion keeps them. Default: false. |
strict | boolean | no | Fail the call when compression, texture conversion or a LOD file could not be applied, instead of writing the file with a warning (then web.applied is false and web.problem says why). Default: false. |
preset | string | no | Start from a built-in preset; the other arguments override it. web-game: GLB, meshopt compression, KTX2 textures up to 2048 px. Without format the preset's format is used (an output_path extension still wins). One of: web-game, 3d-printing, visualization, engineering, mesh-review. |
repair | boolean | no | Repair STEP/IGES/BREP surfaces before meshing (fixes broken edges and faces, closes small gaps). No effect on mesh sources such as STL or OBJ. |
binary | boolean | no | Use binary output for STL/PLY (default: true). |
overwrite | boolean | no | Replace an output file that already exists (default: the existing file is kept and the new one is written beside it as name (1)). |
skip_existing | boolean | no | Leave the input alone when its output file already exists: nothing is converted and no free conversion is used; the result says skipped: true. |
detect_format
read-onlyidempotent
Detect 3D format. Detect the 3D file format and check if it is supported for import/export.
| Parameter | Type | Required | Description |
|---|---|---|---|
input_path | string | yes | Absolute path to the 3D file. |
get_bom
read-onlyidempotent
Get the part list of a STEP assembly. Get the bill of materials of a STEP assembly: one row per unique part with its name, how many times the assembly places it (quantity), its solids and faces, its size in millimetres and its colour. STEP only: IGES and BREP files have no product structure. Reads the file; converts nothing.
| Parameter | Type | Required | Description |
|---|---|---|---|
input_path | string | yes | Absolute path to the STEP file (.step or .stp). |
get_file_info
read-onlyidempotent
Get 3D file info. Get metadata about a 3D file including format, parts, triangles, vertices, and bounding box; for glTF/GLB also its textures, which extract_textures_dir writes out as PNG/JPEG files. For STEP, hasMaterials and materialCount are the colours a conversion carries; above 10 MB they are checked only with check_colours (else hasMaterials and materialCount are left out and coloursChecked is false). IGES and BREP carry no colours (materialCount 0).
| Parameter | Type | Required | Description |
|---|---|---|---|
input_path | string | yes | Absolute path to the 3D file. |
extract_textures_dir | string | no | glTF/GLB only: absolute folder to write every texture image into (WebP and KTX2 decoded to PNG); each texture then names its file. |
check_colours | boolean | no | STEP over 10 MB: also count the colours a conversion carries (a second OpenCascade pass, about as long as the info itself). Smaller STEP files are always checked. Default: false. |
get_license_status
read-onlyidempotent
Get license and trial status. Get the license and trial state before converting: registered or trial, free conversions left (freeFilesRemaining), and what exports become after them (afterFreeFiles: draft_quality = Draft tessellation and a trial note in the file). nextOutput says what the next export will be: clean or draft_quality. On a trial, buyUrl is the buy page and listPriceUsd the lifetime licence price in US dollars (a sale on the buy page can be lower); both are null when registered.
No parameters.
list_formats
read-onlyidempotent
List supported formats. List all supported 3D file formats with import/export capabilities.
No parameters.
register_license
writes filesidempotentuses the internet
Register a license key. Register a purchased 3D CAD Converter license on this computer: the email address the license was bought with and the license key from the purchase email. The key is checked with the ContentaSoft license server. Once registered, every output is full quality with no trial mark, here, on the command line and in the desktop app. The answer carries the license state after the attempt (the same object as get_license_status).
| Parameter | Type | Required | Description |
|---|---|---|---|
email | string | yes | The email address the license was bought with. |
key | string | yes | The license key from the purchase email, with or without its dashes. |
render_model
read-onlyidempotent
Render 3D model thumbnails. Draw lit PNG thumbnails of a 3D file (any input format) from front, side, top, iso, back or bottom, to look at the model, its credits or the lettering on its textures. Writes only the PNGs; uses no trial file.
| Parameter | Type | Required | Description |
|---|---|---|---|
input_path | string | yes | Absolute path to the 3D file. |
output_path | string | yes | Absolute PNG path; with several views each gets -<view> before .png; an existing folder gets <model>-<view>.png. |
views | array of string | no | Views to draw (default front, side, top, iso). |
size | integer | no | Width and height in pixels (default 512). Range: 64 to 4096. |