codebase="hhctrl.ocx#Version=4,73,8561,0"> codebase="hhctrl.ocx#Version=4,73,8561,0" > codebase="hhctrl.ocx#Version=4,73,8561,0" >
 
  ExternalReference object

An instance of an external reference inserted into a drawing.

VBA class name:

AcadExternalReference 

Create using:

ModelSpace.AttachExternalReference
PaperSpace.AttachExternalReference
Block.AttachExternalReference 

Access via:

ModelSpace.Item
PaperSpace.Item
Block.Item
SelectionSet.Item
Group.Item 

An external reference (xref) links another drawing to the current drawing. When you insert a drawing as a block, the block definition and all the associated geometry is stored in the current drawing database. It is not updated if the original drawing changes. When you insert a drawing as an xref, however, it is updated when the original drawing changes. A drawing containing xrefs always reflects the most current edits of each externally referenced file.

Like a block reference, AutoCAD displays an xref in the current drawing as a single object. However, an xref does not significantly increase the file size of the current drawing and cannot be exploded. As with block references, you can nest xrefs that are attached to your drawing.

To query or edit an existing external reference, use the following methods and properties:

Methods

ArrayPolar

ArrayRectangular

Copy

Delete

Explode

GetAttributes

GetBoundingBox

GetConstantAttributes

GetExtensionDictionary

GetXData

Highlight

IntersectWith

Mirror3D

Mirror

Move

Rotate3D

Rotate

ScaleEntity

SetXData

TransformBy

Update  

Properties

Application

Document

Handle

HasAttributes

HasExtensionDictionary

Hyperlinks

InsertionPoint

InsUnits

InsUnitsFactor

Layer

Linetype

LinetypeScale

Lineweight

Name

Normal

ObjectID

ObjectName

OwnerID

Path

PlotStyleName

Rotation

TrueColor

Visible

XEffectiveScaleFactor

XScaleFactor

YEffectiveScaleFactor

YScaleFactor

ZEffectiveScaleFactor

ZScaleFactor  

Events

Modified  

 

   Comments?