codebase="hhctrl.ocx#Version=4,73,8561,0"> codebase="hhctrl.ocx#Version=4,73,8561,0" > codebase="hhctrl.ocx#Version=4,73,8561,0" >
 
  Layer 对象

图层,数据的逻辑分组,类似于覆叠于图形上的透明胶片。

VBA 类名:

AcadLayer 

创建方法:

Layers.Add 

访问途径:

Layers.Item
Document.ActiveLayer 

所有新的对象被加到活动的图层上。要设置一个图层为活动,可使用 ActiveLayer 属性。

在2005版本中,该对象增加了 Description 属性和 Used 属性。这些属性不能在之前版本中使用。

要创建一个图层,可使用 Add 方法。要编辑或查询图层,使用以下方法和属性: 

方法

Delete

GetExtensionDictionary

GetXData

SetXData

属性

Application

Description

Document

Freeze

Handle

HasExtensionDictionary

LayerOn

Linetype

Lineweight

Lock

Name

ObjectID

ObjectName

OwnerID

PlotStyleName

Plottable

TrueColor

Used

ViewportDefault  

事件

Modified