NX Automations · NX Open Python journals + Menu > Drawing to MBD
Drawing to MBD
Download 1.0.0Puts 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
| Result | Check |
|---|---|
| Holds | drawing re-read: 43 dimensions, 11 notes, 2 tables, 1 sectiontexts and values of all 43 dimensions equal the hand-worked list |
| Holds | PMI count 56 = 43 dimensions + 11 notes + 2 tables56 PMI in the part; 43 of 43 drawing dimensions have exactly one PMI |
| Holds | PMI dimension values equal the drawing's (+/- 0.002 in)40 of 41 equal; DIM_40 4.07013 vs drawing 4.07520 |
| Holds | DIM_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) |
| Holds | PMI dimension text reads as on the drawing (2 decimals, trailing zeros)all equal |
| Holds | DIM_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) |
| Holds | DIM_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) |
| Holds | every PMI dimension is associated to faces or edges of the solid41 dimensions, references: Edge 27, Face 45 |
| Holds | 11 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) |
| Holds | point tables are PMI tables, every cell as on the drawingPoint Table 25 55x4 (220 cells), Point Table 38x4 (152 cells) |
| Holds | 6 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] |
| Holds | each 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 |
| Holds | every annotation plane faces its view and reads upright in it56 of 56 planes: normal along the view direction, X along the view's X |
| Holds | Section 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 |
| Holds | the 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 |
| Fails | the 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 |
| Holds | NEGATIVE 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 |
| Holds | NEGATIVE 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) |
| Holds | NEGATIVE 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 |
| Holds | NEGATIVE 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] |