An AI-first, SolidWorks-parity parametric CAD system for macOS 27 (Apple Silicon), built on
Open CASCADE, Swift 6 and Metal. Every capability is a typed command on a single command
bus, reachable from the UI, scripts, forge-cli and MCP alike.
- Spec: SPEC.md · Parity matrix: FEATURES.md · Status: PROGRESS.md · Decisions: docs/adr/ · Licenses: docs/LICENSES.md
- Milestone: M0 foundations are implemented; M1 sketching and M2 part modeling are in progress. This is a multi-year project; see FEATURES.md for the honest state of every SolidWorks capability.
Zoom to Selection is available in the desktop View menu, viewport controls and body
context menu. It frames selected visible bodies, faces, edges, vertices and sketch
geometry while preserving orientation and projection, with Previous View restoring
the old camera. Empty or fully hidden selections leave the view unchanged.
view.zoom_to_selection (MCP zoom_to_selection) returns bounds and a camera that
can be supplied as view.camera to rendering and picking commands. Sketch bounds
use sampled display outlines; rectangle zoom-to-area remains pending.
Sources/
CForgeKernel/ C++20 bridge over OCCT with a pure C ABI (include/forge_kernel.h)
ForgeCore/ JSON values, structured errors, units, schema extraction, geometry math
ForgeKernel/ Swift wrapper: Shape, Mesh, Kernel (no OCCT types leak)
ForgeSketch/ 2D sketches: entities, constraint solver (DOF, conflicts), profiles
ForgeCommands/ Command protocol + registry, Engine (undo/redo, transactions, dry-run, batch)
ForgeRender/ Camera, headless software renderer + PNG, picking, Metal viewport (macOS)
ForgeMCP/ MCP server (stdio + Unix socket), tools generated from the command registry
forge-cli/ Headless engine CLI
ForgeApp/ SwiftUI shell (macOS only)
Tests/ Swift Testing suites + GoldenModelTests/Models/*.json
scripts/ build-occt.sh, bootstrap-linux.sh, install-linux.sh, make-app-bundle.sh, features.py
macOS 27 with Xcode 27:
scripts/build-occt.sh # OCCT 8.0.1 → Vendor/occt/darwin-arm64 (+ xcframeworks)
swift build && swift test
swift run ForgeApp # or scripts/make-app-bundle.sh → build/Forge.appLinux desktop (CachyOS / Arch, Ubuntu) — the app forge (GTK 4 + OpenGL) and forge-cli:
scripts/install-linux.sh # packages, swift.org toolchain, release build → ~/.local
forge # or Forge in the application menuLinux development (engine + app, CI):
scripts/bootstrap-linux.sh # Swift 6.4.0 + Ubuntu OCCT 7.6 + GTK 4 packages
export PATH=/opt/swift/usr/bin:$PATH
swift build && swift test
# or against a self-built OCCT: FORGE_OCCT_PREFIX=/opt/occt-8.0.1 swift buildforge-cli commands # every command
forge-cli describe body.create_box # JSON Schemas, errors, examples
forge-cli run Tests/GoldenModelTests/Models/*.json # scripts with expectations
forge-cli exec body.create_cylinder '{"radius": "0.5 in", "height": 20}'
forge-cli mcp [--socket /tmp/forge.sock] # MCP server (stdio + optional socket)MCP client configuration (e.g. Claude Code): claude mcp add forge -- /path/to/forge-cli mcp.
MCP feature workflows are available directly through get_feature_tree, get_feature,
get_feature_dependencies, reorder_feature, edit_feature, rename_feature,
suppress_feature, rollback_features, repair_reference, and rebuild. Read or subscribe to forge://document/features for parameters and rebuild
status. Create a document before an atomic batch; save/export and document switching
must be separate calls (or explicitly non-atomic). Failed batches return isError: true
and a structured failed_index; a non-atomic batch can retain earlier successful edits.
Use File → Import STEP (or MCP import_step / command document.import_step)
in a new part before creating sketches or features. Repeated imports can add more solid
bodies before modeling starts. Original imported BREP is embedded in schema-3 documents,
so later rebuilds do not need the source STEP file. Assembly structure, PMI, source
names/colors, surface-only files and automatic healing are not imported.
Feature context menus provide Parent/Child, Move Up and Move Down. The
matching feature.dependencies and feature.reorder commands inspect direct/transitive
relationships and validate proposed moves before committing. Reordering requires the
rollback bar at the end, preserves dependencies and output ids, and refuses invalid
rebuilds. Some geometrically possible moves are deliberately refused when implicit
all-body scopes would change.
Interference Detection checks all bodies, or a selected subset, and lists overlap
volume in mm³; selecting a result highlights both bodies. MCP check_interference and
command query.interference return exact BREP overlap volumes and bounding boxes.
Touching alone is not interference. Calls support at most 100 bodies; this is a
multibody part check, not assembly interference or collision during motion.
The workflow parity audit describes remaining SolidWorks functionality and acceptance criteria. This remains an early part modeler.
A script is JSON: {"forge_script": 1, "commands": [{"command": "...", "params": {...}}], "expect": {"bodies": [{"body": "body-1", "volume_mm3": {"value": 1000, "tol": 1e-6}}]}}.
Select a planar part face and choose Features → Sketch on Face to draw directly on it. Normal To aligns the view with a selected face or reference plane even without opening a sketch. In sketch mode, Select Model Geometry lets you pick part edges or faces; Convert Entities copies their projected boundaries into the sketch. These are detached copies, not associative links; lines and parallel circles/arcs are supported. Split Entities uses one click for lines/arcs and two clicks on a closed circle/ellipse.
Move/Copy Bodies provides translation and optional rotation, copy, preview and
feature editing. Extrusion pages support Up To Vertex with model-coordinate
inputs in either direction. Body and feature tree menus include Rename on all
platforms. Lost sketch supports now block dependent features; use
feature.repair_reference to attach the sketch to a replacement planar support.
The complete modeling gap inventory accounts for all 1,000 matrix entries and documents remaining work.
Measure accepts one face, edge, vertex or body for its size/coordinates, or two
for minimum distance and closest points. The MCP measure tool uses from and an
optional to; sizes and distances use millimeters. Choose Angle (0–90°) for two
planar faces or straight edges, including mixed pairs. MCP measure and query.measure
accept mode: "angle" and return angle_degrees. Angles use unoriented supporting
planes/lines: parallel or antiparallel geometry gives 0°, perpendicular geometry gives
90°; a line normal to a plane gives 90°. Curved faces/edges, degenerate edges, bodies
and vertices produce explicit unsupported-geometry errors in angle mode. Omit mode
or use "distance" for the existing behavior. Maximum/normal-distance modes remain pending.
Use the body tree or Features → Visibility to hide/show bodies, isolate a selection, exit isolation or show all bodies. Hidden bodies are excluded from drawing and picking; they still participate in modeling, measurements and exports. Ordinary hidden state is saved; isolation is temporary and restores the prior visibility when exited.
The Slot tool offers straight, centerpoint straight, centerpoint arc and three-point arc
variants. Curved slots use center/start/end/width or start/end/through/width clicks,
respect construction mode and remain editable with sketch dimensions and relations.
The typed command is sketch.add_arc_slot; it rejects collapsed or self-overlapping slots.
Extrusion now supports Selected Contours: choose closed regions from the checklist
or enable Pick Regions in View and click inside them. Holes stay attached to their
outer region; nested islands are independent. MCP sketch.regions returns stable
selector arrays for body.extrude.contours. Crossing/branching geometry is not split
into intersection cells; changed contour membership produces an explicit reference error.
Up To Surface and Offset From Surface accept planar faces and reference planes, including tilted planes, in either direction. Pick a face/plane, then use Use Selected Face/Plane. Offset is perpendicular to the limiting plane; Beyond surface reverses it. The face's supporting plane is extended. Curved limits and draft with these end conditions remain unsupported.
The Selection ribbon offers All Geometry/Bodies/Faces/Edges filters. Click in the
viewport, then Select Other or Tab to cycle candidates behind the first hit.
Hidden bodies are excluded; other selected entities remain selected. Filters are session
preferences and do not restrict tree/explicit selections. MCP commands are
selection.set_filter and view.pick_candidates; the existing view.pick stays compatible.
