文档层事件在 AutoCAD VBA 中是永久的。也就是说,会在加载 VBA 工程时自动启用。但不会在其他控制器(例如 VB)中启用。因此,对于所有其他 ActiveX Automation 控制器,必须启用文档层事件。
- Activate
- BeginDocClose
- BeginCommand
- BeginDoubleClick
- BeginLISP
- BeginPlot
- BeginRightClick
- BeginSave
- BeginShortcutMenuCommand
- BeginShortcutMenuDefault
- BeginShortcutMenuEdit
- BeginShortcutMenuGrip
- BeginShortcutMenuOsnap
- Deactivate
- EndCommand
- EndLISP
- EndPlot
- EndSave
- EndShortcutMenu
- LayoutSwitched
- LISPCancelled
- ObjectAdded
- ObjectErased
- ObjectModified
- SelectionChanged
- WindowChanged
- WindowMovedOrResized