This page documents the implementation preview on feature/pdf-draw-instructions, available in draft PR #71. It is not yet a released plugin feature. Production worker validation is tracked in ‣.
Use PDF Line Instruction, PDF Curve Instruction, PDF Text Instruction and PDF Bitmap Instruction on the existing PDF tab. Each component produces one instruction per matched item. Collect instructions with Grasshopper’s Merge component and feed the ordered list into Compose PDF.
Later instructions draw on top of earlier instructions. Repeated items draw repeatedly. Each matched branch creates a separate document; explicitly flatten the intended collection when it should produce one PDF. Tree paths do not select pages.
Compose PDF uses the existing paper sizes, orientation, page count, document unit and DPI. It defaults to millimetres and 300 DPI for print drawings; legacy Create Pdf Document remains at metres and 96 DPI. DPI affects coordinate precision and page rounding while physical drawing sizes stay unchanged. Paper bounds retain the precision of the existing paper-size table and are rounded to whole dots. All pages share the same paper settings. Each instruction selects a page starting at 1. The outputs are a PDF description and a page rectangle.
For 1:50, scale the model geometry by 0.02 upstream and move it to the intended paper location. A 5,000 mm line becomes 100 mm on paper. A 0.25 mm stroke and 12 pt label retain their sizes. Convert mixed source units upstream. Nothing is automatically fitted or centered.
PDF Curve Instruction has an optional Tolerance (T) in the composer’s document units, after upstream scaling. Leave it empty for the existing Modelup approximation. A supplied value must be finite and positive; it controls deviation from segment midpoints to the curve, with a 5-degree angle limit. Smaller tolerances can produce more segments. For example, 0.01 means 0.01 mm in a millimetre document, or 10 mm in a metre document. Explicit tolerance bypasses the legacy simplification and minimum segment length. Exact polylines retain their vertices, and both paths preserve the source curve.
The Grasshopper example has independent line, filled-arrowhead and label sources, an explicit Merge, and a two-page composer. The 100 mm line is the paper-space result of a 5,000 mm model line scaled by 1/50. The second label targets page 2.
The source guide describes all inputs, reuse, validation and compatibility.
Use the existing stream workflow:
modelup-drawing.pdf and Mime Type to application/pdf.