An external reference (xref) shows another drawing inside this one and follows that file as it changes. Use xrefs to share a site plan or a consultant's drawing between several drawings.
Before you start
- Any paid licence to change xrefs ("Changing external references needs the editing licence.").
- The drawing to reference, as a
.stcador.dxffile. DWG files cannot be xrefs.
Steps: attach an xref
- Click Insert > Block > External References….
- Enter the Insertion point, Scale and Rotation below the list. Tick Overlay if this reference should not be carried along when this drawing is itself attached elsewhere.
- Click Attach… and choose a
.stcador.dxfdrawing. The status says "NAME attached." Attaching the same file again only adds another reference.
The referenced drawing's model space is placed at its origin, in its own units: a drawing in metres shows at real size in a millimetre drawing. Its solids, sketches, drawing views and tables are not shown; you are told when attaching.
The External References dialog
| Column or button | What it does |
|---|---|
| Status | Loaded, Unloaded, Not found, Unreadable or Circular. |
| Saved path / Found at | The path stored in the drawing and the file actually read. |
| Reload | Reads the file again. |
| Unload | Hides its objects until reloaded; references stay. |
| Detach | Removes the xref with every reference. |
| Bind | Makes it an ordinary block; its layers and styles become Site$0$Walls. |
| Bind as Insert | Binds as if inserted: `Site |
| Rename… | Renames it; its references and `Site |
| Change Path… | Points it at another file. |
Every change is one undo step. -XREF (-XR) does the same on the command line: Attach, Overlay, Reload, REName, Unload, Detach, Bind, Insert, Path, List (names separated by commas, * for all).
Names, layers and nesting
- What the xref's objects use comes along with the xref's name and
|in front: layers (Site|Walls), linetypes, text and dimension styles and blocks. - You can turn those layers off, freeze them or change their colour, and that stays when the xref is reloaded. They cannot be made current, renamed or deleted on their own.
- Xrefs attached inside the referenced drawing come too (as
Site|Tree); its overlays do not. A drawing that would contain itself is refused, or the part that would is left out with a note. - Xrefs are not listed in the Blocks panel, cannot be edited in the block editor or exploded (bind them first), and
PURGEleaves them alone.
Paths and missing files
- The path is saved relative to this drawing's folder when the file is on the same drive.
- When the drawing opens, each xref is read again. If the file is not at its saved path, its last location and then a file of the same name in the drawing's folder are tried, and you are told. If none is found, the copy saved in the drawing is shown with a warning; use Change Path….
- When a referenced file changes while the drawing is open, the status bar says which xref to reload. It is never changed behind your back.
Example
Attach Site-survey.stcad (in metres) to House.stcad (in millimetres) at 0,0, scale 1. The survey shows at real size. Freeze Site-survey|TREES to declutter, and reload after the surveyor sends an update.
Tips and common mistakes
- Clip an xref with
XCLIPand edit it in place withREFEDIT. - DXF export lists xrefs as not exported.
- A DXF file that cannot be read is refused with the reason.
Troubleshooting
| Message or symptom | What it means and what to do |
|---|---|
| "Select an external reference in the list first." | Click an xref row, then the button. |
| "the file ... was not found" | Check the path, or use Change Path…. |
| "the drawing already has a block named "NAME"" | Rename the block or the xref. |
| "external reference "NAME" already refers to another file (...)" | Use another name, or Change Path… on the existing xref. |
| "an external reference needs a name without ' | ' and not starting with '*'" |
| Status Circular | The drawings refer to each other; detach one of the references. |
Related
Related
- Fitting an object into a space
- Grid, snap, ortho and polar tracking
- Object snaps and object snap tracking
- Entering exact points, distances and angles
- Constraint hints while drawing
- Drawing lines
Still stuck? Open a support ticket or use Help, then Contact support in Stratal CAD.