Skip to main content

Introduction

ClassCAD is a CAD engine without a user interface. Your program builds and changes models through its API: parts, sketches, features, assemblies and drawings. The engine computes the geometry and returns it ready to render.

It runs in two ways, with the same API:

WebAssemblyNative
Runsin the browser, in a Web Worker of your pageon your server; the ClassCAD server starts an engine per session
Connectnew WASMClient(id, { token })new SocketIOClient('ws://…:9091', id)
Keyfetched with a public access tokenfetched with a secret access token; offline, a key file next to the engine
Allowedlocalhost; your domains with Pro and Businessany machine you run it on, with Business
Used forconfigurators and editors in a web pageservices, batch jobs, large models, many users

A program written for one runs on the other; only the line that connects changes.

const part = await api.v1.part.create({ name: 'Flange' })