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 对象

插入到图形的外部参照的实例。(2006修改)

VBA 类名

AcadExternalReference 

创建方法

ModelSpace.AddExternalReference
PaperSpace.AddExternalReference
Block.AddExternalReference 

访问途径

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

外部参照(xref)是将其它图形链接到当前图形。当将图形作为一个块插入时,块定义及所有关联的几何体被存储到当前图形的数据库中。当源图改变时它并不能自动更新。当将图形作为外部参照插入时,当源图改变时可以及时更新到参照它的图形上。包含外部参照的图形会显示每个外部参照文件的当前最新版本。

如同块参照,AutoCAD在当前图形中作为单个对象显示一个外部参照。然而,外部参照并没有显著的增加当前文件的大小,也不能被分解。跟块参照一样,可以嵌套附着到图形中的外部参照。

查询和编辑已存在的外部参照,用如下方法和属性:

方法

ArrayPolar

ArrayRectangular

Copy

Delete

GetBoundingBox

GetConstantAttributes

GetExtensionDictionary

GetXData

Highlight

IntersectWith

Mirror3D

Mirror

Move

Rotate3D

Rotate

ScaleEntity

SetXData

TransformBy

Update  

属性

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

事件

Modified  

说明

该对象在 2006 版本中增加支持 InsUnitsInsUnitsFactorXEffectiveScaleFactorYEffectiveScaleFactorZEffectiveScaleFactor 属性。