Skip to main content

plan

Function plan 

Source
pub fn plan(analysis: &Analysis, spec: &Spec) -> Result<Plan, Invalid>
Expand description

Plans the sheet: which views, where, at what scale and on what sheet, as draftwright’s layout does (layout): each principal view is a block of its box and the annotation bands reserved around it, packed third-angle; the isometric takes the largest space left. Each choice the spec leaves open is marked as a default, with the reason for it.

The bands, the turned-part view set and section A–A come from the features (crate::demand); the height ladder is sized for the steps legible at the scale chosen. The scale and sheet are draftwright’s first choice, before it re-plans on its finished drawing’s findings. That recovery is recover, applied by plan_recovered, never here: its tries are plans made by this function (ISSUE-1299-a).