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

What it does, step by step. Click to zoom.

The drawing says what each dimension measures. Every NX dimension is associated to a drawing curve - a line, an arc or a point - stored at 1:1 in its view's 2D coordinates, and to that view. With the view's axes on the part, a line seen edge-on is a planar face, a full circle is a hole (a dimension to it measures to the axis), an arc is a radius, a point is a vertex, or the middle of an edge where the drawing point is the crown apex of a curved edge. The PMI is created associated to exactly those faces and edges, and NX's computed value must equal the drawing's.

Views as on the drawing. The main view keeps the drawing's axes; the others follow third-angle projection; the section view looks along its own arrows (found from the arrowheads and their legs in the front view); the isometric view is fitted to the drawing's isometric curves (four lightening holes drawn as ellipse pairs). Each PMI goes into the view its drawing view became, in an annotation plane facing that view, at the drawing's position and text size (sheet size divided by the view scale).

DrawingPMI
43 dimensions41 associated PMI dimensions; the 2 R0.13s as notes associated to their R.125 blend faces, which NX will not dimension
11 notesPMI notes; the 4 '.160' callouts lead to and are associated with the web face
2 point tablesPMI tables, 220 + 152 cells, widths and merged titles as drawn
Section A-Adynamic section at the cutting-plane line BL -7.5669, normal toward the viewer, the view's sectioning switched on

Verification re-opens the part and the drawing from disk and checks against expectations worked by hand from the drawing before the first run: count, value and text of every PMI, associativity, one view each and the right one, plane orientation, view orientations, tables cell by cell, the section's plane, side and that it is saved on, and where the drawn section fits the model best (a scan of cut positions). Negative controls: a PMI moved to the wrong view, the cut expected at the arrow tips, the reversed section normal.

What the verifier found in the inputs: the drawing's 4.08 is attached to a point 0.0045 in past the end of its own step line (the line ends give 4.07, which the part has). It also found that the Drawing to Model 1.0.0 part had no fillets in the three pockets beside the joggles (Blend Pocket had skipped their floors); Drawing to Model 1.0.1 fixes that, and this run uses the 1.0.1 part. Still open: the part's crown and joggle sit 0.004 to 0.028 in below the drawn section profile.