NX Automations · NX Open Python + Menu > Multi-Detail

Multi-Detail Cast Tray

Download 1.0.1

Builds every dash number of a multi-detail cast tray drawing as its own NX solid part, with the section-view wall angles and the raised cast part number, and checks each one against hand-worked numbers.

Verification passing on NX v2606.0.0.5001 · 2026-10-29 · repo c7a282c

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

The drawing becomes a spec (md/spec/cast_tray.json): the shared dimensions, then one row per dash number. Anything read rather than measured off the sheet is listed in the spec's assumed block.

1. Spec check. Nothing is built if a wall angle would lean outward, if a corner drop is below the bottom, or if the outline would fold. Every problem is listed.

2. Outline. The plan view's corners come from the drawing's numbers: the top edge, the 125 deg and 97 deg plan angles, and the per-dash height and right drop. The pocket is each wall moved its thickness inward.

3. Solid. An extrude of the outline, then the pocket is cut down to the floor. NX closes no section across the .045 step where the top wall thins, so the pocket is cut in two overlapping pieces.

4. Wall angles. One NX Draft feature tilts both faces of each section wall about its bottom line: the outside face by +a, the inside face by -a, so the wall leans into the pocket with its thickness unchanged. Point probes either side of every face confirm the direction on every build.

5. Details. .25 radius corner blends (after the draft, so they follow the leaning walls), then the part number as NX planar Text on the outside of the floor, extruded .010 and united. Attributes PART_NUMBER, DASH_NO and FAMILY.

6. Verify. Every number is read back from the saved part:

whathowexpected
corner positionsbody vertices at the floorhand-worked from the angles
wall anglesMeasureManager angle, floor to wall89.5 / 89.0, other walls 90
wall and floor thicknessray trace into the material.080, .125
volume, square-walled copyMeasureManageroutline minus pocket, plus corner fillets and letters
volume the wall angles movedrafted minus squaretan(a) z^2 / 2 per unit length of each face
STEPcount solids and faces1 solid, every face
part numberfirst and last character on the Bottom view's screen Xreads left to right

Negative controls: the square-walled copies fail both wall-angle checks, the part number written 180 deg round (as 1.0.0 had it) fails the reading check, the -25 part judged against the -27 numbers fails, a spec with an outward wall is refused, and building into a folder that holds the parts is refused.