classcad 21.2.0·headless
ClassCAD is CAD without the screen. Your program asks, and it answers with exact, parametric geometry, on a server, in a worker, or as WebAssembly in a browser tab.
264 methods7 domains3 runtimes5 platforms →
01One API
api.v1.<domain>.<method>({ … }): 264 methods in seven domains. The same names from JavaScript, Python and .NET, the same on every runtime.
api.v10 methods
- .part0
- .assembly0
- .sketch0
- .common0
- .curve0
- .solid0
- .drawing2d0
02Any runtime
Run it as a server your apps connect to, as a worker beside your code, or as WebAssembly inside a browser tab. Where it runs is one line; the program doesn't change.
- const { SocketIOClient } = require('@classcad/api-js-connector')
- const client = new SocketIOClient({ url: 'ws://127.0.0.1:9091' })
- await client.connect()
- const api = client.getApiU()
- const part = await api.v1.part.create({ name: 'My First Part' })
03Features
Sketch, extrude, cut, round, repeat. A ClassCAD part is the list of features that made it, kept in order. Here they are, each drawn from the geometry the engine returned for it: red is what the feature made. Five more are in testing.
api.v1.part0 features
- Sketch
part.sketch - Extrusion
part.extrusion - Revolve
part.revolve - Twist
part.twist - Box
part.box - Cylinder
part.cylinder - Cone
part.cone - Sphere
part.sphere - Union
part.boolean - Subtraction
part.boolean - Intersection
part.boolean - Fillet
part.fillet - Chamfer
part.chamfer - Slice
part.slice - Slice by sheet
part.sliceBySheet - Mirror
part.mirror - Linear pattern
part.linearPattern - Circular pattern
part.circularPattern - Translation
part.translation - Rotation
part.rotation - Work plane
part.workPlane - Work axis
part.workAxis - Work point
part.workPoint - Work CSys
part.workCSys - Loft*in testing
- Sweep*in testing
- Pipe*in testing
- Helix*in testing
- Shell*in testing
Key
- what the feature made
- hidden
- taken away, or moved
- an axis, a path
- *
- in testing, coming soon
04Parametric
Any number in a model can be an expression, and every feature remembers how it was made. Drag a value below: the bolt circle, the holes and the section all follow, as they would in ClassCAD.
Expressionsdrag a value
- od
- bore
- n
- t
- pcd
(od + bore) / 260- d
0.09 * od8.3- ≤
bore ≤ od − 48holds
part.updateExpression · the history replays
05Exact, and out
Models are boundary representations on NURBS, not meshes. Read the files your customers already have; write the ones their machines and drawings want.
In · common.load
- OFBits own: the whole history
- STEPfrom any CAD system
- STLas a mesh, for display
Out · common.save · drawing2d
- OFBhistory, expressions, all of it
- STEPAP203 · AP214 · AP242
- DXFR2000 to 2013, and drawings
- SVGdrawings, hidden lines removed
- STLfor printing
- SCG
06Lineage
ClassCAD was never a startup’s first draft. It grew up inside other people’s CAD, kernel by kernel, and stayed.
07Get it
01 · Key
A key in a minute.
Sign up, confirm your email, and make a key: native for your servers, WebAssembly for the origins you name.
Get a free key03 · Plan
Priced to be used.
- Freenon-commercial use
- CHF 100a year, commercial use
- CHF 5,000a year, to ship it in your product