Skip to main content

Module session

Module session 

Source
Expand description

A sketch’s solved document, plane, diagnostics, and interaction state.

Structs§

SketchSession
State for one active sketch.

Functions§

constraint_ref
Build a {"kind":"constraint","id":<id>} entity ref — a CONSTRAINT is selectable like a point/geometry (picked near its glyph or dimension leader) so it can be emphasized + deleted; deleting it drops only the constraint, never its geometry.
entity_ref_eq
Whether two optional entity refs are equal (both absent, or both present and refs_equal) — the hover-changed test.
geometry_ref
Build a {"kind":"geometry","id":<id>} entity ref.
point_ref
Build a {"kind":"point","id":<id>} entity ref.
refs_equal
Whether two entity refs name the same entity (same kind, same id under id_key).