Sheet: Attach Xref
xref_attachAttach an external reference to a drawing and insert it once, avoiding duplicate blocks. Set path, insertion point, scale, rotation, and attach or overlay type.
Instructions
Attach an external reference and insert it once. Both engines.
The block takes the referenced file's stem as its name. Refusals, all
before anything is written: a kind that is not 'attach' or 'overlay', a
file that does not exist, a non-positive or non-finite scale, and a block
name the drawing already holds — detach it first with
xref_manage(action='detach').
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Insertion X (WCS). | |
| y | No | Insertion Y (WCS). | |
| kind | No | 'attach' (the reference's own xrefs come with it) or 'overlay' (they do not, so a circular reference cannot form). | attach |
| path | Yes | Full path of the drawing to reference. | |
| scale | No | Uniform scale. | |
| rotation | No | Rotation in degrees, CCW from +X. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||