ADE User Guide > ADE Server Class Reference > CAEngine
The currently open module.
Dim Obj As Object
Set Obj = ADE.CurrentModule
Newly created objects are placed into CurrentModule; so, you should set CurrentModule before creating any new objects. Setting
CurrentModule = Nothing means that no module is open,so all new objects are created in the top-level Module or Model of the currently opened model.
- 44 – “Module could not be set”