Files
Jason StedwellandClaude Opus 5.5 5b52636003 MPM Documentation Kit v1.3 (CW-034)
MPM Document Standard 1.3, mpmdoc build engine, templates for TN, INS, SOP,
BOM, SVY, TAP, DWG, TSB, PRO, SOW and WO (Chinese editions for TN and DWG),
glossary, MPM fonts and logos, and the mpm-technical-documents plugin 1.3.0.
Worked examples ship in the kit zip on Drive only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NWatTMmqmGatgHjDZvWs5b
2026-11-09 11:51:56 -06:00

51 lines
2.1 KiB
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"""TEMPLATE — Drawing sheet (DWG), 11×17 landscape. Copy this folder to <PROJECT>/source/ and fill it in.
Mechanical, mounting, cable or fit-out drawings someone will fabricate or approve from.
See MPM_Document_Standard.md §9.7. Each dwg.sheet(...) is one page; the title block, sheet numbers,
zone grid, revision history and confidentiality strip are automatic.
View area = 6 columns × 4 rows. Place each view with area="row-start / col-start / row-end / col-end"
(e.g. "1 / 1 / 5 / 3" = full height, left third).
"""
import sys, pathlib
HERE = pathlib.Path(__file__).resolve().parent
sys.path.insert(0, str(next(p / "_STANDARDS" for p in HERE.parents if (p / "_STANDARDS").is_dir())))
from mpmdoc import Drawing
from figs import FIGS
F = {k: f() for k, f in FIGS.items()}
dwg = Drawing(
number="DWG-MPM-SUBJ-01", rev="0.1", date="2026-11-06",
title="Wall-Plate Sign Bracket",
subtitle="Mounting bracket, general arrangement",
project="Project name", client="Customer", location="City, ST",
discipline="Mechanical drawing · Mounting",
drawn="JS", checked="—", approved="—",
slug="Customer_Sign-Bracket_GA",
history=[("0.1", "2026-11-06", "Initial issue for review.")],
)
dwg.sheet(
views=[
dwg.view(F["elevation"], 1, "Elevation · wall plate", "1:4", area="1 / 1 / 5 / 3"),
dwg.view(F["section"], 2, "Section A · side", "1:4", area="1 / 3 / 4 / 7"),
dwg.view(F["detail"], 3, "Detail B · anchor", "1:1", area="4 / 3 / 5 / 5"),
],
schedule=[ # (tag, designation, description, qty)
("B-1", "Wall plate", "6 mm HDG steel, 200 × 300", 1),
("A-1", "Arm", "60 × 60 × 4 SHS, HDG, 400 long", 1),
("F-1", "Anchor", "M12 wedge anchor, A4 stainless", 4),
],
notes=[
"All dimensions in mm unless noted. Do not scale from drawing.",
"Hot-dip galvanize all steel after fabrication.",
"Confirm wall / post construction before drilling.",
"Sign and its hanging hardware supplied by others.",
],
scale="As shown",
)
dwg.build()