Expand description
Reference geometry as an operation of a program (see
[geop_ops::operation]): AddDatum builds a point, an axis, a plane
or a coordinate system from entities picked in the part, in one of the
ways CAD systems commonly offer (see Construction).
Structs§
- AddDatum
- Adds a datum to the part, named by the operation’s id: a point, an
axis, a plane or a coordinate system built from the selected entities by
one of the
Constructions. Like a sketch’s plane, it is built when the step runs and stays where it was, whatever later steps do to what it was built from. - AddDatum
Args - Construction
Schema - One way to build a datum (see
Construction): what it builds, what it needs selected — one entity per input, in any order — and the values it takes besides. - Geometry
- Everything an entity can be used as. An entity is usually several at once: a straight edge is a line and a curve, a circular edge an arc, a curve and something round, a datum point a point and a frame, a datum frame the same.
- Param
- A value a construction takes besides its selection.
- Selection
Fit - What an editor offers for a selection: what each entity can be used as, and which constructions fit — by the same matching a step applies.
Enums§
- Construction
- How a datum is built from its selection: one variant per way,
with the values it takes besides. Serialized with its method:
{"method": "offset", "distance": 1.0}. - Param
Kind - What kind of value a construction takes besides its selection.
- Role
- What a construction needs an input to be.
Constants§
- CONSTRUCTIONS
- Every
Construction, described for an editor.
Functions§
- inspect_
selection - Which constructions fit
selectioninpart(seeSelectionFit).