External References in AutoCAD: XREF - 1



Author Erhan Toker
Profession Architect M.Sc.
  Autodesk Authorized Consultant
  Software Specialist
e-mail  

AutoCAD 12 and higher versions

Today, I will start my series of articles, to explain what XREF objects are and how to use them in your drawings. Let’s quickly start with an example.

Fig.1
Fig. 1

In the example, you can see a single room. Let’s see what are the furnishings in this room (Fig. 2).

Fig.2
Fig. 2

In this figure, there are two separate drawings. What we are going to do is, to make these two separate drawings meet in the same drawing. Most of the project draftsman handles this drawing in one drawing only. Thus, they prepare furnishing and architecture in the same drawing. Although there are some certain advantages of working in one drawing, there are many disadvantages also. However, it is very useful to make drawings separately in different disciplines and then combining them in the same drawing by using XREF. Let me explain these advantages:

• First of all, floor plans are not made up of one single room as shown in this example; most of the time, we deal with floors that are made up of 20-100 different rooms.
• In such comprehensive projects; furnishing, electrical, mechanical and structural drawings are prepared by different companies, and each company prepares their own drawings.
• In traditional approach, revisions that is made over the architectural drawings are informed to these companies and send to them as one drawing and the companies revise their own drawings accordingly. However, in XREF solution, the others can directly see any revision.
• Works that are made in different disciplines directly reflect to the main drawing.
• As all the drawings that are inserted into the main drawing as XREF are counted as one single drawing element, they can be very easily controlled.
• Revision controls are very easily done.

Now, let’s take a look at how the XREF principle works: We have a project named as OP-ROOM and it represents an operation room. Let our architectural plan be OP-ROOM-ARCH.dwg, and the furnishing plan be OP-ROOM-EQUIP.dwg . I would like you to pay attention to the names of drawings (Fig. 3).

Fig.3
Fig. 3

After naming is finished, let’s execute XREF command. You can enter this by using XR abbreviation or from ‘Insert/External References…’ menu. When you enter command, XREF palette will open up (Fig. 4).

Fig.4
Fig. 4

On the top of palette, there is a button menu. The button on the left is a pull-down button and it is used for attaching a drawing, picture of DWF file. As we are dealing with drawings at this point, let’s select OP-ROOM-ARCH.dwg by using ‘ATTACH DWG…’ option. After selecting the drawing, a new window, which is similar to INSERT command, will open up. Note that, XREF is actually an advanced block and acts as a block inside the drawing, only difference is that it has some additional properties (Fig. 5).

Fig.5
Fig. 5

At the upper section of the window, there is file path, reference type and type of storing the external reference. It is same as the INSERT window. At this stage, reference type will be ‘Attachment’. ‘Overlay’ is used for drawings that you want to use as template and its behavior is totally different. ‘Path type’ defines how the path information of the other drawings will be stored. If ‘Full path’ is selected, then the file name is stored by using the complete file path. In this case, if you send your drawing to another place, then the same file directories must be present in the new computer also. If we select ‘Relative path’, then this means that the sub-drawings are present in the same directory. Thus, this is the best choice. After adjusting the properties, insert your XREF block at 0,0 point. Note that, insertion point and the origin points of other discipline drawings must be exactly same. Let’s do the same for OP-ROOM-EQUIP.dwg drawing also. Your drawing will look like as shown in Fig. 6.

Fig.6
Fig. 6

The real magic starts here. Now, let’s open OP-ROOM-EQUIP.dwg drawing and change the location of one of the drawings and then save (Fig. 7).

Fig.7
Fig. 7

Now, let’s close this drawing and return back to the main drawing. Through the XREF window, let’s enter OP-ROOM-EQUIP.dwg drawing to the concept menu ( by clicking on it with right mouse button ) and select ‘Reload’ option from the menu (Fig. 8).

Fig.8
Fig. 8

You will see that the furnishing revisions are immediately updated in the main drawing ( Fig. 9 ).

Fig.9
Fig. 9

In my next article, I will explain about the other properties of XREFs inside the drawings.

Have a nice day.

Technorati Tags: , ,

Bu yazinin Turkce’sini okumak icin basiniz.

Similar Posts

Rate this article:

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

12 Responses to “External References in AutoCAD: XREF - 1

  • 1
    Daily Autocad » Blog Archive
    February 23rd, 2007 09:30

    […] « External References in AutoCAD: XREF - 1 […]

  • 2
    XREF « BLAMancuso
    February 24th, 2007 00:19

    […] Chapter 1 […]

  • 3
    Daily Autocad » Blog Archive
    February 27th, 2007 08:18

    […] Articles: External References in AutoCAD: XREF - 1, External References in AutoCAD: XREF - […]

  • 4
    donna
    May 15th, 2007 07:38

    Hi, Erhan
    how are you?
    Now I try to use block and xref both in my drawings but I just donot know when I should use B when I should use Xref?
    Is that block only for the indivual component of the drawing while Xref more like to insert a drawing?
    Thank you !!

    Donna

  • 5
    Erhan Toker
    May 15th, 2007 08:39

    Hello Donna,
    You can insert a drwing into another drawing as a block. But this is not the same behavior as XREF does. XREF is an external reference and a BLOCK is internal. The differences are as below :
    1) Changes on XREF’ed drawing are reflected to the drawing. But, changes made on inserted blocks’ own drawing are not.
    2) The drawing elements ( LAYERS, BLOCKS, LINETYPES etc ) in XREFs can be inserted the drawing optionally. But, when you insert a drawing into the another drawing as a block, whole elements will be added to new drawing. Sometimes it can be boring and unneccessary.

    Every drawing can be used as BLOCK or XREF in another drawing. Every block can have another block definitions inside of itself. Decision is yours. But using XREF is more elegant than blocks as template ( stencil ). Using blocks as equipment drawings like table, chair, symbols etc. is more suitable then using XREFS for the same purpose.

    I hope this helps

  • 6
    yassin mohamed abd el gawad
    October 16th, 2007 19:52

    thanks a lot , it is so helpfull

  • 7
    r2ojr
    November 10th, 2007 13:27

    hi mr. toker,
    i understand the magics of xrefs but i seldom use it that’s because we don’t work w/ other professionals & we undertake small projects only. however, we do construction drawings with detailed layout of timber frames, electrical & drainage which mostly are subject to revisions. do you suggest using xrefs despite the size & type of projects that we have? thanks!

  • 8
    Sony
    December 20th, 2007 22:31

    your blog is very helpful.

    i have few xrefs in my drawing. some of them have this yellow triangle with an exclamation mark and says’needs reloading’. if i rt.click and reload it, it doesn’t work.

    thanks for your help.
    sony

  • 9
    Dingus
    December 21st, 2007 12:57

    I inserted an xRef into a drawing set with 0,0 in the correct place, the xRef was set to insert at 0,0 but ended up in a different part of the model space. Is there a system variable or something that needs setting?

  • 10
    Erhan Toker
    December 24th, 2007 11:49

    Hello Dingus,

    “… but ended up in a different part of the model space …”. It sounds that your XREF scaled abnormaly. Please check the article : http://www.dailyautocad.com/autocad/123/

    Hope this helps

  • 11
    Erhan Toker
    December 24th, 2007 11:52

    Hello Sony,

    Please check all drawing paths of probleming xrefs. Be sure that ‘Support File Search Path’ ( in Options dialog ) has all paths that your xrefs reside.

  • 12
    Dingus
    January 10th, 2008 16:59

    Thanks for the reply Erhan, I have had this problem before, a while ago.
    INSBASE needed setting to 0,0. For some reason the basepoint in separate drawings can be different…if that makes sense?

Leave a Reply