NX Automations · NX Open Python journals + Menu > Drawing to MBD

Drawing to MBD

Download 1.0.0

Puts every dimension, note and point table of a 2D NX drawing onto its 3D part as PMI, in model views that match the drawing's views, with each section view really cut, then checks the result against the drawing by reading both back.

Verification NOT passing on NX v2606.0.0.5001 · 2026-10-05 · repo a2ef7fa

Expected values worked by hand before the run, results read back from NX, and deliberate failures that must be caught. Run by the session that built it, on the repo commit below with a clean tree; imported here unchanged.

NX
v2606.0.0.5001
Version
1.0.0 · chrisdamonmartini/nx-drawing-to-mbd @ a2ef7fa
Run
2026-10-05T00:16:35Z
Checks
19 of 20 hold
Overall
Not passing
ResultCheck
Holdsdrawing re-read: 43 dimensions, 11 notes, 2 tables, 1 sectiontexts and values of all 43 dimensions equal the hand-worked list
HoldsPMI count 56 = 43 dimensions + 11 notes + 2 tables56 PMI in the part; 43 of 43 drawing dimensions have exactly one PMI
HoldsPMI dimension values equal the drawing's (+/- 0.002 in)40 of 41 equal; DIM_40 4.07013 vs drawing 4.07520
HoldsDIM_40 differs because the drawing contradicts itselfthe drawing's dimension is attached to a Point [0.0045] in past the end of the line it dimensions; from the line ends it measures 4.07077, which is the PMI's 4.07013 (drawing text value 4.07520)
HoldsPMI dimension text reads as on the drawing (2 decimals, trailing zeros)all equal
HoldsDIM_01 (0.13) kept as a note on the face it sizesPmiLabel; text 'R0.13'; the face's radius is 0.12500, drawing 0.12507. NX refused a radius dimension on this blend face (UF type 23)
HoldsDIM_02 (0.13) kept as a note on the face it sizesPmiLabel; text 'R0.13'; the face's radius is 0.12500, drawing 0.12507. NX refused a radius dimension on this blend face (UF type 23)
Holdsevery PMI dimension is associated to faces or edges of the solid41 dimensions, references: Edge 27, Face 45
Holds11 drawing notes are PMI notes with the drawing's textall equal; 4 thickness callouts lead to and are associated with a web face (NOTE_02, NOTE_03, NOTE_04, NOTE_05)
Holdspoint tables are PMI tables, every cell as on the drawingPoint Table 25 55x4 (220 cells), Point Table 38x4 (152 cells)
Holds6 model views named and oriented as the drawing's (third angle, section from its arrows, isometric fitted)Front view [1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0]; Top view [1.0, 0.0, 0.0, 0.0, 0.0, -1.0, -0.0, 1.0, 0.0]; Bottom view [1.0, 0.0, 0.0, -0.0, 0.0, 1.0, 0.0, -1.0, 0.0]; Section view A-A [0.0, 0.0, -1.0, 0.0, 1.0, 0.0, 1.0, -0.0, 0.0]; Isometric view [0.9378, 0.0808, -0.3375, -0.2309, 0.8714, -0.4329, 0.2591, 0.4839, 0.8359]; Notes and tables [1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0]
Holdseach PMI is in exactly one model view, the one its drawing view became56 of 56 checked; per view: Bottom view 2, Front view 37, Isometric view 1, Notes and tables 2, Section view A-A 7, Top view 7
Holdsevery annotation plane faces its view and reads upright in it56 of 56 planes: normal along the view direction, X along the view's X
HoldsSection view A-A is sectioned: one clip plane at BL -7.5669, saved as the view's active section, clipping the near sideorigin [-7.56689, 7.76483, 0.0], normal [1.0, 0.0, 0.0], the view's sectioning on True, one plane True; normal against the line of sight [-1, 0, 0] (clips the material between the viewer and the cut, keeps BL < cut): True; other views with a section: none
Holdsthe drawing's section A-A fits the model best where the saved plane cuts itthe section view's top outline (26 stations across FS) against the model's top surface on planes BL -9.5..-5.5 in 0.1 steps: best at BL -7.5 (median gap 0.0023 in); the saved plane BL -7.5669: 0.0055 in
Failsthe model's profile at the saved plane is the drawn section A-A (median gap <= 0.005 in)median gap 0.0055 in over 26 stations; model minus drawing per station (section-view x): x -1.25 -0.0276, x -1.15 -0.0219, x -1.05 -0.0168, x -0.95 -0.0142, x -0.85 -0.0094, x -0.75 -0.0047, x -0.65 -0.0021, x -0.55 -0.1084, x -0.45 -0.0062, x -0.35 -0.0058, x -0.25 -0.0046, x -0.15 -0.0026, x -0.05 -0.0005, x +0.05 -0.0005, x +0.15 -0.0036, x +0.25 -0.0055, x +0.35 -0.0066, x +0.45 -0.0068, x +0.55 -0.0063, x +0.65 -0.0057, x +0.75 -0.0050, x +0.85 -0.0043, x +0.95 -0.0039, x +1.05 -0.0024, x +1.15 -0.0033, x +1.25 -0.0055. This measures the 3D part against the drawn section, not the section plane
HoldsNEGATIVE CONTROL: the same outline against a cut at BL -8.9169 (the arrow tips) must not matchmedian gap 0.0852 in there, 0.0055 in at the saved plane
HoldsNEGATIVE CONTROL: the section check with the cut expected at BL -8.9169 must failcheck returned False (origin [-7.56689, 7.76483, 0.0], normal [1.0, 0.0, 0.0], the view's sectioning on True, one plane True)
HoldsNEGATIVE CONTROL: the same section with its normal reversed (the GUI showed it uncut) must fail the side checkside check on the reversed normal [-1.0, -0.0, -0.0] returned False
HoldsNEGATIVE CONTROL: DIM_30 moved to the Top view (not saved) must be caughtmembership check now reports: DIM_30_0_06 in ['Top view'], expected [Front view]

In the NX window

Section view A-A activated from the Part Navigator: the part cut at the drawing's cutting-plane line (BL -7.5669), with the section's PMI: 0.16 web, 0.06 rib, R0.12 and R0.13 fillets (Drawing to Model 1.0.0 part)
Front view model view: the drawing's front-view dimensions on the part, at the drawing's positions and text size
Isometric view model view, oriented by a fit to the drawing's own isometric view
Top view model view: 2.60 depth, the three joggles' 0.80, and 4.07 / 1.71 on STEP3
Bottom view model view: 2.60 at the end flange
Notes and tables model view: both point tables as PMI tables, cell for cell
The source drawing in NX (template title block removed)
Menu > Drawing to MBD: build, verify, and show each model view
Build: every drawing dimension with its view and the geometry it was attached to
Verify in NX, run on the Drawing to Model 1.0.0 part: 18 of 20, 4 negative controls (on the 1.0.1 part it is 19 of 20, verification.json)
MBD Navigator: the PMI dimensions with Section view A-A active
Found on the way: with the section normal along the line of sight NX kept the near side (the selected face is the right flange, BL > 0)
Edit Section > Reverse Direction shows the cut: the normal must point toward the viewer