Skip to content
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.

Assembly.with_drawing

Add a consumer-authored native SolidCraft engineering drawing for one occurrence in the completed Assembly.

Related guide

Signature

Assembly.with_drawing(self, target, *, 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

Document one selected occurrence after composing the final Assembly, including deliberate standard-view layout, dimensions, notes and native title information.

Limits

target must already belong to the 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

  • target — Component occurrence already owned by this Assembly to document.
  • 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

assembly.with_drawing(left, name="Left bracket", views={"front": DrawingView(at=(62,128))}, dimensions=(DrawingDimension.faces("front", (-20,0,5), (20,0,5)),))