# How to generate a STEP file from a JSON command script with solidcraft

Repo: [tangency-labs/solidcraft](https://github.com/tangency-labs/solidcraft) | Difficulty: Intermediate | Time: 1 hour | Basis: From the README

Run a saved JSON command list from the CLI so the same part can be rebuilt on demand, no GUI.

**Who it is for:** Developer or engineer who wants repeatable CAD output in a build pipeline

**The problem:** Clicking through a CAD GUI cannot be versioned, reviewed or automated.

**The outcome:** A text script in git that deterministically produces a STEP file you can hand to a manufacturer.

## Steps

1. Build from source: cargo run --release -p solidcraft-cli -- commands to list available commands.
2. Study the example script at examples/bracket.json.
3. Run it: cargo run --release -p solidcraft-cli -- run examples/bracket.json --out bracket.step
4. Edit a dimension in the JSON and rerun to confirm the output changes.

## Prompt to paste into your agent

```text
In the solidcraft repo, read docs/scripts.md and examples/bracket.json, then write a new script for <part description> and run it with solidcraft-cli to produce a STEP file. Verify the output file exists and opens.
```

## Caveat

Scripts are a list of the same commands the UI runs, so you need to look up command names from the registry rather than guess them.

Disclaimer: Third-party repos we don't own or vouch for. AI-generated use cases can be wrong: review everything and run at your own risk. Full text: https://dedupedai.com/disclaimer/

URL: https://dedupedai.com/use-cases/tangency-labs-solidcraft/batch-build-a-part-from-a-json-script/
