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.
Assembly.with_anchor
Expose one named attachment datum owned by this assembly.
Signature
Assembly.with_anchor(self, name, target, reference, *, offset=(0, 0))Use when
A mounting/reference name belongs to the meaning of the larger assembly rather than to the generic reusable component itself.
Limits
target must already belong to this Assembly. with_anchor() exposes a reference; it does not create an attachment by itself.
Parameters
name— Public name for the assembly-owned attachment datum.target— Component occurrence in this Assembly that owns the real attachment reference.reference— Anchor, named component anchor, AnchorFrame or AnchorTopology on target.offset— Optional in-plane (u, v) correction passed through when attaching, in mm.
Example
frame = (left + right).with_anchor("front_mount", left, Anchor.FRONT_TOP_LEFT)