Hide menu
Loading...
Searching...
No Matches
PMI Example

Table of Contents

Explores PMI entities attached to various entities inside a 3D model.

Description

To explore PMI Data elements stored in ModelData_PMITable we use iterator class.

Semantic and Graphical elements may be accessed by ModelData_PMIData class.

To explore PMI elements we use a special ModelData_PMIGraphicalElementComponentVisitor and visitor classes. Here we redefine methods which are called when a component of a particular type is being visited.

Part: nist_ctc_02_asme1
PMI Table:
|__PMI Data: Feature Control Frame (18)
| |__Semantic element:
| | |__Geometric tolerance
| | |__ Magnitude: 1
| | |__ LengthUnit: 0
| | |__ Modifier: LeastMaterialRequirement
| | |__ DatumRefCompartment:
| | | |__ References:
| | | |__ DatumRef: precedence=1, targetLabel=A
| | |__ DatumRefCompartment:
| | | |__ References:
| | | |__ DatumRef: precedence=1, targetLabel=B
| | |__ DatumRefCompartment:
| | |__ References:
| | |__ DatumRef: precedence=1, targetLabel=C
| |__Graphical element:
| |__Outline
| |__ PolyLine set [26 polylines]

For more information about PMI entities please visit the PMI Guide.

Usage

You can try this example with the following model:

./examples/models/nist_ctc_02_asme1_ap242-1.stp

Files