step-examples/12-7-pmi/Pmi086.stp
Sources
- OCCT GitHub#634
- OCCT MANTIS#0033165 (OCCT MANTIS tracker 502 as of 2026-05-02)
Description
A document with `GENERAL_PROPERTY` entries (AP242 free-form attributes) writes to STEP successfully. But the writer routes attributes through the styled-item pipeline only for shapes with non-trivial geometry; empty shape representations lose their general attributes even when they have valuable metadata.
Reproducer recipe
Document with one part marked as a "configuration placeholder" (no geometry, only metadata: revision, status, owner). Writer drops the metadata.
Expected kernel behavior
Heal and accept: attribute emission iterates every label in the XCAF document, regardless of whether the label has geometry attached.
Notes
**See also**: A076. Synonyms: "empty IGES/STEP write loses general attributes", "writing empty doc strips general attributes", "general attributes dropped on empty write".
Expected validation
occt=shape(1)/shape(1) gmsh=shape(1) ifc=schema_n/a
Byte assertions
count_entity_def(b'GENERAL_PROPERTY') == 3contains(b'ANNOTATION_PLANE')
Tier-3 assertions
shape_null == Falsen_vertices_total == 1
Cross-references
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* Pmi086: Three GENERAL_PROPERTY entries carry free-form attributes ('revision', 'status', 'owner') on a configuration-placeholder part with no geometry; the writer routes attribute emission through the styled-item pipeline which is skipped for parts with empty shape representations; on round-trip all three GENERAL_PROPERTY entities are silently dropped; receivers must emit GENERAL_PROPERTY entries for every labelled part regardless of whether the label has geometry; GEOMETRIC_CURVE_SET IS model entity â OCC yields empty */ 3HEADER; 4FILE_DESCRIPTION(('Pmi086'),'2;1'); 5FILE_NAME('Pmi086.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','',''); 6FILE_SCHEMA(('AP242_MANAGED_MODEL_BASED_3D_ENGINEERING_MIM_LF { 1 0 10303 442 1 1 4 }')); 7ENDSEC; 8DATA; 9#9000=APPLICATION_CONTEXT('mechanical design'); 10#1=CARTESIAN_POINT('',(0.0,0.0,0.0)); 11#2=GEOMETRIC_CURVE_SET('',(#1)); 12#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 13#9051=PRODUCT('Pmi086','Pmi086','',(#9050)); 14#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 15#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 16#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 17#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 18#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 19#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 20#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 21#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 22#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 23#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#2),#9060); 24#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 25#9063=GENERAL_PROPERTY('revision','configuration placeholder revision','A'); 26#9064=GENERAL_PROPERTY('status','configuration placeholder status','released'); 27#9065=GENERAL_PROPERTY('owner','configuration placeholder owner','design-eng'); 28#9066=PROPERTY_DEFINITION('revision_prop','part revision attr',#9055); 29#9067=PROPERTY_DEFINITION('status_prop','part status attr',#9055); 30#9068=PROPERTY_DEFINITION('owner_prop','part owner attr',#9055); 31#9069=CARTESIAN_POINT('ann_origin',(0.0,0.0,0.0)); 32#9070=DIRECTION('ann_normal',(0.0,0.0,1.0)); 33#9071=DIRECTION('ann_xdir',(1.0,0.0,0.0)); 34#9072=AXIS2_PLACEMENT_3D('ann_plc',#9069,#9070,#9071); 35#9073=ANNOTATION_PLANE('title_block_plane',(),#9072,()); 36ENDSEC; 37END-ISO-10303-21;