3D CAD Converter
Reference, version 1.2.1

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

CommandWhat 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 catalogPrint every CLI command and MCP tool as JSON (for AI agents, docs and the website).
cadconvert convert <input>Convert a single 3D file.
cadconvert formatsList 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 serveStart MCP server for AI agent integration.
cadconvert statusShow 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.

OptionDescription
--jsonPrint one JSON object on stdout (success, exitCode, error, warnings, errors, outputs + the command's fields); nothing else goes to stdout.
--plainPlain text: no colours, no escape codes, ASCII tables. Automatic when stdout is a pipe or a file, or when NO_COLOR is set.
--quietPrint errors only.
--verboseVerbose output: details and, on an error, the stack trace.
--progressWith --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.

CodeNameMeaning
0okOK: everything asked for was done.
1unexpected_errorUnexpected error (a bug or a broken install); see the log.
2invalid_argumentsInvalid arguments: unknown option, missing or malformed value; nothing was done.
3input_not_foundInput not found or unreadable; nothing was done.
4partial_failurePartial failure: some items succeeded, some failed.
5all_failedAll failed: no item succeeded.
6license_refusedLicense or trial refused the run.
130cancelledCancelled (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:

KeyMeaning
successtrue when the run did everything it was asked to do
exitCodethe process exit code (see Exit codes)
errorone sentence when the run failed, otherwise null
warningsnotes about the run that did not stop it
errorsone entry per item that failed (a batch keeps going)
outputsthe files the run wrote

Trial keys, present only when they apply:

KeyMeaning
trialWatermarkedthe output carries the trial watermark
trialExportthe output is a trial export
trialNoticeone sentence about the trial, for the user
freeFilesRemainingfree full-quality files left on this computer
buyUrlwhere 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:

KeyMeaning
typealways "progress"
filethe file that finished
completeditems finished so far
totalitems 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]
ArgumentDescription
<file>3D model to bake (.glb, .gltf, .obj, .fbx, .step, .stl, ...)
OptionTypeDescription
--outstring, requiredOutput prefix or directory (writes <prefix>.ao.glb, <prefix>.shadow.png, <prefix>.shadow.json).
--samplesintegerHemisphere occlusion ray count (8 to 256).
--max-distancenumberMax ray occlusion distance in world units (0 = auto 35% of model diagonal).
--strengthnumberAmbient occlusion contrast exponent (0.1 to 3).
--no-vertex-aobooleanSkip baking per-vertex AO into .ao.glb (emit only the contact-shadow decal).
--no-shadowbooleanSkip baking the ground contact-shadow decal (emit only .ao.glb).
--shadow-sizeintegerSquare contact-shadow decal size in pixels (64 to 1024).
--shadow-paddingnumberExtra 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]
ArgumentDescription
<file>Equirectangular HDR sky panorama (.hdr or .exr).
OptionTypeDescription
--outstring, requiredOutput .env file path (for example sky.env).
--sizeintegerCubemap face size in pixels (power of two, 64 to 512).
--samplesintegerGGX 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]
ArgumentDescription
<file>3D model file to bake into an impostor atlas (any format formats --input lists).
OptionTypeDescription
--outstring, requiredOutput directory or file prefix (writes <prefix>.impostor.png/webp, <prefix>.impostor.json, and optional .impostor.glb).
--anglesintegerEvenly spaced azimuth angles (4 to 16).
--pitchnumberCamera elevation angle in degrees (-45 to 45).
--tile-sizeintegerSquare tile resolution in pixels (64 to 1024).
--formatstringAtlas image format: png (default) or webp.
--emit-glbbooleanAlso 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]
ArgumentDescription
<file>Source albedo/diffuse texture (.png, .jpg, .webp, .ktx2).
OptionTypeDescription
--outstring, requiredOutput prefix or directory (writes <prefix>.albedo.png, .normal.png, .orm.png, .pbr.json and optional .ktx2).
--seamlessbooleanMake the texture seamlessly tileable with toroidal cross-blending before generating maps.
--normal-strengthnumberNormal map slope strength (0.1 to 10).
--invert-normal-ybooleanFlip normal green channel for DirectX (-Y) instead of OpenGL/glTF (+Y).
--roughness-minnumberMinimum roughness value (0.0 to 1.0).
--roughness-maxnumberMaximum roughness value (roughness-min to 1.0).
--metallicnumberConstant metallic channel written into ORM blue (0.0 to 1.0).
--ao-strengthnumberCavity ambient occlusion strength (0 to 2).
--invert-roughnessbooleanInvert luminance-to-roughness mapping (bright areas rougher instead of smoother).
--ktx2booleanAlso emit standalone KTX2 textures (ETC1S for albedo, UASTC for normal and ORM) via gltfpack.
--ktx2-qualityintegerKTX2 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]
ArgumentDescription
<input>Input folder.
OptionTypeDescription
--formatstringTarget format.
--reportstringWrite 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.
--outputstringOutput folder. Default: <input>_converted next to the input folder.
--includestring[]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.
--excludestring[]Leave out files matching this pattern, e.g. *_old.step or archive; repeat the option or separate patterns with ';' or ','. Same matching as --include.
--recursivebooleanInclude subfolders (the default; -r false converts the folder itself only).
--workersintegerParallel workers (default: the number of processors).
--qualitystringMesh 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.
--angularstringAngular 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).
--repairbooleanRepair STEP/IGES/BREP surfaces before meshing: fixes broken edges and faces and closes small gaps. No effect on mesh sources (STL, OBJ ...)
--unitsstringTarget units (mm, cm, in, m, ft).
--binarybooleanBinary output for STL/PLY.
--up-axisstringRotate 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.
--decimatestringReduce 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-sizestringglTF/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.
--compressbooleanglTF/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).
--assemblystringSTEP 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.
--texturesstringglTF/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-texturesstringglTF/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-modestringWith --textures ktx2: auto (default: ETC1S for colour textures, UASTC for normal and data maps), etc1s (smallest) or uastc (best quality, larger).
--base-colorstringglTF/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-dirstringglTF/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-qualitystringTexture encoding quality, 1 (smallest) to 10 (best). Default: 8.
--texture-max-sizestringLargest texture side in pixels when textures are converted, such as 2048. Default: no limit; 0 or none removes a limit a preset sets.
--texture-pow2booleanResize converted textures to the nearest power of two (WebGL 1). With --texture-max-size the result can be one step above the limit.
--lodsstringglTF/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.
--instancingbooleanglTF/GLB only: write a mesh that is placed several times once (EXT_mesh_gpu_instancing). Node names are not kept.
--quantizestringWith --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-modestringglTF/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-errorstringglTF/GLB --decimate in quality mode, and LOD files: maximum normalized simplification error (0.001 to 1.0, gltfpack -se). Default: 0.01.
--lock-borderbooleanglTF/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-fallbackbooleanglTF/GLB only: compress with a fallback for viewers without meshopt support (a larger file). Implies --compress.
--keep-extrasbooleanglTF/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.
--strictbooleanFail 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.
--profilestringStart 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.
--presetstringStart 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.
--overwritebooleanReplace an output file that already exists.
--skip-existingbooleanLeave 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]
ArgumentDescription
<input>Input 3D file.
OptionTypeDescription
--formatstringTarget format (stl, obj, step, iges, etc.)
--outputstringOutput file or folder. Default: next to the input, with the -f format's extension.
--qualitystringMesh 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.
--angularstringAngular 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).
--repairbooleanRepair STEP/IGES/BREP surfaces before meshing: fixes broken edges and faces and closes small gaps. No effect on mesh sources (STL, OBJ ...)
--unitsstringTarget units (mm, cm, in, m, ft).
--binarybooleanBinary output for STL/PLY.
--up-axisstringRotate 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.
--decimatestringReduce 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-sizestringglTF/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.
--compressbooleanglTF/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).
--assemblystringSTEP 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.
--texturesstringglTF/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-texturesstringglTF/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-modestringWith --textures ktx2: auto (default: ETC1S for colour textures, UASTC for normal and data maps), etc1s (smallest) or uastc (best quality, larger).
--base-colorstringglTF/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-dirstringglTF/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-qualitystringTexture encoding quality, 1 (smallest) to 10 (best). Default: 8.
--texture-max-sizestringLargest texture side in pixels when textures are converted, such as 2048. Default: no limit; 0 or none removes a limit a preset sets.
--texture-pow2booleanResize converted textures to the nearest power of two (WebGL 1). With --texture-max-size the result can be one step above the limit.
--lodsstringglTF/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.
--instancingbooleanglTF/GLB only: write a mesh that is placed several times once (EXT_mesh_gpu_instancing). Node names are not kept.
--quantizestringWith --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-modestringglTF/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-errorstringglTF/GLB --decimate in quality mode, and LOD files: maximum normalized simplification error (0.001 to 1.0, gltfpack -se). Default: 0.01.
--lock-borderbooleanglTF/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-fallbackbooleanglTF/GLB only: compress with a fallback for viewers without meshopt support (a larger file). Implies --compress.
--keep-extrasbooleanglTF/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.
--strictbooleanFail 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.
--profilestringStart 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.
--presetstringStart 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.
--overwritebooleanReplace an output file that already exists.
--skip-existingbooleanLeave 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]
OptionTypeDescription
--inputbooleanOnly the formats it reads (import).
--outputbooleanOnly the formats it writes (export).

Output options: --json, --plain, --quiet, --verbose, --progress.

cadconvert info

Display information about a 3D file.

cadconvert info <file> [options]
ArgumentDescription
<file>3D file to inspect.
OptionTypeDescription
--bombooleanSTEP only: also list the parts (name, quantity, solids, faces, size in mm), one row per unique part.
--bom-csvstringSTEP only: write the part list as CSV to this file (the same columns as the app's BOM export).
--extract-texturesstringglTF/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-coloursbooleanSTEP 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>
ArgumentDescription
<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]
ArgumentDescription
<file>3D file to draw (any format formats --input lists).
OptionTypeDescription
--outstring, requiredPNG to write; with several views each gets -<view> before .png; an existing folder gets <model>-<view>.png.
--viewsstringComma-separated views: front, side, top, iso, back, bottom (Y up, the model's front facing +Z).
--sizeintegerWidth 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]
ArgumentDescription
<input>Folder to watch.
OptionTypeDescription
--formatstringTarget format.
--reportstringKeep 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.
--outputstringOutput folder. Default: <input>_converted next to the watched folder.
--includestring[]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.
--excludestring[]Leave out files matching this pattern, e.g. *_old.step or archive; repeat the option or separate patterns with ';' or ','. Same matching as --include.
--recursivebooleanInclude subfolders (the default; -r false converts the folder itself only).
--workersintegerParallel workers (default: the number of processors).
--qualitystringMesh 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.
--angularstringAngular 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).
--repairbooleanRepair STEP/IGES/BREP surfaces before meshing: fixes broken edges and faces and closes small gaps. No effect on mesh sources (STL, OBJ ...)
--unitsstringTarget units (mm, cm, in, m, ft).
--binarybooleanBinary output for STL/PLY.
--up-axisstringRotate 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.
--decimatestringReduce 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-sizestringglTF/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.
--compressbooleanglTF/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).
--assemblystringSTEP 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.
--texturesstringglTF/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-texturesstringglTF/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-modestringWith --textures ktx2: auto (default: ETC1S for colour textures, UASTC for normal and data maps), etc1s (smallest) or uastc (best quality, larger).
--base-colorstringglTF/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-dirstringglTF/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-qualitystringTexture encoding quality, 1 (smallest) to 10 (best). Default: 8.
--texture-max-sizestringLargest texture side in pixels when textures are converted, such as 2048. Default: no limit; 0 or none removes a limit a preset sets.
--texture-pow2booleanResize converted textures to the nearest power of two (WebGL 1). With --texture-max-size the result can be one step above the limit.
--lodsstringglTF/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.
--instancingbooleanglTF/GLB only: write a mesh that is placed several times once (EXT_mesh_gpu_instancing). Node names are not kept.
--quantizestringWith --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-modestringglTF/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-errorstringglTF/GLB --decimate in quality mode, and LOD files: maximum normalized simplification error (0.001 to 1.0, gltfpack -se). Default: 0.01.
--lock-borderbooleanglTF/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-fallbackbooleanglTF/GLB only: compress with a fallback for viewers without meshopt support (a larger file). Implies --compress.
--keep-extrasbooleanglTF/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.
--strictbooleanFail 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.
--profilestringStart 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.
--presetstringStart 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.
--overwritebooleanReplace an output file that already exists.
--skip-existingbooleanLeave 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.

ToolTitleRead-onlyDestructiveIdempotentNetwork
bake_aoBake vertex AO and ground contact shadownoyesnono
bake_environmentBake HDR sky panorama to Babylon .envnoyesnono
bake_impostorBake far-card impostor atlasnoyesnono
bake_pbrBake PBR texture maps and KTX2noyesnono
batch_convert_cadConvert a folder of 3D/CAD filesnoyesnono
convert_cadConvert 3D/CAD filenoyesnono
detect_formatDetect 3D formatyesnoyesno
get_bomGet the part list of a STEP assemblyyesnoyesno
get_file_infoGet 3D file infoyesnoyesno
get_license_statusGet license and trial statusyesnoyesno
list_formatsList supported formatsyesnoyesno
register_licenseRegister a license keynonoyesyes
render_modelRender 3D model thumbnailsyesnoyesno

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.

ParameterTypeRequiredDescription
input_pathstringyesAbsolute path to the 3D model.
output_pathstringyesAbsolute output directory or prefix (writes <prefix>.ao.glb, .shadow.png, .shadow.json).
samplesintegernoHemisphere ray count (default 32). Range: 8 to 256.
max_distancenumbernoMax occlusion ray distance in world units (0 = auto 35% of diagonal). Minimum: 0.
strengthnumbernoAO contrast curve strength (default 1.0). Range: 0.1 to 3.
bake_vertex_aobooleannoEmit .ao.glb with COLOR_0 vertex AO (default true).
bake_contact_shadowbooleannoEmit .shadow.png and .shadow.json ground decal (default true).
shadow_sizeintegernoContact-shadow decal resolution in pixels (default 256). Range: 64 to 1024.
shadow_paddingnumbernoMargin 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.

ParameterTypeRequiredDescription
input_pathstringyesAbsolute path to the .hdr or .exr sky panorama.
output_pathstringyesAbsolute path for the output .env file.
sizeintegernoCubemap face resolution in pixels (power of two, default 256). One of: 64, 128, 256, 512.
samplesintegernoGGX 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).

ParameterTypeRequiredDescription
input_pathstringyesAbsolute path to the 3D model.
output_pathstringyesAbsolute output directory or prefix (writes <prefix>.impostor.png/webp, <prefix>.impostor.json and optional .impostor.glb).
anglesintegernoEvenly spaced azimuth angles (default 8). Range: 4 to 16.
pitchnumbernoElevation pitch angle in degrees (default 8). Range: -45 to 45.
tile_sizeintegernoSquare tile width and height in pixels (default 256). Range: 64 to 1024.
formatstringnoAtlas image format: png (default) or webp. One of: png, webp.
emit_glbbooleannoAlso 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).

ParameterTypeRequiredDescription
input_pathstringyesAbsolute path to the source texture (.png, .jpg, .webp, .ktx2).
output_pathstringyesAbsolute output directory or prefix (writes <prefix>.albedo.png, .normal.png, .orm.png, .pbr.json and optional .ktx2).
seamlessbooleannoMake the texture seamlessly tileable before baking maps (default false).
normal_strengthnumbernoNormal slope strength (default 2.0). Range: 0.1 to 10.
invert_normal_ybooleannoFlip normal green channel for DirectX -Y instead of OpenGL/glTF +Y (default false).
roughness_minnumbernoMinimum roughness value (default 0.25). Range: 0 to 1.
roughness_maxnumbernoMaximum roughness value (default 0.85). Range: 0 to 1.
metallicnumbernoConstant metallic channel in ORM blue (default 0.0). Range: 0 to 1.
ao_strengthnumbernoCavity AO strength (default 1.0). Range: 0 to 2.
invert_roughnessbooleannoInvert luminance-to-roughness mapping (default false).
ktx2booleannoAlso emit standalone KTX2 files via gltfpack (default false).
ktx2_qualityintegernoKTX2 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.

ParameterTypeRequiredDescription
input_dirstringyesAbsolute path of the folder with the 3D files.
output_dirstringnoAbsolute path of the folder for the outputs (created if missing). Default: input_dir.
recursivebooleannoInclude subfolders (their structure is kept under output_dir). Default: false.
formatstringnoOutput 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.
qualitystringnoMesh 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.
angularnumber or stringnoAngular 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).
unitsstringnoTarget units for conversion. One of: mm, cm, in, m, ft.
up_axisstringnoRotate 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.
decimatenumber or stringnoReduce 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_mbnumber or stringnoglTF/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.
compressbooleannoglTF/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.
assemblystringnoSTEP 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.
texturesstringnoglTF/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_texturesstringnoglTF/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_modestringnoWith 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_colorstringnoglTF/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_dirstringnoglTF/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_qualityinteger or stringnoTexture encoding quality, a whole number from 1 (smallest) to 10 (best). Default: 8.
texture_max_sizeinteger or stringnoLargest texture side in pixels when textures are converted, such as 2048. Default: no limit; 0 or none removes a limit a preset sets.
texture_pow2booleannoResize converted textures to the nearest power of two (WebGL 1). Default: false.
lodsstringnoglTF/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.
instancingbooleannoglTF/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.
quantizestringnoWith compress or compress_fallback: standard (default), fine (more precise positions and normals, slightly larger) or off. One of: standard, fine, off.
simplify_modestringnoglTF/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_errornumber or stringnoglTF/GLB decimate in quality mode, and LOD files: maximum normalized simplification error (0.001 to 1.0, gltfpack -se). Default: 0.01.
lock_borderbooleannoglTF/GLB decimate: keep the open borders of the mesh in place while simplifying (default: true). LOD files always keep them.
compress_fallbackbooleannoglTF/GLB only: compress with a fallback for viewers without meshopt support (a larger file). Implies compress. Default: false.
keep_extrasbooleannoglTF/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.
strictbooleannoFail 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.
presetstringnoStart 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.
repairbooleannoRepair STEP/IGES/BREP surfaces before meshing (fixes broken edges and faces, closes small gaps). No effect on mesh sources such as STL or OBJ.
binarybooleannoUse binary output for STL/PLY (default: true).
overwritebooleannoReplace an output file that already exists (default: the existing file is kept and the new one is written beside it as name (1)).
skip_existingbooleannoLeave 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).

ParameterTypeRequiredDescription
input_pathstringyesAbsolute path to the source 3D file.
output_pathstringnoAbsolute path for the converted output file. Give this or output_dir.
output_dirstringnoAbsolute 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.
formatstringnoOutput 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.
qualitystringnoMesh 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.
angularnumber or stringnoAngular 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).
unitsstringnoTarget units for conversion. One of: mm, cm, in, m, ft.
up_axisstringnoRotate 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.
decimatenumber or stringnoReduce 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_mbnumber or stringnoglTF/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.
compressbooleannoglTF/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.
assemblystringnoSTEP 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.
texturesstringnoglTF/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_texturesstringnoglTF/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_modestringnoWith 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_colorstringnoglTF/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_dirstringnoglTF/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_qualityinteger or stringnoTexture encoding quality, a whole number from 1 (smallest) to 10 (best). Default: 8.
texture_max_sizeinteger or stringnoLargest texture side in pixels when textures are converted, such as 2048. Default: no limit; 0 or none removes a limit a preset sets.
texture_pow2booleannoResize converted textures to the nearest power of two (WebGL 1). Default: false.
lodsstringnoglTF/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.
instancingbooleannoglTF/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.
quantizestringnoWith compress or compress_fallback: standard (default), fine (more precise positions and normals, slightly larger) or off. One of: standard, fine, off.
simplify_modestringnoglTF/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_errornumber or stringnoglTF/GLB decimate in quality mode, and LOD files: maximum normalized simplification error (0.001 to 1.0, gltfpack -se). Default: 0.01.
lock_borderbooleannoglTF/GLB decimate: keep the open borders of the mesh in place while simplifying (default: true). LOD files always keep them.
compress_fallbackbooleannoglTF/GLB only: compress with a fallback for viewers without meshopt support (a larger file). Implies compress. Default: false.
keep_extrasbooleannoglTF/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.
strictbooleannoFail 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.
presetstringnoStart 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.
repairbooleannoRepair STEP/IGES/BREP surfaces before meshing (fixes broken edges and faces, closes small gaps). No effect on mesh sources such as STL or OBJ.
binarybooleannoUse binary output for STL/PLY (default: true).
overwritebooleannoReplace an output file that already exists (default: the existing file is kept and the new one is written beside it as name (1)).
skip_existingbooleannoLeave 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.

ParameterTypeRequiredDescription
input_pathstringyesAbsolute 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.

ParameterTypeRequiredDescription
input_pathstringyesAbsolute 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).

ParameterTypeRequiredDescription
input_pathstringyesAbsolute path to the 3D file.
extract_textures_dirstringnoglTF/GLB only: absolute folder to write every texture image into (WebP and KTX2 decoded to PNG); each texture then names its file.
check_coloursbooleannoSTEP 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).

ParameterTypeRequiredDescription
emailstringyesThe email address the license was bought with.
keystringyesThe 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.

ParameterTypeRequiredDescription
input_pathstringyesAbsolute path to the 3D file.
output_pathstringyesAbsolute PNG path; with several views each gets -<view> before .png; an existing folder gets <model>-<view>.png.
viewsarray of stringnoViews to draw (default front, side, top, iso).
sizeintegernoWidth and height in pixels (default 512). Range: 64 to 4096.