Next Gen STEP AP242 Native-ish BREP Geometric Modeling Kernel
// One engineering requirement crosses data, specialization and recipe boundaries.
Record BoreSpec {
diameter: Length
width: Length
}
Static standardBore: BoreSpec = BoreSpec {
diameter: 8mm tol +0.10mm -0.05mm
width: 40mm
}
Template<spec: BoreSpec>
Model PlateFamily {
units: mm
Feature Drill(diameter: Length) -> Hole<Shaft> {
let inspection: Length = diameter
return Hole<Shaft> {
on: +Z
center: Point2(0mm, 0mm)
diameter: inspection
end: ThroughAll
}
}
Box Body { size: [spec.width, 30mm, 8mm] }
Modify Body { Feature Mount = Drill(diameter: spec.diameter) }
Pmi {
HoleDiameter MountSize { target: Mount dimension: spec.diameter }
}
}
Model TolerancedProduct = PlateFamily<spec: standardBore>