Skip to content
getcadcraftPublic

About

Examples for the CadCraft apps: CraftScript in PartCraft, LISP routines in CadCraft, and recipes for the MCP server and the cadcraft command line. Each with a screenshot of the finished run.

Topics

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CadCraft examples

Scripts and recipes for the CadCraft apps that you can run, read and change: CraftScript in PartCraft, LISP routines in CadCraft, and recipes for the command line and the assistant (MCP) tools.

Layout (one folder per example):

examples/<slug>/
  README.md        what it does, which app and version, how to run it, what you should see
  <script>         the example itself: .craft, .lsp, or recipe.mjs / recipe.md
  step file        (optional) the input file it needs: a .dxf, .dwg, .ifc, .pdf or .json, small enough to keep here
  screenshot.png   what the finished run looks like

The examples

Example App What it shows
cantilever-stress PartCraft, CraftScript a cantilever meshed with cubes and solved at four element sizes, against beam theory
capacitor-field PartCraft, CraftScript the potential and field round two plates, capacitance with fringing
channel-flow PartCraft, CraftScript lattice Boltzmann flow past a post in a channel
box-area CadCraft, LISP BOXAREA: draw a rectangle with (command …) and print its area
number-tags CadCraft, LISP NTAG: numbered tags at picked points, numbering kept between runs
layer-split CadCraft, LISP LAYSPLIT: every object to a layer named after its type
mcp-tidy-a-drawing MCP server what an AI assistant does to check, fix and plot a drawing, step by step
cli-check-standards command line office standards in a JSON file, cadcraft check, a fix with cadcraft run
cli-convert-and-plot command line cadcraft convert to DWG 2013 and cadcraft plot to a PDF at 1:25

The apps run in the browser at getcadcraft.com/use and in CadCraft Studio. The MCP server and the cadcraft command line are the npm package @getcadcraft/mcp.

_template/ is an empty example to copy. node tools/check-examples.mjs checks every folder (README with the required headings, a script, a screenshot for anything marked status: ready).

Contributions are welcome: see CONTRIBUTING.md. Everything here is Apache-2.0 unless a folder's README says otherwise.

About

Examples for the CadCraft apps: CraftScript in PartCraft, LISP routines in CadCraft, and recipes for the MCP server and the cadcraft command line. Each with a screenshot of the finished run.

Topics

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages