Xrefs, or external references, are essential tools for efficiently managing complex CAD projects. In this guide, we’ll cover the key steps for using Xrefs in ZWCAD, from attaching external files to managing them within your drawings.
Xref is the external reference in CAD,which plays a crucial role in CAD workflows, allowing you to link drawings together while keeping files organized and manageable. Let’s first explore what Xrefs are.
An Xref, or external reference, in CAD software refers to a drawing file that is referenced into another drawing but not embedded within it. It acts as a link between separate files, allowing users to manage and update their drawings without altering the original source file.
Now that you have a basic understanding of what Xrefs are, let’s take a look at how to use this function in ZWCAD.
There are more than three kinds of methods. You can choose one of them to fit your needs.
Method 1 : Use "XREF" Command.
Type "XREF" in the command line and press Enter. Then a dialog box will pop up, click the [Attach DWG] icon, select the reference file in your computer. Open your reference file and the [Attach External Reference] dialog box will show up.

Method 2 : Use "XATTACH" Command.
Input the command "XATTACH", select reference file in your computer. Then [Attach External Reference] will automatically display after opeing the file.

Method 3 : Find "DWG Reference" in the Insert menu.
Find Insert in the classic menu bar and choose "DWG Reference" from the dropdown menu. Then select and open reference file, [Attach External Reference] dialog box will appear on screen.

Now that you've accessed the dialog, the next step is setting up the external reference file.
Name & Browse:
Use the Browse button to locate the DWG file on your system. Once selected, the file name will appear in the dialog box. If you choose the wrong file by mistake, you can click the button and open the right reference file.

Reference Type:
Choose whether the file will be attached as a Attachment or Overlay.

Path Type:
The path type refers to the storage path type of external reference. Different path types have different degrees of flexibility when copying files. In the [Attach External Reference] dialog box, users can choose different path types, which are Full path, Relative path, and No path.

Here are definitions and recommended scenarios of these three path types.
| Path Type | Definition | Recommended Scenario |
|---|---|---|
| Full path/Absolute path | The main drawing saves the exact location of external reference. | The source files of the external reference (xref for short) are stored in a fixed folder, and the main dwg file is often moved around. |
| Relative path | The position of the external reference relative to the main drawing will be saved. | The main dwg drawing and the source file of the external reference are in the same project folder, and can exist across different levels of the directory under this project folder. |
| No path | The main dwg drawing will find external references in the folder (not including the sub-folder). | The main dwg drawing and the source file of the external reference are in the same folder, at the same level of the directory. |
Once the file is referenced, configure how the Xref appears in your drawing:

Once an Xref is attached, it’s important to manage it properly. There are 5 options in the [External Reference Manager], which are Attach, Unload, Reload, Detach, and Bind. Here are the key options for managing your Xrefs:

Q: ZWCAD Fails to bind the external reference, error message"Some objects in one or more specified external references cannot be bound." occurs.
A: Input ZWWCLONEPROXYPOLICY in the command line, press Enter, and change its value to 3, then binding the external reference will be supported. (Causes: The external reference contains custom objects, and the default setting does not support the copying of custom objects.)
Q: When inserting a drawing file as an external reference in ZWCAD, the command line prompts: ** Error: "XXX" is already a standard block in the current drawing. *Invalid*, and the external reference cannot be inserted.
A: Rename the drawing of the external reference, or rename the block in the current drawing. (The command to rename the block is RENAME.)
Q: What is the difference between Xref and block?
A: As a part of the drawing, a block is a collection of objects grouped together into a single entity. It is stored directly within the drawing and used for repetitive elements. An Xref is an external file linked to the main drawing. Changes made to the source Xref automatically update in the drawing.
Xrefs are a powerful feature in ZWCAD that streamline the design process, enhance collaboration, and keep your drawing files organized. By following the steps outlined in this guide, you can effectively manage external references and keep your projects up-to-date with ease.