CHAPTER 5
As you get experience in AutoCAD, you will soon realize that you have to repeat drawing and editing the same objects over and over. AutoCAD provides tools to empower the reuse of objects either in the same drawing or between drawings.
One way to reuse objects is by creating copies. You can copy any object in the drawing as many times as you like to reuse it anywhere in the drawing. Let’s assume that you create copies of a selection of objects a number of times, all over the drawing. Now assume that your client decided that part of those (repeated) objects need to be amended. If your selection was made of plain geometries (polylines, arcs, lines, etc.), you would have to find each of the copies and edit or replace the affected area for each of the instances.
In this chapter you are going to learn how to work with two great methods to reuse objects in a very effective way: blocks and external references (XREFs).
A block is a single object composed other objects, and each element within the block may have its own property set.
Blocks are time and file-size savers. When a block is defined, AutoCAD stores it in an internal library in the current drawing, called Block Table. A block may exist in the drawing even if not used (inserted) anywhere, and if you create several instances of the block, either by re-inserting or by copying, all instances reference to the block library. If you edit a single block reference, all other blocks are equally updated.
Command: BLOCK
Alias: B or BL
Before you create a block, first draw the element as you would do when creating any drawing. To illustrate creating a block, we are going to work on the Column Base drawing we created in previous chapters.
If AutoCAD is not already opened, open it now, and then open the drawing ColumnBase.dwg located in the Chapter 05 folder.
The drawing is composed of a blue polyline defining the column base outline and gray lines defining the column base transitions.
The elements are properly set on defined layers, but there are some practices that, although not required, become very handy when working with simple blocks like this:
Again, these are not rules, but become handy on low-density blocks. For more complex blocks, such as details, you may want to maintain all properties so that you can manage by other means.
Let’s change the objects properties for this block:
The source objects are now erased and the newly created block reference is inserted, in the current layer, where the source objects were before.
Insert a block that exists in the current drawing’s Block Table
Command: INSERT
Alias: I or INS
Now that we have a block, we can insert additional instances of the block in the drawing, or you can copy the existing instances. For now, let’s see how to insert a block:
Insert an existing drawing as a block
Frequently, you will need to insert drawings from a file library that you have previously created or downloaded from a manufacturer’s website. Ideally the drawing to be inserted is a regular drawing and not a defined block in the drawing, as a new block definition containing the elements in the selected drawing is created upon insertion.
To insert an existing drawing as a block in the current drawing:
Command: BEDIT
Alias: BE
You may need to make changes to the block. For example: I really didn’t like the way the column base transition lines are displayed, and they may plot to bold, depending on the plot style definition. We are going to edit the column base block so that the transition lines are gray:
The drawing area background color change to gray and the Block Editor contextual tab is loaded in the ribbon. You are now in the Block Editor mode.

Figure 100: Block Editor Contextual Tab
Tip: When creating a block, you have the option to avoid the block to be exploded. This is quite helpful to avoid accidentally exploding blocks. This property can be changed from the Properties palette when on Block Editor mode.
Explode the sink block:
Command: X8 EXPLODE
Select objects: Select the sink block and press Enter or Spacebar.
The object is no longer a block.
Command: I8
The Insert dialog opens; select sink from the Name list and click OK.
Specify insertion point or [Basepoint/Scale/X/Y/Z/Rotate]: Select a point in the drawing area.
A new instance of the sink block is inserted because the sink block definition remains in the drawing’s Block Table.
You frequently will need to write a block to file so you can reuse it in future drawings. To write a block to a file, the selection does not have to be a block; it could be any selection set, including sets containing blocks and other non-block objects.
Command: WBLOCK
Alias: WB
Let’s write the Column Base block to a file:

Figure 101: Write Block
The block is now saved, and you can reuse it in any future drawings.
Save and close the drawing.
Note: The resulting saved file does not contain a block; it contains the objects composing the selected block.
Tip: You can use Ctrl+C to copy objects from a drawing and Ctrl+V to paste in another drawing.
An external reference (Xref) is similar to a block, but instead of saving the block in the current drawing’s block table, it is linked to an external file that could be in any folder in the file system. The Xref definition is saved in the Xref table and like with blocks, deleting an Xref instance from the drawing does not remove the file from the Xref table.
Xref is widely used when working with big files from different disciplines, and to facilitate design management. For example, in an architectural design, you can have a main floor plan that is an Xref into an interior design, structural, landscape, mechanical, or other plans.
Xref may be nested. You can attach an Xref that already contains other Xref attached, and this file could be an Xref for another drawing, and so on.
Because you can unload and reload an Xref on demand, its proper use may significantly improve drawing performance and design productivity, and also facilitates project management.
When an Xref is updated, all host drawings are automatically updated when closed, and if the host drawing is opened, a balloon notifies the user that the Xref was saved and needs to be updated.
You can freeze or turn layers off within the Xref.
Xrefs cannot be exploded unless bound (which turns the Xref into a block).
Xref types
Command: ATTACH
To edit an Xref, just open the file, make the changes, and save. The host drawing receives a notification every time an attachment is saved.
To quick-open an Xref:

You can attach virtually any number of Xrefs, and you have full control over how and when they are visible, or if you need to detach any.
When you attach an Xref, AutoCAD shows the layers for each Xref prefixed by the Xref name, such as Landscape|L-Pool. You can change the layer properties and visibility without affecting the source, and any layer property change persists even if you reload the Xref, or across AutoCAD sections by default.
Tip: The layer visibility state is controlled by a system variable called VISRETAIN, and is drawing-persistent. When VISRETAIN = 1, the host drawing preserves layers’ property changes. When VISRETAIN = 0, the layers’ properties are restored every time the Xref is reloaded.
AutoCAD offers a tool to support managing Xrefs, called XRef Manager. Follow these steps to open the Xref Manager and manage Xrefs:

Note: When binding Xrefs, the Bind mode preserves the layer, blocks, and other drawing elements’ prefixes (the Xref name), while Insert removes all prefixes.
In this chapter, you learned how to work with blocks and external references, probably the most-used techniques to reuse drawings. Many design companies use blocks and Xrefs to define title blocks and detail sheets in drawings. We will accomplish this in Chapter 7.