Skip to main content

Module drawing

Module drawing 

Source
Expand description

What a drawing shows (DrawingArgs), and composing it on a sheet (compose): the views laid out in third- or first-angle projection, each with its visible and hidden lines, centre marks on its circles and its overall size dimensioned, the dimensions asked for, a section view with its cut hatched, a border and a title block — and, if asked for, the parts list of the parts placed in it above the title block, each line ballooned where its part is drawn.

Structs§

DrawingArgs
What a drawing of a part shows.
Layout
A drawing laid out on its sheet: the sheet with everything on it but the annotations, where its views are placed on it, the scale they are drawn at, and what can be picked in them to annotate (see Candidate).
PartsListLine
A line of a drawing’s bill of materials: a kind of part placed — its item number, how many there are, what it is called, what it is ordered as (ISO 4762 M4x12, empty for a part that is made) and made of — and where it is placed, as the entities of placed parts are named: screw, arm/screw for one placed in the part placed as arm, "" for the part drawn. Who lists the parts placed is the caller’s: the drawing lays them out, and balloons them where they are placed.
Projected
A drawing’s views projected, each with its lines visible and hidden — and the section’s, with its cut faces to hatch: what laying a drawing out costs. It depends on no more of the drawing’s arguments than Projected::depends_on keeps, so changing the paper, the scale, the title block or the bill of materials projects nothing again.

Enums§

Projection
Which side of the front view the other views go.
SheetSize
The paper, in landscape.

Constants§

SCALES
The scales a drawing is made at, largest first.

Functions§

annotated
layout‘s sheet, of part, with args’ annotations drawn on it (see compose).
arrange
The views projected of part laid out on the sheet args describe (see layout), dated date, with parts its bill of materials if args asks for one.
compose
The part’s drawing as args describe it, dated date, with parts its bill of materials if args asks for one: its layout (see layout), with its annotations drawn on it. One that does not resolve — its view gone, an entity it names gone — is refused, naming it.
drawn_faces
The faces a drawing of part shows: every face of its solids and sheets, in a fixed order.
layout
The part’s drawing as args describe it, without its annotations (see compose): its views projected (see project) and laid out (see arrange), dated date, with parts its bill of materials if args asks for one.
length_label
A length as written on a drawing: to a hundredth, without trailing zeros.
project
The views of part that args ask for, projected (see Projected): its own solids and sheets, and every part placed in it, however deep, where it is placed (see Scene).
scale_label
A scale as written: 1:2, 5:1.