16 Product Manufacturing Information
Tolerances, datums and dimensions — the information that makes a model manufacturable — and the two entirely different ways a STEP file can carry them: as pictures of symbols, or as data. Why AP242 exists, in one chapter.
A B-rep says what a part’s nominal shape is. It does not say how far a real part may deviate from that shape and still be acceptable, which surfaces must be flat and how flat, which holes must line up with which faces and how closely. That information is product manufacturing information, PMI: dimensions, geometric tolerances, notes, surface texture and the other manufacturing requirements, of which geometric dimensioning and tolerancing, GD&T, is the largest part. It lived for a century on drawings, and moving it into the 3D model is the whole project of model-based definition. AP242 was created, more than for any other reason, to carry it.
A manufactured part never matches its model exactly. GD&T is the language for saying how much mismatch is allowed, in a way that a machinist, an inspector and a designer all read the same way. Its core ideas:
Features are the physical surfaces of the part — a face, a hole, a slot — as opposed to the model’s ideal geometry.
Datums are theoretically exact references derived from real features. A datum feature is the actual surface (the bottom face of the bracket, say), and the datum is the perfect plane that surface is taken to represent. Datums are labelled A, B, C.
A datum reference frame is an ordered set of datums — primary, secondary, tertiary, as many as the tolerance needs — that locates the part for that tolerance. A|B|C means: sit the part on A, slide it against B, then against C. Order matters because it decides which contact takes precedence.
A feature control frame is the rectangular box on a drawing that states one tolerance: a characteristic symbol (position, flatness, perpendicularity, and eleven others, each with its own glyph), a tolerance zone (a width or a diameter within which the feature’s real surface or axis must lie), optional modifiers (the circled M, “maximum material condition,” lets the zone grow as the feature departs from the size at which it holds the most material — largest for a shaft, smallest for a hole), and the datum references the tolerance is measured against.
Dimensions give sizes and locations, each with a plus/minus tolerance or a fit class.
Two standards say how to write all this: ASME Y14.5 in North America and the ISO GPS family (ISO 1101 and its neighbours) elsewhere. They agree on most symbols and differ in some default rules, which is why a file with semantic PMI names the standard it follows, in an APPLIED_ attached to the part’s product definition.
16.1 Two kinds of PMI
STEP can carry a tolerance in two ways, and the difference is the single most important thing in this chapter.
Graphical (presentation) PMI is the feature control frame as a drawing: the lines that make up the box, the symbol and the text, positioned in 3D space near the feature. A viewer can display it. Nothing can read it: the “0.2” is a set of line segments in the shape of digits. Every CAD system can export this, and every viewer can show it, and it carries exactly as much meaning as a photograph of a drawing.
Semantic (representation) PMI is the tolerance as data: a POSITION_ record with a magnitude of 0.2 millimetres, referring to a SHAPE_ that is linked to a specific face, with a datum system whose datums are linked to other faces. A program can read it, check it, feed it to an inspection planner. Only some systems export it and only some readers consume it. AP214 and AP203 second edition already carry the basic tolerance records; what AP242 adds is the datum system — DATUM_ and its compartments — and the tolerance modifiers; the record that links semantic data to a drawn callout, DRAUGHTING_, is already in all three.
A file may have either, both, or — best — both with a link from each graphical callout to the semantic data it depicts. The CAx Implementor Forum’s PMI recommended practice specifies how to write all three, and the records below follow it. (They are written to that pattern rather than exported, since the exporter used for the running example does not write PMI. They tolerance the hole in the bracket of Chapter 11, and all of them are in bracket-pmi.step, after the bracket’s geometry exported as AP242; Open CASCADE’s PMI reader recovers from that file every datum, tolerance and dimension described below.)
16.2 Graphical PMI
A callout is drawn with curves collected under an annotation occurrence:
#600 = ANNOTATION_CURVE_OCCURRENCE('position callout',(#601),#605);
#601 = PRESENTATION_STYLE_ASSIGNMENT((#602));
#602 = CURVE_STYLE('',#603,POSITIVE_LENGTH_MEASURE(0.13),#604);
#603 = DRAUGHTING_PRE_DEFINED_CURVE_FONT('continuous');
#604 = COLOUR_RGB('',0.,0.,0.);
#605 = GEOMETRIC_CURVE_SET('position',(#606,#607));
#606 = POLYLINE('',(#620,#621,#622,#623,#620)); /* the frame's box */
#607 = POLYLINE('',(#624,#625)); /* its first divider */Referred to above: 6 records from bracket-pmi.step
#620 = CARTESIAN_POINT('',(35.,7.,10.));
#621 = CARTESIAN_POINT('',(55.,7.,10.));
#622 = CARTESIAN_POINT('',(55.,13.,10.));
#623 = CARTESIAN_POINT('',(35.,13.,10.));
#624 = CARTESIAN_POINT('',(41.,7.,10.));
#625 = CARTESIAN_POINT('',(41.,13.,10.));ANNOTATION_ is a STYLED_ — the same entity that carried colour in Chapter 14 — whose item is a GEOMETRIC_ of polylines and arcs, and whose style says how to draw them. The set’s name, 'position', comes from a list in the recommended practice that says what kind of PMI is drawn; it is a label for people, not data. This frame stops at its box and the divider after the symbol. A real one carries on in the same set with the strokes of the symbol, the digits “0.2” and the datum letters, each a polyline shaped like the character. Arrowheads are filled triangles under an ANNOTATION_. In AP242 the curves may instead be a mesh under a TESSELLATED_, using the tessellation records of Chapter 13.
Several occurrences making one callout are grouped:
#610 = DRAUGHTING_CALLOUT('position callout',(#600,#611,#612));Referred to above: 28 records from bracket-pmi.step
#600 = ANNOTATION_CURVE_OCCURRENCE('position callout',(#601),#605);
#601 = PRESENTATION_STYLE_ASSIGNMENT((#602));
#602 = CURVE_STYLE('',#603,POSITIVE_LENGTH_MEASURE(0.13),#604);
#603 = DRAUGHTING_PRE_DEFINED_CURVE_FONT('continuous');
#604 = COLOUR_RGB('',0.,0.,0.);
#605 = GEOMETRIC_CURVE_SET('position',(#606,#607));
#606 = POLYLINE('',(#620,#621,#622,#623,#620));
#607 = POLYLINE('',(#624,#625));
#608 = PRESENTATION_STYLE_ASSIGNMENT((#602,#609));
#609 = FILL_AREA_STYLE('',(#619));
#611 = ANNOTATION_CURVE_OCCURRENCE('position callout',(#601),#613);
#612 = ANNOTATION_FILL_AREA_OCCURRENCE('position callout',(#608),#632,#631);
#613 = GEOMETRIC_CURVE_SET('position',(#614));
#614 = POLYLINE('',(#626,#627));
#619 = FILL_AREA_STYLE_COLOUR('',#604);
#620 = CARTESIAN_POINT('',(35.,7.,10.));
#621 = CARTESIAN_POINT('',(55.,7.,10.));
#622 = CARTESIAN_POINT('',(55.,13.,10.));
#623 = CARTESIAN_POINT('',(35.,13.,10.));
#624 = CARTESIAN_POINT('',(41.,7.,10.));
#625 = CARTESIAN_POINT('',(41.,13.,10.));
#626 = CARTESIAN_POINT('',(35.,10.,10.));
#627 = CARTESIAN_POINT('',(33.,10.,10.));
#628 = CARTESIAN_POINT('',(34.,9.65,10.));
#629 = CARTESIAN_POINT('',(34.,10.35,10.));
#631 = CARTESIAN_POINT('',(33.5,10.,10.));
#632 = ANNOTATION_FILL_AREA('position',(#633));
#633 = POLYLINE('',(#627,#628,#629,#627));— the frame, its leader line and its arrowhead, each an annotation occurrence of its own, all carrying the callout’s name as the recommended practice asks. The callout lies on an annotation plane, which fixes the plane in 3D that the 2D-looking symbol is drawn in, here the plane of the top face. The practice orients it for reading: its x axis runs along the text, its y axis up the characters, and its z axis toward the reader. The plane carries a style of its own, in practice a null style meaning draw this however you like. A rule in the schema asks for a fill-area style with a PLANE and a curve style with a PLANAR_; the null style the recommended practice prescribes satisfies neither, so files that follow the practice fail that rule:
#615 = ANNOTATION_PLANE('',(#618),#616,(#610));
#616 = PLANE('',#617);
#618 = PRESENTATION_STYLE_ASSIGNMENT((NULL_STYLE(.NULL.)));Referred to above: 33 records from bracket-pmi.step
#600 = ANNOTATION_CURVE_OCCURRENCE('position callout',(#601),#605);
#601 = PRESENTATION_STYLE_ASSIGNMENT((#602));
#602 = CURVE_STYLE('',#603,POSITIVE_LENGTH_MEASURE(0.13),#604);
#603 = DRAUGHTING_PRE_DEFINED_CURVE_FONT('continuous');
#604 = COLOUR_RGB('',0.,0.,0.);
#605 = GEOMETRIC_CURVE_SET('position',(#606,#607));
#606 = POLYLINE('',(#620,#621,#622,#623,#620));
#607 = POLYLINE('',(#624,#625));
#608 = PRESENTATION_STYLE_ASSIGNMENT((#602,#609));
#609 = FILL_AREA_STYLE('',(#619));
#610 = DRAUGHTING_CALLOUT('position callout',(#600,#611,#612));
#611 = ANNOTATION_CURVE_OCCURRENCE('position callout',(#601),#613);
#612 = ANNOTATION_FILL_AREA_OCCURRENCE('position callout',(#608),#632,#631);
#613 = GEOMETRIC_CURVE_SET('position',(#614));
#614 = POLYLINE('',(#626,#627));
#617 = AXIS2_PLACEMENT_3D('',#634,#635,#636);
#619 = FILL_AREA_STYLE_COLOUR('',#604);
#620 = CARTESIAN_POINT('',(35.,7.,10.));
#621 = CARTESIAN_POINT('',(55.,7.,10.));
#622 = CARTESIAN_POINT('',(55.,13.,10.));
#623 = CARTESIAN_POINT('',(35.,13.,10.));
#624 = CARTESIAN_POINT('',(41.,7.,10.));
#625 = CARTESIAN_POINT('',(41.,13.,10.));
#626 = CARTESIAN_POINT('',(35.,10.,10.));
#627 = CARTESIAN_POINT('',(33.,10.,10.));
#628 = CARTESIAN_POINT('',(34.,9.65,10.));
#629 = CARTESIAN_POINT('',(34.,10.35,10.));
#631 = CARTESIAN_POINT('',(33.5,10.,10.));
#632 = ANNOTATION_FILL_AREA('position',(#633));
#633 = POLYLINE('',(#627,#628,#629,#627));
#634 = CARTESIAN_POINT('',(35.,7.,10.));
#635 = DIRECTION('',(0.,0.,1.));
#636 = DIRECTION('',(1.,0.,0.));And every annotation plane, and through its elements every callout, is collected in one DRAUGHTING_, a representation in the same geometric context as the part:
#630 = DRAUGHTING_MODEL('',(#615),#204);Referred to above: 41 records from bracket-pmi.step
#204 = ( GEOMETRIC_REPRESENTATION_CONTEXT(3)
GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#208)) GLOBAL_UNIT_ASSIGNED_CONTEXT
((#205,#206,#207)) REPRESENTATION_CONTEXT('Context #1',
'3D Context with UNIT and UNCERTAINTY') );
#205 = ( LENGTH_UNIT() NAMED_UNIT(*) SI_UNIT(.MILLI.,.METRE.) );
#206 = ( NAMED_UNIT(*) PLANE_ANGLE_UNIT() SI_UNIT($,.RADIAN.) );
#207 = ( NAMED_UNIT(*) SI_UNIT($,.STERADIAN.) SOLID_ANGLE_UNIT() );
#208 = UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.E-07),#205,
'distance_accuracy_value','confusion accuracy');
#600 = ANNOTATION_CURVE_OCCURRENCE('position callout',(#601),#605);
#601 = PRESENTATION_STYLE_ASSIGNMENT((#602));
#602 = CURVE_STYLE('',#603,POSITIVE_LENGTH_MEASURE(0.13),#604);
#603 = DRAUGHTING_PRE_DEFINED_CURVE_FONT('continuous');
#604 = COLOUR_RGB('',0.,0.,0.);
#605 = GEOMETRIC_CURVE_SET('position',(#606,#607));
#606 = POLYLINE('',(#620,#621,#622,#623,#620));
#607 = POLYLINE('',(#624,#625));
#608 = PRESENTATION_STYLE_ASSIGNMENT((#602,#609));
#609 = FILL_AREA_STYLE('',(#619));
#610 = DRAUGHTING_CALLOUT('position callout',(#600,#611,#612));
#611 = ANNOTATION_CURVE_OCCURRENCE('position callout',(#601),#613);
#612 = ANNOTATION_FILL_AREA_OCCURRENCE('position callout',(#608),#632,#631);
#613 = GEOMETRIC_CURVE_SET('position',(#614));
#614 = POLYLINE('',(#626,#627));
#615 = ANNOTATION_PLANE('',(#618),#616,(#610));
#616 = PLANE('',#617);
#617 = AXIS2_PLACEMENT_3D('',#634,#635,#636);
#618 = PRESENTATION_STYLE_ASSIGNMENT((NULL_STYLE(.NULL.)));
#619 = FILL_AREA_STYLE_COLOUR('',#604);
#620 = CARTESIAN_POINT('',(35.,7.,10.));
#621 = CARTESIAN_POINT('',(55.,7.,10.));
#622 = CARTESIAN_POINT('',(55.,13.,10.));
#623 = CARTESIAN_POINT('',(35.,13.,10.));
#624 = CARTESIAN_POINT('',(41.,7.,10.));
#625 = CARTESIAN_POINT('',(41.,13.,10.));
#626 = CARTESIAN_POINT('',(35.,10.,10.));
#627 = CARTESIAN_POINT('',(33.,10.,10.));
#628 = CARTESIAN_POINT('',(34.,9.65,10.));
#629 = CARTESIAN_POINT('',(34.,10.35,10.));
#631 = CARTESIAN_POINT('',(33.5,10.,10.));
#632 = ANNOTATION_FILL_AREA('position',(#633));
#633 = POLYLINE('',(#627,#628,#629,#627));
#634 = CARTESIAN_POINT('',(35.,7.,10.));
#635 = DIRECTION('',(0.,0.,1.));
#636 = DIRECTION('',(1.,0.,0.));The recommended practice calls this the global draughting model: it has an empty name and lists every annotation plane in the file, and its context, #204, is the bracket’s own geometric context. A reader looking for “all the PMI drawn on this part” finds the draughting models that share the part’s geometric context and walks their items.
That is graphical PMI: geometry that happens to look like symbols, organised so a viewer knows to draw it and where.
16.3 Semantic PMI: features
Semantic PMI is built on shape aspects — named regions of a part’s shape that a tolerance can refer to:
#700 = SHAPE_ASPECT('top face','',#4,.T.);
#701 = GEOMETRIC_ITEM_SPECIFIC_USAGE('','',#700,#10,#88);
#703 = SHAPE_ASPECT('hole wall','',#4,.T.);
#705 = GEOMETRIC_ITEM_SPECIFIC_USAGE('','',#703,#10,#187);
#702 = DERIVED_SHAPE_ASPECT('hole axis','',#4,.F.); /* its centre line */
#704 = SHAPE_ASPECT_DERIVING_RELATIONSHIP('','',#702,#703);Referred to above: 206 records from bracket-pmi.step
#2 = APPLICATION_CONTEXT('Managed model based 3d engineering');
#4 = PRODUCT_DEFINITION_SHAPE('','',#5);
#5 = PRODUCT_DEFINITION('design','',#6,#9);
#6 = PRODUCT_DEFINITION_FORMATION('','',#7);
#7 = PRODUCT('BRACKET','bracket with 6mm hole','',(#8));
#8 = PRODUCT_CONTEXT('',#2,'mechanical');
#9 = PRODUCT_DEFINITION_CONTEXT('part definition',#2,'design');
#10 = ADVANCED_BREP_SHAPE_REPRESENTATION('',(#11,#15),#204);
#11 = AXIS2_PLACEMENT_3D('',#12,#13,#14);
#12 = CARTESIAN_POINT('',(0.,0.,0.));
#13 = DIRECTION('',(0.,0.,1.));
#14 = DIRECTION('',(1.,0.,-0.));
#15 = MANIFOLD_SOLID_BREP('',#16);
#16 = CLOSED_SHELL('',(#17,#57,#88,#123,#147,#175,#187));
#17 = ADVANCED_FACE('',(#18),#52,.F.);
#18 = FACE_BOUND('',#19,.F.);
#19 = EDGE_LOOP('',(#20,#30,#38,#46));
#20 = ORIENTED_EDGE('',*,*,#21,.F.);
#21 = EDGE_CURVE('',#22,#24,#26,.T.);
#22 = VERTEX_POINT('',#23);
#23 = CARTESIAN_POINT('',(0.,0.,0.));
#24 = VERTEX_POINT('',#25);
#25 = CARTESIAN_POINT('',(0.,0.,10.));
#26 = LINE('',#27,#28);
#27 = CARTESIAN_POINT('',(0.,0.,0.));
#28 = VECTOR('',#29,1.);
#29 = DIRECTION('',(0.,0.,1.));
#30 = ORIENTED_EDGE('',*,*,#31,.T.);
#31 = EDGE_CURVE('',#22,#32,#34,.T.);
#32 = VERTEX_POINT('',#33);
#33 = CARTESIAN_POINT('',(0.,20.,0.));
#34 = LINE('',#35,#36);
#35 = CARTESIAN_POINT('',(0.,0.,0.));
#36 = VECTOR('',#37,1.);
#37 = DIRECTION('',(-0.,1.,0.));
#38 = ORIENTED_EDGE('',*,*,#39,.T.);
#39 = EDGE_CURVE('',#32,#40,#42,.T.);
#40 = VERTEX_POINT('',#41);
#41 = CARTESIAN_POINT('',(0.,20.,10.));
#42 = LINE('',#43,#44);
#43 = CARTESIAN_POINT('',(0.,20.,0.));
#44 = VECTOR('',#45,1.);
#45 = DIRECTION('',(0.,0.,1.));
#46 = ORIENTED_EDGE('',*,*,#47,.F.);
#47 = EDGE_CURVE('',#24,#40,#48,.T.);
#48 = LINE('',#49,#50);
#49 = CARTESIAN_POINT('',(0.,0.,10.));
#50 = VECTOR('',#51,1.);
#51 = DIRECTION('',(-0.,1.,0.));
#52 = PLANE('',#53);
#53 = AXIS2_PLACEMENT_3D('',#54,#55,#56);
#54 = CARTESIAN_POINT('',(0.,0.,0.));
#55 = DIRECTION('',(1.,0.,-0.));
#56 = DIRECTION('',(0.,0.,1.));
#57 = ADVANCED_FACE('',(#58),#83,.F.);
#58 = FACE_BOUND('',#59,.F.);
#59 = EDGE_LOOP('',(#60,#68,#69,#77));
#60 = ORIENTED_EDGE('',*,*,#61,.F.);
#61 = EDGE_CURVE('',#22,#62,#64,.T.);
#62 = VERTEX_POINT('',#63);
#63 = CARTESIAN_POINT('',(60.,0.,0.));
#64 = LINE('',#65,#66);
#65 = CARTESIAN_POINT('',(0.,0.,0.));
#66 = VECTOR('',#67,1.);
#67 = DIRECTION('',(1.,0.,-0.));
#68 = ORIENTED_EDGE('',*,*,#21,.T.);
#69 = ORIENTED_EDGE('',*,*,#70,.T.);
#70 = EDGE_CURVE('',#24,#71,#73,.T.);
#71 = VERTEX_POINT('',#72);
#72 = CARTESIAN_POINT('',(60.,0.,10.));
#73 = LINE('',#74,#75);
#74 = CARTESIAN_POINT('',(0.,0.,10.));
#75 = VECTOR('',#76,1.);
#76 = DIRECTION('',(1.,0.,-0.));
#77 = ORIENTED_EDGE('',*,*,#78,.F.);
#78 = EDGE_CURVE('',#62,#71,#79,.T.);
#79 = LINE('',#80,#81);
#80 = CARTESIAN_POINT('',(60.,0.,0.));
#81 = VECTOR('',#82,1.);
#82 = DIRECTION('',(0.,0.,1.));
#83 = PLANE('',#84);
#84 = AXIS2_PLACEMENT_3D('',#85,#86,#87);
#85 = CARTESIAN_POINT('',(0.,0.,0.));
#86 = DIRECTION('',(-0.,1.,0.));
#87 = DIRECTION('',(0.,0.,1.));
#88 = ADVANCED_FACE('',(#89,#107),#118,.T.);
#89 = FACE_BOUND('',#90,.T.);
#90 = EDGE_LOOP('',(#91,#92,#93,#101));
#91 = ORIENTED_EDGE('',*,*,#47,.F.);
#92 = ORIENTED_EDGE('',*,*,#70,.T.);
#93 = ORIENTED_EDGE('',*,*,#94,.T.);
#94 = EDGE_CURVE('',#71,#95,#97,.T.);
#95 = VERTEX_POINT('',#96);
#96 = CARTESIAN_POINT('',(60.,20.,10.));
#97 = LINE('',#98,#99);
#98 = CARTESIAN_POINT('',(60.,0.,10.));
#99 = VECTOR('',#100,1.);
#100 = DIRECTION('',(-0.,1.,0.));
#101 = ORIENTED_EDGE('',*,*,#102,.F.);
#102 = EDGE_CURVE('',#40,#95,#103,.T.);
#103 = LINE('',#104,#105);
#104 = CARTESIAN_POINT('',(0.,20.,10.));
#105 = VECTOR('',#106,1.);
#106 = DIRECTION('',(1.,0.,-0.));
#107 = FACE_BOUND('',#108,.T.);
#108 = EDGE_LOOP('',(#109));
#109 = ORIENTED_EDGE('',*,*,#110,.T.);
#110 = EDGE_CURVE('',#111,#111,#113,.T.);
#111 = VERTEX_POINT('',#112);
#112 = CARTESIAN_POINT('',(27.,10.,10.));
#113 = CIRCLE('',#114,3.);
#114 = AXIS2_PLACEMENT_3D('',#115,#116,#117);
#115 = CARTESIAN_POINT('',(30.,10.,10.));
#116 = DIRECTION('',(0.,0.,-1.));
#117 = DIRECTION('',(-1.,0.,-0.));
#118 = PLANE('',#119);
#119 = AXIS2_PLACEMENT_3D('',#120,#121,#122);
#120 = CARTESIAN_POINT('',(0.,0.,10.));
#121 = DIRECTION('',(0.,0.,1.));
#122 = DIRECTION('',(1.,0.,-0.));
#123 = ADVANCED_FACE('',(#124),#142,.T.);
#124 = FACE_BOUND('',#125,.T.);
#125 = EDGE_LOOP('',(#126,#134,#135,#136));
#126 = ORIENTED_EDGE('',*,*,#127,.F.);
#127 = EDGE_CURVE('',#32,#128,#130,.T.);
#128 = VERTEX_POINT('',#129);
#129 = CARTESIAN_POINT('',(60.,20.,0.));
#130 = LINE('',#131,#132);
#131 = CARTESIAN_POINT('',(0.,20.,0.));
#132 = VECTOR('',#133,1.);
#133 = DIRECTION('',(1.,0.,-0.));
#134 = ORIENTED_EDGE('',*,*,#39,.T.);
#135 = ORIENTED_EDGE('',*,*,#102,.T.);
#136 = ORIENTED_EDGE('',*,*,#137,.F.);
#137 = EDGE_CURVE('',#128,#95,#138,.T.);
#138 = LINE('',#139,#140);
#139 = CARTESIAN_POINT('',(60.,20.,0.));
#140 = VECTOR('',#141,1.);
#141 = DIRECTION('',(0.,0.,1.));
#142 = PLANE('',#143);
#143 = AXIS2_PLACEMENT_3D('',#144,#145,#146);
#144 = CARTESIAN_POINT('',(0.,20.,0.));
#145 = DIRECTION('',(-0.,1.,0.));
#146 = DIRECTION('',(0.,0.,1.));
#147 = ADVANCED_FACE('',(#148,#159),#170,.F.);
#148 = FACE_BOUND('',#149,.F.);
#149 = EDGE_LOOP('',(#150,#151,#152,#158));
#150 = ORIENTED_EDGE('',*,*,#31,.F.);
#151 = ORIENTED_EDGE('',*,*,#61,.T.);
#152 = ORIENTED_EDGE('',*,*,#153,.T.);
#153 = EDGE_CURVE('',#62,#128,#154,.T.);
#154 = LINE('',#155,#156);
#155 = CARTESIAN_POINT('',(60.,0.,0.));
#156 = VECTOR('',#157,1.);
#157 = DIRECTION('',(-0.,1.,0.));
#158 = ORIENTED_EDGE('',*,*,#127,.F.);
#159 = FACE_BOUND('',#160,.F.);
#160 = EDGE_LOOP('',(#161));
#161 = ORIENTED_EDGE('',*,*,#162,.T.);
#162 = EDGE_CURVE('',#163,#163,#165,.T.);
#163 = VERTEX_POINT('',#164);
#164 = CARTESIAN_POINT('',(27.,10.,0.));
#165 = CIRCLE('',#166,3.);
#166 = AXIS2_PLACEMENT_3D('',#167,#168,#169);
#167 = CARTESIAN_POINT('',(30.,10.,0.));
#168 = DIRECTION('',(0.,0.,-1.));
#169 = DIRECTION('',(-1.,0.,-0.));
#170 = PLANE('',#171);
#171 = AXIS2_PLACEMENT_3D('',#172,#173,#174);
#172 = CARTESIAN_POINT('',(0.,0.,0.));
#173 = DIRECTION('',(0.,0.,1.));
#174 = DIRECTION('',(1.,0.,-0.));
#175 = ADVANCED_FACE('',(#176),#182,.T.);
#176 = FACE_BOUND('',#177,.T.);
#177 = EDGE_LOOP('',(#178,#179,#180,#181));
#178 = ORIENTED_EDGE('',*,*,#78,.F.);
#179 = ORIENTED_EDGE('',*,*,#153,.T.);
#180 = ORIENTED_EDGE('',*,*,#137,.T.);
#181 = ORIENTED_EDGE('',*,*,#94,.F.);
#182 = PLANE('',#183);
#183 = AXIS2_PLACEMENT_3D('',#184,#185,#186);
#184 = CARTESIAN_POINT('',(60.,0.,0.));
#185 = DIRECTION('',(1.,0.,-0.));
#186 = DIRECTION('',(0.,0.,1.));
#187 = ADVANCED_FACE('',(#188),#199,.F.);
#188 = FACE_BOUND('',#189,.F.);
#189 = EDGE_LOOP('',(#190,#191,#197,#198));
#190 = ORIENTED_EDGE('',*,*,#162,.F.);
#191 = ORIENTED_EDGE('',*,*,#192,.F.);
#192 = EDGE_CURVE('',#111,#163,#193,.T.);
#193 = LINE('',#194,#195);
#194 = CARTESIAN_POINT('',(27.,10.,10.));
#195 = VECTOR('',#196,1.);
#196 = DIRECTION('',(0.,0.,-1.));
#197 = ORIENTED_EDGE('',*,*,#110,.T.);
#198 = ORIENTED_EDGE('',*,*,#192,.T.);
#199 = CYLINDRICAL_SURFACE('',#200,3.);
#200 = AXIS2_PLACEMENT_3D('',#201,#202,#203);
#201 = CARTESIAN_POINT('',(30.,10.,10.));
#202 = DIRECTION('',(0.,0.,-1.));
#203 = DIRECTION('',(-1.,0.,-0.));
#204 = ( GEOMETRIC_REPRESENTATION_CONTEXT(3)
GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#208)) GLOBAL_UNIT_ASSIGNED_CONTEXT
((#205,#206,#207)) REPRESENTATION_CONTEXT('Context #1',
'3D Context with UNIT and UNCERTAINTY') );
#205 = ( LENGTH_UNIT() NAMED_UNIT(*) SI_UNIT(.MILLI.,.METRE.) );
#206 = ( NAMED_UNIT(*) PLANE_ANGLE_UNIT() SI_UNIT($,.RADIAN.) );
#207 = ( NAMED_UNIT(*) SI_UNIT($,.STERADIAN.) SOLID_ANGLE_UNIT() );
#208 = UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.E-07),#205,
'distance_accuracy_value','confusion accuracy');SHAPE_ has a name, a description, of_ (the part’s PRODUCT_ — the abstract shape from Chapter 7, now earning its keep) and a product_ flag. It says “there is a feature of this part’s shape called top face.” It does not, by itself, say which geometry that is.
GEOMETRIC_ does: its definition is the shape aspect, its used_ is the shape representation, and its identified_ is face #88, the top. #705 does the same for the hole’s wall, the cylindrical face #187. One usage record names one item. A feature spanning several faces is written either as one shape aspect per face, or with the supertype ITEM_ and a typed SET_ holding them all. This is the record that connects a tolerance’s target to a specific face in the B-rep, and it is where semantic PMI most often goes wrong in practice — a tolerance whose shape aspect has no GEOMETRIC_, or one pointing at a face that was re-numbered, is a tolerance on nothing.
A feature made of several faces (the two halves of a slot, a pattern of holes) is a COMPOSITE_ or a COMPOSITE_ with SHAPE_s to its members. A hole’s axis, as opposed to its wall, is a DERIVED_ with product_ .F., tied to the wall’s shape aspect by a SHAPE_ whose relating aspect is the axis. That is #702 and #703 above, and the schema requires at least one such relationship for every derived shape aspect. The tolerances later in this chapter refer to both. Particular derivations have their own subtypes — APEX, CENTRE_, TANGENT and others — and the recommended practices ask for a meaningful name string without fixing one. The vocabulary is the standard’s usual: general entities, fixed strings.
16.4 Semantic PMI: datums
#710 = DATUM_FEATURE('','',#4,.T.);
#711 = GEOMETRIC_ITEM_SPECIFIC_USAGE('','',#710,#10,#147); /* the bottom face */
#712 = DATUM('','',#4,.F.,'A');
#713 = SHAPE_ASPECT_RELATIONSHIP('','',#710,#712);Referred to above: 206 records from bracket-pmi.step
#2 = APPLICATION_CONTEXT('Managed model based 3d engineering');
#4 = PRODUCT_DEFINITION_SHAPE('','',#5);
#5 = PRODUCT_DEFINITION('design','',#6,#9);
#6 = PRODUCT_DEFINITION_FORMATION('','',#7);
#7 = PRODUCT('BRACKET','bracket with 6mm hole','',(#8));
#8 = PRODUCT_CONTEXT('',#2,'mechanical');
#9 = PRODUCT_DEFINITION_CONTEXT('part definition',#2,'design');
#10 = ADVANCED_BREP_SHAPE_REPRESENTATION('',(#11,#15),#204);
#11 = AXIS2_PLACEMENT_3D('',#12,#13,#14);
#12 = CARTESIAN_POINT('',(0.,0.,0.));
#13 = DIRECTION('',(0.,0.,1.));
#14 = DIRECTION('',(1.,0.,-0.));
#15 = MANIFOLD_SOLID_BREP('',#16);
#16 = CLOSED_SHELL('',(#17,#57,#88,#123,#147,#175,#187));
#17 = ADVANCED_FACE('',(#18),#52,.F.);
#18 = FACE_BOUND('',#19,.F.);
#19 = EDGE_LOOP('',(#20,#30,#38,#46));
#20 = ORIENTED_EDGE('',*,*,#21,.F.);
#21 = EDGE_CURVE('',#22,#24,#26,.T.);
#22 = VERTEX_POINT('',#23);
#23 = CARTESIAN_POINT('',(0.,0.,0.));
#24 = VERTEX_POINT('',#25);
#25 = CARTESIAN_POINT('',(0.,0.,10.));
#26 = LINE('',#27,#28);
#27 = CARTESIAN_POINT('',(0.,0.,0.));
#28 = VECTOR('',#29,1.);
#29 = DIRECTION('',(0.,0.,1.));
#30 = ORIENTED_EDGE('',*,*,#31,.T.);
#31 = EDGE_CURVE('',#22,#32,#34,.T.);
#32 = VERTEX_POINT('',#33);
#33 = CARTESIAN_POINT('',(0.,20.,0.));
#34 = LINE('',#35,#36);
#35 = CARTESIAN_POINT('',(0.,0.,0.));
#36 = VECTOR('',#37,1.);
#37 = DIRECTION('',(-0.,1.,0.));
#38 = ORIENTED_EDGE('',*,*,#39,.T.);
#39 = EDGE_CURVE('',#32,#40,#42,.T.);
#40 = VERTEX_POINT('',#41);
#41 = CARTESIAN_POINT('',(0.,20.,10.));
#42 = LINE('',#43,#44);
#43 = CARTESIAN_POINT('',(0.,20.,0.));
#44 = VECTOR('',#45,1.);
#45 = DIRECTION('',(0.,0.,1.));
#46 = ORIENTED_EDGE('',*,*,#47,.F.);
#47 = EDGE_CURVE('',#24,#40,#48,.T.);
#48 = LINE('',#49,#50);
#49 = CARTESIAN_POINT('',(0.,0.,10.));
#50 = VECTOR('',#51,1.);
#51 = DIRECTION('',(-0.,1.,0.));
#52 = PLANE('',#53);
#53 = AXIS2_PLACEMENT_3D('',#54,#55,#56);
#54 = CARTESIAN_POINT('',(0.,0.,0.));
#55 = DIRECTION('',(1.,0.,-0.));
#56 = DIRECTION('',(0.,0.,1.));
#57 = ADVANCED_FACE('',(#58),#83,.F.);
#58 = FACE_BOUND('',#59,.F.);
#59 = EDGE_LOOP('',(#60,#68,#69,#77));
#60 = ORIENTED_EDGE('',*,*,#61,.F.);
#61 = EDGE_CURVE('',#22,#62,#64,.T.);
#62 = VERTEX_POINT('',#63);
#63 = CARTESIAN_POINT('',(60.,0.,0.));
#64 = LINE('',#65,#66);
#65 = CARTESIAN_POINT('',(0.,0.,0.));
#66 = VECTOR('',#67,1.);
#67 = DIRECTION('',(1.,0.,-0.));
#68 = ORIENTED_EDGE('',*,*,#21,.T.);
#69 = ORIENTED_EDGE('',*,*,#70,.T.);
#70 = EDGE_CURVE('',#24,#71,#73,.T.);
#71 = VERTEX_POINT('',#72);
#72 = CARTESIAN_POINT('',(60.,0.,10.));
#73 = LINE('',#74,#75);
#74 = CARTESIAN_POINT('',(0.,0.,10.));
#75 = VECTOR('',#76,1.);
#76 = DIRECTION('',(1.,0.,-0.));
#77 = ORIENTED_EDGE('',*,*,#78,.F.);
#78 = EDGE_CURVE('',#62,#71,#79,.T.);
#79 = LINE('',#80,#81);
#80 = CARTESIAN_POINT('',(60.,0.,0.));
#81 = VECTOR('',#82,1.);
#82 = DIRECTION('',(0.,0.,1.));
#83 = PLANE('',#84);
#84 = AXIS2_PLACEMENT_3D('',#85,#86,#87);
#85 = CARTESIAN_POINT('',(0.,0.,0.));
#86 = DIRECTION('',(-0.,1.,0.));
#87 = DIRECTION('',(0.,0.,1.));
#88 = ADVANCED_FACE('',(#89,#107),#118,.T.);
#89 = FACE_BOUND('',#90,.T.);
#90 = EDGE_LOOP('',(#91,#92,#93,#101));
#91 = ORIENTED_EDGE('',*,*,#47,.F.);
#92 = ORIENTED_EDGE('',*,*,#70,.T.);
#93 = ORIENTED_EDGE('',*,*,#94,.T.);
#94 = EDGE_CURVE('',#71,#95,#97,.T.);
#95 = VERTEX_POINT('',#96);
#96 = CARTESIAN_POINT('',(60.,20.,10.));
#97 = LINE('',#98,#99);
#98 = CARTESIAN_POINT('',(60.,0.,10.));
#99 = VECTOR('',#100,1.);
#100 = DIRECTION('',(-0.,1.,0.));
#101 = ORIENTED_EDGE('',*,*,#102,.F.);
#102 = EDGE_CURVE('',#40,#95,#103,.T.);
#103 = LINE('',#104,#105);
#104 = CARTESIAN_POINT('',(0.,20.,10.));
#105 = VECTOR('',#106,1.);
#106 = DIRECTION('',(1.,0.,-0.));
#107 = FACE_BOUND('',#108,.T.);
#108 = EDGE_LOOP('',(#109));
#109 = ORIENTED_EDGE('',*,*,#110,.T.);
#110 = EDGE_CURVE('',#111,#111,#113,.T.);
#111 = VERTEX_POINT('',#112);
#112 = CARTESIAN_POINT('',(27.,10.,10.));
#113 = CIRCLE('',#114,3.);
#114 = AXIS2_PLACEMENT_3D('',#115,#116,#117);
#115 = CARTESIAN_POINT('',(30.,10.,10.));
#116 = DIRECTION('',(0.,0.,-1.));
#117 = DIRECTION('',(-1.,0.,-0.));
#118 = PLANE('',#119);
#119 = AXIS2_PLACEMENT_3D('',#120,#121,#122);
#120 = CARTESIAN_POINT('',(0.,0.,10.));
#121 = DIRECTION('',(0.,0.,1.));
#122 = DIRECTION('',(1.,0.,-0.));
#123 = ADVANCED_FACE('',(#124),#142,.T.);
#124 = FACE_BOUND('',#125,.T.);
#125 = EDGE_LOOP('',(#126,#134,#135,#136));
#126 = ORIENTED_EDGE('',*,*,#127,.F.);
#127 = EDGE_CURVE('',#32,#128,#130,.T.);
#128 = VERTEX_POINT('',#129);
#129 = CARTESIAN_POINT('',(60.,20.,0.));
#130 = LINE('',#131,#132);
#131 = CARTESIAN_POINT('',(0.,20.,0.));
#132 = VECTOR('',#133,1.);
#133 = DIRECTION('',(1.,0.,-0.));
#134 = ORIENTED_EDGE('',*,*,#39,.T.);
#135 = ORIENTED_EDGE('',*,*,#102,.T.);
#136 = ORIENTED_EDGE('',*,*,#137,.F.);
#137 = EDGE_CURVE('',#128,#95,#138,.T.);
#138 = LINE('',#139,#140);
#139 = CARTESIAN_POINT('',(60.,20.,0.));
#140 = VECTOR('',#141,1.);
#141 = DIRECTION('',(0.,0.,1.));
#142 = PLANE('',#143);
#143 = AXIS2_PLACEMENT_3D('',#144,#145,#146);
#144 = CARTESIAN_POINT('',(0.,20.,0.));
#145 = DIRECTION('',(-0.,1.,0.));
#146 = DIRECTION('',(0.,0.,1.));
#147 = ADVANCED_FACE('',(#148,#159),#170,.F.);
#148 = FACE_BOUND('',#149,.F.);
#149 = EDGE_LOOP('',(#150,#151,#152,#158));
#150 = ORIENTED_EDGE('',*,*,#31,.F.);
#151 = ORIENTED_EDGE('',*,*,#61,.T.);
#152 = ORIENTED_EDGE('',*,*,#153,.T.);
#153 = EDGE_CURVE('',#62,#128,#154,.T.);
#154 = LINE('',#155,#156);
#155 = CARTESIAN_POINT('',(60.,0.,0.));
#156 = VECTOR('',#157,1.);
#157 = DIRECTION('',(-0.,1.,0.));
#158 = ORIENTED_EDGE('',*,*,#127,.F.);
#159 = FACE_BOUND('',#160,.F.);
#160 = EDGE_LOOP('',(#161));
#161 = ORIENTED_EDGE('',*,*,#162,.T.);
#162 = EDGE_CURVE('',#163,#163,#165,.T.);
#163 = VERTEX_POINT('',#164);
#164 = CARTESIAN_POINT('',(27.,10.,0.));
#165 = CIRCLE('',#166,3.);
#166 = AXIS2_PLACEMENT_3D('',#167,#168,#169);
#167 = CARTESIAN_POINT('',(30.,10.,0.));
#168 = DIRECTION('',(0.,0.,-1.));
#169 = DIRECTION('',(-1.,0.,-0.));
#170 = PLANE('',#171);
#171 = AXIS2_PLACEMENT_3D('',#172,#173,#174);
#172 = CARTESIAN_POINT('',(0.,0.,0.));
#173 = DIRECTION('',(0.,0.,1.));
#174 = DIRECTION('',(1.,0.,-0.));
#175 = ADVANCED_FACE('',(#176),#182,.T.);
#176 = FACE_BOUND('',#177,.T.);
#177 = EDGE_LOOP('',(#178,#179,#180,#181));
#178 = ORIENTED_EDGE('',*,*,#78,.F.);
#179 = ORIENTED_EDGE('',*,*,#153,.T.);
#180 = ORIENTED_EDGE('',*,*,#137,.T.);
#181 = ORIENTED_EDGE('',*,*,#94,.F.);
#182 = PLANE('',#183);
#183 = AXIS2_PLACEMENT_3D('',#184,#185,#186);
#184 = CARTESIAN_POINT('',(60.,0.,0.));
#185 = DIRECTION('',(1.,0.,-0.));
#186 = DIRECTION('',(0.,0.,1.));
#187 = ADVANCED_FACE('',(#188),#199,.F.);
#188 = FACE_BOUND('',#189,.F.);
#189 = EDGE_LOOP('',(#190,#191,#197,#198));
#190 = ORIENTED_EDGE('',*,*,#162,.F.);
#191 = ORIENTED_EDGE('',*,*,#192,.F.);
#192 = EDGE_CURVE('',#111,#163,#193,.T.);
#193 = LINE('',#194,#195);
#194 = CARTESIAN_POINT('',(27.,10.,10.));
#195 = VECTOR('',#196,1.);
#196 = DIRECTION('',(0.,0.,-1.));
#197 = ORIENTED_EDGE('',*,*,#110,.T.);
#198 = ORIENTED_EDGE('',*,*,#192,.T.);
#199 = CYLINDRICAL_SURFACE('',#200,3.);
#200 = AXIS2_PLACEMENT_3D('',#201,#202,#203);
#201 = CARTESIAN_POINT('',(30.,10.,10.));
#202 = DIRECTION('',(0.,0.,-1.));
#203 = DIRECTION('',(-1.,0.,-0.));
#204 = ( GEOMETRIC_REPRESENTATION_CONTEXT(3)
GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#208)) GLOBAL_UNIT_ASSIGNED_CONTEXT
((#205,#206,#207)) REPRESENTATION_CONTEXT('Context #1',
'3D Context with UNIT and UNCERTAINTY') );
#205 = ( LENGTH_UNIT() NAMED_UNIT(*) SI_UNIT(.MILLI.,.METRE.) );
#206 = ( NAMED_UNIT(*) PLANE_ANGLE_UNIT() SI_UNIT($,.RADIAN.) );
#207 = ( NAMED_UNIT(*) SI_UNIT($,.STERADIAN.) SOLID_ANGLE_UNIT() );
#208 = UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.E-07),#205,
'distance_accuracy_value','confusion accuracy');Both DATUM_ and DATUM are subtypes of SHAPE_. The datum feature is the real surface — linked to face #147 — and the datum is the theoretical plane it establishes, carrying the letter 'A' in an extra identification attribute. The relationship says the feature establishes the datum. Datums B and C follow the same pattern, on the front face #57 and the left face #17.
A datum reference frame collects them in order:
#720 = DATUM_SYSTEM('','',#4,.F.,(#721,#722,#723));
#721 = DATUM_REFERENCE_COMPARTMENT('',$,#4,.F.,#712,$); /* A */
#722 = DATUM_REFERENCE_COMPARTMENT('',$,#4,.F.,#714,$); /* B */
#723 = DATUM_REFERENCE_COMPARTMENT('',$,#4,.F.,#724,$); /* C */Referred to above: 10 records from bracket-pmi.step
#2 = APPLICATION_CONTEXT('Managed model based 3d engineering');
#4 = PRODUCT_DEFINITION_SHAPE('','',#5);
#5 = PRODUCT_DEFINITION('design','',#6,#9);
#6 = PRODUCT_DEFINITION_FORMATION('','',#7);
#7 = PRODUCT('BRACKET','bracket with 6mm hole','',(#8));
#8 = PRODUCT_CONTEXT('',#2,'mechanical');
#9 = PRODUCT_DEFINITION_CONTEXT('part definition',#2,'design');
#712 = DATUM('','',#4,.F.,'A');
#714 = DATUM('','',#4,.F.,'B');
#724 = DATUM('','',#4,.F.,'C');Each compartment refers to one datum (or a common datum, A–B) and carries optional modifiers; the system lists its compartments in precedence order — primary first — in its constituents attribute. This is one of the few places in the format where the order of a list carries meaning.
16.5 Semantic PMI: geometric tolerances
A flatness tolerance on the top face:
#740 = FLATNESS_TOLERANCE('','',#741,#700);
#741 = LENGTH_MEASURE_WITH_UNIT(LENGTH_MEASURE(0.05),#205);Referred to above: 9 records from bracket-pmi.step
#2 = APPLICATION_CONTEXT('Managed model based 3d engineering');
#4 = PRODUCT_DEFINITION_SHAPE('','',#5);
#5 = PRODUCT_DEFINITION('design','',#6,#9);
#6 = PRODUCT_DEFINITION_FORMATION('','',#7);
#7 = PRODUCT('BRACKET','bracket with 6mm hole','',(#8));
#8 = PRODUCT_CONTEXT('',#2,'mechanical');
#9 = PRODUCT_DEFINITION_CONTEXT('part definition',#2,'design');
#205 = ( LENGTH_UNIT() NAMED_UNIT(*) SI_UNIT(.MILLI.,.METRE.) );
#700 = SHAPE_ASPECT('top face','',#4,.T.);GEOMETRIC_, the supertype, has name, description, magnitude (a measure with unit: the zone width) and toleranced_. FLATNESS_ adds nothing; it is the type that says which characteristic this is. There are fifteen subtypes, roughly one per symbol: the schema keeps coaxiality and concentricity apart where ISO 1101 gives them a single symbol and ASME Y14.5 had only concentricity until the 2018 edition dropped it.
A position tolerance on the hole, referred to datums, with a modifier and a cylindrical zone, is where the complex instance returns:
#750 = ( GEOMETRIC_TOLERANCE('','',#751,#702)
GEOMETRIC_TOLERANCE_WITH_DATUM_REFERENCE((#720))
GEOMETRIC_TOLERANCE_WITH_MODIFIERS((.MAXIMUM_MATERIAL_REQUIREMENT.))
POSITION_TOLERANCE() );
#751 = LENGTH_MEASURE_WITH_UNIT(LENGTH_MEASURE(0.2),#205);
#752 = TOLERANCE_ZONE('','',#4,.F.,(#750),#753);
#753 = TOLERANCE_ZONE_FORM('cylindrical or circular');Referred to above: 16 records from bracket-pmi.step
#2 = APPLICATION_CONTEXT('Managed model based 3d engineering');
#4 = PRODUCT_DEFINITION_SHAPE('','',#5);
#5 = PRODUCT_DEFINITION('design','',#6,#9);
#6 = PRODUCT_DEFINITION_FORMATION('','',#7);
#7 = PRODUCT('BRACKET','bracket with 6mm hole','',(#8));
#8 = PRODUCT_CONTEXT('',#2,'mechanical');
#9 = PRODUCT_DEFINITION_CONTEXT('part definition',#2,'design');
#205 = ( LENGTH_UNIT() NAMED_UNIT(*) SI_UNIT(.MILLI.,.METRE.) );
#702 = DERIVED_SHAPE_ASPECT('hole axis','',#4,.F.);
#712 = DATUM('','',#4,.F.,'A');
#714 = DATUM('','',#4,.F.,'B');
#720 = DATUM_SYSTEM('','',#4,.F.,(#721,#722,#723));
#721 = DATUM_REFERENCE_COMPARTMENT('',$,#4,.F.,#712,$);
#722 = DATUM_REFERENCE_COMPARTMENT('',$,#4,.F.,#714,$);
#723 = DATUM_REFERENCE_COMPARTMENT('',$,#4,.F.,#724,$);
#724 = DATUM('','',#4,.F.,'C');GEOMETRIC_ adds the datum system; GEOMETRIC_ adds the circled-M modifier; POSITION_ names the characteristic. Three siblings under geometric_, no leaf name for the combination, external mapping, alphabetical — exactly the mechanism of Chapter 4. The tolerance zone is a separate shape aspect (TOLERANCE_) whose form record’s name comes from a fixed list that the schema enforces with a global rule: 'cylindrical or circular' is the Ø in front of the 0.2, a flatness zone is 'between two equidistant complex surfaces or two parallel planes', and 'unknown' is what a writer uses when it cannot tell.
The toleranced_, #702, is the hole’s axis shape aspect — position is a tolerance on where the axis is, not on the wall.
16.6 Semantic PMI: dimensions
A diameter with a plus/minus tolerance:
#760 = DIMENSIONAL_SIZE(#703,'diameter');
#761 = DIMENSIONAL_CHARACTERISTIC_REPRESENTATION(#760,#762);
#762 = SHAPE_DIMENSION_REPRESENTATION('',(#763),#204);
#763 = ( LENGTH_MEASURE_WITH_UNIT() MEASURE_REPRESENTATION_ITEM()
MEASURE_WITH_UNIT(LENGTH_MEASURE(6.),#205)
QUALIFIED_REPRESENTATION_ITEM((#764))
REPRESENTATION_ITEM('nominal value') );
#764 = VALUE_FORMAT_TYPE_QUALIFIER('NR2 1.2');
#765 = PLUS_MINUS_TOLERANCE(#766,#760);
#766 = TOLERANCE_VALUE(#767,#768);
#767 = LENGTH_MEASURE_WITH_UNIT(LENGTH_MEASURE(-0.02),#205);
#768 = LENGTH_MEASURE_WITH_UNIT(LENGTH_MEASURE(0.05),#205);Referred to above: 13 records from bracket-pmi.step
#2 = APPLICATION_CONTEXT('Managed model based 3d engineering');
#4 = PRODUCT_DEFINITION_SHAPE('','',#5);
#5 = PRODUCT_DEFINITION('design','',#6,#9);
#6 = PRODUCT_DEFINITION_FORMATION('','',#7);
#7 = PRODUCT('BRACKET','bracket with 6mm hole','',(#8));
#8 = PRODUCT_CONTEXT('',#2,'mechanical');
#9 = PRODUCT_DEFINITION_CONTEXT('part definition',#2,'design');
#204 = ( GEOMETRIC_REPRESENTATION_CONTEXT(3)
GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#208)) GLOBAL_UNIT_ASSIGNED_CONTEXT
((#205,#206,#207)) REPRESENTATION_CONTEXT('Context #1',
'3D Context with UNIT and UNCERTAINTY') );
#205 = ( LENGTH_UNIT() NAMED_UNIT(*) SI_UNIT(.MILLI.,.METRE.) );
#206 = ( NAMED_UNIT(*) PLANE_ANGLE_UNIT() SI_UNIT($,.RADIAN.) );
#207 = ( NAMED_UNIT(*) SI_UNIT($,.STERADIAN.) SOLID_ANGLE_UNIT() );
#208 = UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.E-07),#205,
'distance_accuracy_value','confusion accuracy');
#703 = SHAPE_ASPECT('hole wall','',#4,.T.);DIMENSIONAL_ says the hole’s wall (#703) has a size of kind 'diameter'. Its value is a representation — the property pattern of Chapter 15 again — whose item is a nominal length of 6 mm, qualified with a format string ('NR2 1.2': one digit before the decimal point, two after) that says how to display it. PLUS_ attaches a lower and upper deviation. A distance between two features is a DIMENSIONAL_ with two shape aspects instead of one; a fit class is a LIMITS_ record with grade and deviation strings.
16.7 Linking the two
A graphical callout can point at the semantic data it depicts:
#780 = DRAUGHTING_MODEL_ITEM_ASSOCIATION('PMI representation to presentation link',
'',#750,#630,#610);Referred to above: 59 records from bracket-pmi.step
#2 = APPLICATION_CONTEXT('Managed model based 3d engineering');
#4 = PRODUCT_DEFINITION_SHAPE('','',#5);
#5 = PRODUCT_DEFINITION('design','',#6,#9);
#6 = PRODUCT_DEFINITION_FORMATION('','',#7);
#7 = PRODUCT('BRACKET','bracket with 6mm hole','',(#8));
#8 = PRODUCT_CONTEXT('',#2,'mechanical');
#9 = PRODUCT_DEFINITION_CONTEXT('part definition',#2,'design');
#204 = ( GEOMETRIC_REPRESENTATION_CONTEXT(3)
GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#208)) GLOBAL_UNIT_ASSIGNED_CONTEXT
((#205,#206,#207)) REPRESENTATION_CONTEXT('Context #1',
'3D Context with UNIT and UNCERTAINTY') );
#205 = ( LENGTH_UNIT() NAMED_UNIT(*) SI_UNIT(.MILLI.,.METRE.) );
#206 = ( NAMED_UNIT(*) PLANE_ANGLE_UNIT() SI_UNIT($,.RADIAN.) );
#207 = ( NAMED_UNIT(*) SI_UNIT($,.STERADIAN.) SOLID_ANGLE_UNIT() );
#208 = UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.E-07),#205,
'distance_accuracy_value','confusion accuracy');
#600 = ANNOTATION_CURVE_OCCURRENCE('position callout',(#601),#605);
#601 = PRESENTATION_STYLE_ASSIGNMENT((#602));
#602 = CURVE_STYLE('',#603,POSITIVE_LENGTH_MEASURE(0.13),#604);
#603 = DRAUGHTING_PRE_DEFINED_CURVE_FONT('continuous');
#604 = COLOUR_RGB('',0.,0.,0.);
#605 = GEOMETRIC_CURVE_SET('position',(#606,#607));
#606 = POLYLINE('',(#620,#621,#622,#623,#620));
#607 = POLYLINE('',(#624,#625));
#608 = PRESENTATION_STYLE_ASSIGNMENT((#602,#609));
#609 = FILL_AREA_STYLE('',(#619));
#610 = DRAUGHTING_CALLOUT('position callout',(#600,#611,#612));
#611 = ANNOTATION_CURVE_OCCURRENCE('position callout',(#601),#613);
#612 = ANNOTATION_FILL_AREA_OCCURRENCE('position callout',(#608),#632,#631);
#613 = GEOMETRIC_CURVE_SET('position',(#614));
#614 = POLYLINE('',(#626,#627));
#615 = ANNOTATION_PLANE('',(#618),#616,(#610));
#616 = PLANE('',#617);
#617 = AXIS2_PLACEMENT_3D('',#634,#635,#636);
#618 = PRESENTATION_STYLE_ASSIGNMENT((NULL_STYLE(.NULL.)));
#619 = FILL_AREA_STYLE_COLOUR('',#604);
#620 = CARTESIAN_POINT('',(35.,7.,10.));
#621 = CARTESIAN_POINT('',(55.,7.,10.));
#622 = CARTESIAN_POINT('',(55.,13.,10.));
#623 = CARTESIAN_POINT('',(35.,13.,10.));
#624 = CARTESIAN_POINT('',(41.,7.,10.));
#625 = CARTESIAN_POINT('',(41.,13.,10.));
#626 = CARTESIAN_POINT('',(35.,10.,10.));
#627 = CARTESIAN_POINT('',(33.,10.,10.));
#628 = CARTESIAN_POINT('',(34.,9.65,10.));
#629 = CARTESIAN_POINT('',(34.,10.35,10.));
#630 = DRAUGHTING_MODEL('',(#615),#204);
#631 = CARTESIAN_POINT('',(33.5,10.,10.));
#632 = ANNOTATION_FILL_AREA('position',(#633));
#633 = POLYLINE('',(#627,#628,#629,#627));
#634 = CARTESIAN_POINT('',(35.,7.,10.));
#635 = DIRECTION('',(0.,0.,1.));
#636 = DIRECTION('',(1.,0.,0.));
#702 = DERIVED_SHAPE_ASPECT('hole axis','',#4,.F.);
#712 = DATUM('','',#4,.F.,'A');
#714 = DATUM('','',#4,.F.,'B');
#720 = DATUM_SYSTEM('','',#4,.F.,(#721,#722,#723));
#721 = DATUM_REFERENCE_COMPARTMENT('',$,#4,.F.,#712,$);
#722 = DATUM_REFERENCE_COMPARTMENT('',$,#4,.F.,#714,$);
#723 = DATUM_REFERENCE_COMPARTMENT('',$,#4,.F.,#724,$);
#724 = DATUM('','',#4,.F.,'C');
#750 = ( GEOMETRIC_TOLERANCE('','',#751,#702)
GEOMETRIC_TOLERANCE_WITH_DATUM_REFERENCE((#720))
GEOMETRIC_TOLERANCE_WITH_MODIFIERS((.MAXIMUM_MATERIAL_REQUIREMENT.))
POSITION_TOLERANCE() );
#751 = LENGTH_MEASURE_WITH_UNIT(LENGTH_MEASURE(0.2),#205);— the callout #610, in draughting model #630, presents tolerance #750. The draughting model named here is always the global one. A reader can then show the picture and know what it means, or check that every semantic tolerance has a picture. The recommended practice prescribes the name string. Without this record the two halves of the PMI are unrelated, and a file can perfectly well have a semantic flatness tolerance and a graphical callout that happen to describe the same thing with no connection between them.
16.8 Saved views
Drawings have views; models with PMI have saved views: a camera position and the set of annotations visible from it, so that a receiving system can show the PMI the way the author arranged it rather than all at once.
#800 = DRAUGHTING_MODEL('view content 1',(#801,#610,#615),#204);
#801 = CAMERA_MODEL_D3('Top',#802,#803);
#802 = AXIS2_PLACEMENT_3D('',#804,#805,#806); /* the eye; it looks along its z axis */
#803 = VIEW_VOLUME(.PARALLEL.,#807,100.,0.,.F.,0.,.F.,.F.,#808);
#809 = MODEL_GEOMETRIC_VIEW('','',#801,#800);
#814 = MECHANICAL_DESIGN_AND_DRAUGHTING_RELATIONSHIP('','',#800,#630);Referred to above: 51 records from bracket-pmi.step
#204 = ( GEOMETRIC_REPRESENTATION_CONTEXT(3)
GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#208)) GLOBAL_UNIT_ASSIGNED_CONTEXT
((#205,#206,#207)) REPRESENTATION_CONTEXT('Context #1',
'3D Context with UNIT and UNCERTAINTY') );
#205 = ( LENGTH_UNIT() NAMED_UNIT(*) SI_UNIT(.MILLI.,.METRE.) );
#206 = ( NAMED_UNIT(*) PLANE_ANGLE_UNIT() SI_UNIT($,.RADIAN.) );
#207 = ( NAMED_UNIT(*) SI_UNIT($,.STERADIAN.) SOLID_ANGLE_UNIT() );
#208 = UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.E-07),#205,
'distance_accuracy_value','confusion accuracy');
#600 = ANNOTATION_CURVE_OCCURRENCE('position callout',(#601),#605);
#601 = PRESENTATION_STYLE_ASSIGNMENT((#602));
#602 = CURVE_STYLE('',#603,POSITIVE_LENGTH_MEASURE(0.13),#604);
#603 = DRAUGHTING_PRE_DEFINED_CURVE_FONT('continuous');
#604 = COLOUR_RGB('',0.,0.,0.);
#605 = GEOMETRIC_CURVE_SET('position',(#606,#607));
#606 = POLYLINE('',(#620,#621,#622,#623,#620));
#607 = POLYLINE('',(#624,#625));
#608 = PRESENTATION_STYLE_ASSIGNMENT((#602,#609));
#609 = FILL_AREA_STYLE('',(#619));
#610 = DRAUGHTING_CALLOUT('position callout',(#600,#611,#612));
#611 = ANNOTATION_CURVE_OCCURRENCE('position callout',(#601),#613);
#612 = ANNOTATION_FILL_AREA_OCCURRENCE('position callout',(#608),#632,#631);
#613 = GEOMETRIC_CURVE_SET('position',(#614));
#614 = POLYLINE('',(#626,#627));
#615 = ANNOTATION_PLANE('',(#618),#616,(#610));
#616 = PLANE('',#617);
#617 = AXIS2_PLACEMENT_3D('',#634,#635,#636);
#618 = PRESENTATION_STYLE_ASSIGNMENT((NULL_STYLE(.NULL.)));
#619 = FILL_AREA_STYLE_COLOUR('',#604);
#620 = CARTESIAN_POINT('',(35.,7.,10.));
#621 = CARTESIAN_POINT('',(55.,7.,10.));
#622 = CARTESIAN_POINT('',(55.,13.,10.));
#623 = CARTESIAN_POINT('',(35.,13.,10.));
#624 = CARTESIAN_POINT('',(41.,7.,10.));
#625 = CARTESIAN_POINT('',(41.,13.,10.));
#626 = CARTESIAN_POINT('',(35.,10.,10.));
#627 = CARTESIAN_POINT('',(33.,10.,10.));
#628 = CARTESIAN_POINT('',(34.,9.65,10.));
#629 = CARTESIAN_POINT('',(34.,10.35,10.));
#630 = DRAUGHTING_MODEL('',(#615),#204);
#631 = CARTESIAN_POINT('',(33.5,10.,10.));
#632 = ANNOTATION_FILL_AREA('position',(#633));
#633 = POLYLINE('',(#627,#628,#629,#627));
#634 = CARTESIAN_POINT('',(35.,7.,10.));
#635 = DIRECTION('',(0.,0.,1.));
#636 = DIRECTION('',(1.,0.,0.));
#804 = CARTESIAN_POINT('',(30.,10.,110.));
#805 = DIRECTION('',(0.,0.,-1.));
#806 = DIRECTION('',(-1.,0.,0.));
#807 = CARTESIAN_POINT('',(0.,0.,0.));
#808 = PLANAR_BOX('',80.,40.,#810);
#810 = AXIS2_PLACEMENT_3D('',#811,#812,#813);
#811 = CARTESIAN_POINT('',(-40.,-20.,100.));
#812 = DIRECTION('',(0.,0.,1.));
#813 = DIRECTION('',(1.,0.,0.));A saved view is a DRAUGHTING_ paired with a CAMERA_ among its items: the model says what is shown, the camera says from where. The recommended practice puts the view’s name on the camera, 'Top', and uses the draughting model’s name for the set of things shown. AP242 also has MODEL_, which ties the camera to its draughting model explicitly; the NIST test files that write it leave its name empty, so a reader should look for the view’s name on the camera. The camera’s view_ is the eye: its location is where the camera stands, here 100 mm above the bracket, and its z axis is the direction of view, here straight down. The VIEW_ gives the rest, and the recommended practice fixes most of it: a parallel projection, the projection point #807 at the camera’s own origin, no front or back clipping, and a view-plane distance equal to the distance from the eye to what it looks at, 100 mm down to the top face. In a parallel projection that distance does not set the zoom; the window does. Its window is a PLANAR_, 80 mm by 40, centred on the line of sight. The part’s geometry would appear in the view through a MAPPED_ of its shape representation among the model’s items; this view shows only the callout. The same callout may appear in several views. #814 relates the view to the global draughting model, with the view in rep_ and the global model in rep_: the direction Part 43 gives the attributes, and the one the recommended practice settled on in its version 4.0, after earlier versions had them the other way round. MECHANICAL_ does not exist in AP214, where a plain REPRESENTATION_ does the job. This is why a viewer sometimes shows six annotations out of ninety: it has opened the first view.
Every mainstream CAD system exports graphical PMI when asked, and most produce it as polylines; the tessellated form is less common. Semantic PMI is exported by NX, Creo, CATIA and SolidWorks in their current versions, with coverage that varies by tolerance type and is documented, system by system, in the CAx Implementor Forum’s implementation coverage matrix. NIST’s MBE PMI test models — a set of parts with known PMI and published answer keys — are the standard way to find out what a particular exporter gets right. It is normal for a file to have complete graphical PMI and partial semantic PMI: the graphical side is drawn from the CAD system’s display and is complete unless the export drops annotations, the semantic side requires the system to have modelled the tolerance as data in the first place, and many drawings-first workflows never did.
Graphical PMI is symbols drawn as curves: ANNOTATION_s grouped into DRAUGHTING_s on ANNOTATION_s, collected in a DRAUGHTING_. Semantic PMI is data: SHAPE_s linked to faces by GEOMETRIC_; DATUM_ → DATUM → DATUM_; GEOMETRIC_ subtypes (complex instances when they carry datums or modifiers) with a magnitude and a target; DIMENSIONAL_/LOCATION with a nominal value and a PLUS_. DRAUGHTING_ links a picture to its meaning; saved views are draughting models with a camera.