Development version.
Forge is under active development and testing. APIs, behaviour, coverage and
verification results may be incomplete or change without notice; published
PASS results are not a support guarantee or production-readiness claim.
Shape.attach
Anchor a supported feature explicitly to another Shape.
Signature
Shape.attach(self, target, *, parent=<Anchor.TOP: 'top'>, child=<Anchor.BOTTOM: 'bottom'>, offset=(0, 0))Use when
Use this lower-level feature-placement form when parent/child Anchor references are required explicitly.
Limits
This is legacy within-component feature anchoring. Prefer on() for simple face placement. It is separate from component occurrence attachment used by assemblies.
Parameters
target— Existing parent Shape that receives the feature.parent— Anchor on the target Shape. Defaults to Anchor.TOP.child— Anchor on the feature being placed. Defaults to Anchor.BOTTOM.offset— In-plane (x, y) offset on the parent anchor surface, in mm. Defaults to (0, 0).
Example
Boss(d=7, h=12).attach(case, parent=Anchor.INNER_BOTTOM, offset=(10, 10))