step-examples/12-8-mixed/M108.stp
Sources
- deduced from ISO 10303-238 §5.8 freeform_milling_operation surface-tolerance requirement
Sender
deduced — STEP-NC publisher omitting surface-deviation tolerance attribute
Description
A `FREEFORM_MILLING_OPERATION` is declared without an associated surface-deviation tolerance (chord-tolerance / scallop-height). The CAM consumer either invents a default (often loose, leaving visible cusps) or rejects the operation. Bug-reporter language: "AP238 freeform op has no tolerance", "STEP-NC scallop height missing", "surface finish quality unspecified".
Reproducer recipe
`FREEFORM_MILLING_OPERATION($, $, $, $, $, $)` — all optional tolerance attributes left as `$`.
Expected kernel behavior
reject as ambiguous; or apply a documented default and warn.
Notes
Synonyms: "freeform tolerance missing", "AP238 surface deviation unspecified", "freeform milling no chord tolerance", "scallop-height attribute absent". Synonyms: "freeform tolerance missing", "AP238 surface deviation unspecified".
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Byte assertions
contains(b'AP238_STEP_NC_MIM')contains(b'FREEFORM_MILLING_OPERATION')
Tier-3 assertions
shape_null == True
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* M108: AP238 freeform_milling_operation without surface-tolerance attribute */ 3/* DEFECT: FREEFORM_MILLING_OPERATION has all tolerance attributes set to $ */ 4/* No chord-tolerance or scallop-height â surface finish quality unspecified */ 5/* Violates ISO 10303-238 §5.8 freeform_milling_operation surface-tolerance requirement */ 6/* Byte assertion: contains(b'AP238_STEP_NC_MIM') */ 7/* Byte assertion: contains(b'FREEFORM_MILLING_OPERATION') */ 8HEADER; 9FILE_DESCRIPTION(('M108: AP238 freeform milling operation missing surface tolerance'),'2;1'); 10FILE_NAME('M108.stp','2026-06-21T00:00:00',(''),(''),'cad-research-suite','',''); 11/* Byte assertion: contains(b'AP238_STEP_NC_MIM') */ 12FILE_SCHEMA(('AP238_STEP_NC_MIM { 1 0 10303 238 1 0 0 }')); 13ENDSEC; 14DATA; 15#1=APPLICATION_CONTEXT('step_nc_mim'); 16#2=APPLICATION_PROTOCOL_DEFINITION('international standard', 17 'ap238_step_nc_mim',2007,#1); 18/* Standard unit context â mm */ 19#10=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 20#11=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 21#12=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 22#13=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(0.001),#10, 23 'distance_accuracy_value','maximum model space distance between geometric entities'); 24#14=(GEOMETRIC_REPRESENTATION_CONTEXT(3) 25 GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#13)) 26 GLOBAL_UNIT_ASSIGNED_CONTEXT((#10,#11,#12)) 27 REPRESENTATION_CONTEXT('nc','3D')); 28/* Target machined feature â a freeform (sculptured) surface area */ 29#50=MACHINED_FEATURE('freeform_surface_a',$,$,$,$,$); 30/* 6mm ball-end mill for freeform 5-axis milling â requires a tolerance to drive step-over */ 31#60=MACHINING_TOOL('ballmill_6mm',$,$,$); 32/* Byte assertion: contains(b'FREEFORM_MILLING_OPERATION') */ 33/* DEFECT: all tolerance / quality attributes are $ (absent) */ 34/* chord_tolerance=$, scallop_height=$, surface_deviation=$, quality_standard=$ */ 35/* Without any tolerance the CAM consumer cannot compute correct step-over distance *) */ 36#70=FREEFORM_MILLING_OPERATION('op_freeform',#60,$,$,$,$,$,$,#50,$,$); 37#80=MACHINING_WORKINGSTEP('step_freeform',#50,#70,$); 38#90=WORKPLAN('main',(#80),$,$,$); 39/* GEOMETRIC_CURVE_SET IS the model entity â OCC yields empty */ 40#300=GEOMETRIC_CURVE_SET('ap238-freeform-milling-no-surface-tolerance', 41 (#50,#60,#70,#80,#90)); 42/* Product chain */ 43#400=APPLICATION_CONTEXT('mechanical design'); 44#401=PRODUCT_CONTEXT('',#400,'mechanical'); 45#402=PRODUCT('M108','M108','M108',(#401)); 46#403=PRODUCT_DEFINITION_FORMATION('','',#402); 47#404=PRODUCT_DEFINITION_CONTEXT(#400,'design'); 48#405=PRODUCT_DEFINITION('','',#403,#404); 49#406=PRODUCT_DEFINITION_SHAPE('','',#405); 50#407=SHAPE_REPRESENTATION('',(#300),#14); 51#408=SHAPE_DEFINITION_REPRESENTATION(#406,#407); 52ENDSEC; 53END-ISO-10303-21;