Development version.
Forge is under active development and testing. APIs, behaviour, coverage and
verification results may be incomplete or change without notice; published
PASS results are not a support guarantee or production-readiness claim.
Occurrence.with_drawing
Add a consumer-authored native SolidCraft engineering drawing for this standalone occurrence.
Signature
Occurrence.with_drawing(self, *, name=None, template="iso-a4-part", sheet_name="Sheet 1", scale=None, gap_mm=20, views=None, properties=None, title_block=None, title_block_style=None, revision=None, notes=(), dimensions=())Use when
Create a complete native engineering drawing for a standalone part while keeping reusable component geometry drawing-free.
Limits
Returns a one-occurrence Assembly. Views are limited to the native front/top/right/iso standard set. Dimension picks must resolve to real native topology. Centre marks/centre lines, balloons and parts lists are not currently authored.
Parameters
name— Optional drawing name; also drives deterministic drawing artifact filenames.template— Native SolidCraft part template; defaults to iso-a4-part, with iso-a3-part available explicitly.sheet_name— First native sheet name; defaults to Sheet 1.scale— Optional common standard-view scale such as 1:1.gap_mm— Native standard-view spacing before explicit view edits; default 20.views— Mapping of front/top/right/iso to DrawingView placement/scale overrides.properties— Native drawing properties: project, part_number, revision, author, organization, description, license.title_block— Native title-block cell overrides supported by the selected SolidCraft template.title_block_style— Optional native title-block presentation: built-in or compact. Compact selects SolidCraft’s native compact 49 mm block.revision— Optional DrawingRevision row.notes— Iterable of DrawingNote objects.dimensions— Iterable of DrawingDimension objects.
Example
part.with_drawing(name="Bracket drawing", title_block_style="compact", views={"front": DrawingView(at=(62,128))}, notes=(DrawingNote("NOTES", at=(156,88)),))