API Reference
CAD Sketcher stores data in two layers (see the code documentation). The curve model is the source of truth for 2D sketch geometry; the entity model is the legacy layer, still live for origins, 3D entities, workplanes, sketches and type identity.
Curve model
The active accessors for sketch geometry. A reference is a lightweight
(sketch, curve_id) view that resolves live curve attributes on each access.
Sketch
Lightweight accessor wrapping a Blender Curves Object as a sketch.
curve_ref(sketch, curve_id)
Create the appropriate typed CurveRef subclass for a curve_id.
Returns PointRef, LineRef, ArcRef, or CircleRef based on the sketch_type attribute, or a base CurveRef if the type is unknown.
CurveRef
Base accessor for a curve element within a sketch.
Provides identity, validity check, type queries, and shared helpers.
Use the curve_ref() factory instead of instantiating directly.
PointRef
Accessor for a point curve (1-point curve).
LineRef
Accessor for a line curve (2-point curve with start/end relationships).
ArcRef
Accessor for an arc curve (multi-point bezier with center, start, end).
CircleRef
Accessor for a circle curve (cyclic bezier with center).
Entity model (legacy layer)
SketcherProps
The base structure for CAD Sketcher
SlvsEntities
Holds all Solvespace Entities