Skip to main content

Module operation

Module operation 

Source
Expand description

Drawing: a step describing a 2-D drawing of the part as the steps before it built it — its views, a section, the title block, and the dimensions, notes and centre marks added on its sheet. It changes nothing; the drawing is made from it when it is downloaded (crate::drawing::compose).

Edited, it shows its sheet in the viewport — laid in the world’s xy plane, a millimetre of paper to a unit, faced head on as a sketch’s plane is — and is annotated there, the way a sketch is dimensioned: a tool taken up in the dialog picks what the views show (vertices, circles’ centres, edges), the dimension then follows the pointer, and a click puts its value down. A value is dragged where it goes; Delete removes what is selected.

The sheet shown is the one downloaded, but for its date: laying it out is the costly part, so it is kept in the session for as long as the part and what the views depend on are the same (see [DrawingSession::show]).

Structs§

Drawing
Describes a drawing of the part: see DrawingArgs.
DrawingSession
What editing a drawing keeps between events, besides what is selected (see DrawingEditing).

Enums§

Tool
A tool for annotating the sheet.

Type Aliases§

DrawingEditing
What editing a drawing keeps: its session, and the annotations selected.