Appearance
DSL Reference
This section documents the current DSL helpers exported from trueform. The API is intentionally compact and data-first. For types, see src/dsl.ts.
Import
ts
import { context, document, part, exprLiteral } from "trueform/dsl/core";
import { sketch2d, profileRect, profileRef } from "trueform/dsl/sketch";
import { extrude, surface, cut } from "trueform/dsl/features";
import { selectorFace, predPlanar, rankMaxZ } from "trueform/dsl/selectors";
import { assembly, instance, mateFixed } from "trueform/dsl/assembly";
import { refFrame, refSurface, cosmeticThread, surfaceProfileConstraint } from "trueform/dsl/tolerancing";
import { featureArray, sketchArray } from "trueform/dsl/generators";Compatibility note:
trueform/dsl/geometryremains available as the broad legacy module.- Prefer
trueform/dsl/features,trueform/dsl/sketch, andtrueform/dsl/selectorsfor clearer intent. - If you prefer a single namespace, the
dslexport is still available fromtrueform.
Reference Pages
- Quickstart
- Gallery
- Core
- Assembly
- Tolerancing
- Geometry and Sketching
- Features
- Patterns
- Generators
- Selectors, Predicates, Ranking
- Examples
Runtime consumer docs:
Generated API Reference
You can generate a full API reference from TSDoc comments:
bash
npm run docs:apiThis emits static HTML to docs/public/api. When running VitePress, open /api/.