Difference between revisions of "CAEngine::CurrentModule"
(Created page with '<< class CAEngine = Description = The currently open module. = Data type = CAObject = Access = read/write property = Example Usage = Dim Obj As Object …') |
|||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
− | [[ | + | <languages /> |
+ | <translate> | ||
+ | <!--T:1--> | ||
+ | [[Category:ADE User Guide]] | ||
+ | [[ADE User Guide]] > [[ADE Server Class Reference]] > [[CAEngine]] | ||
− | = Description = | + | == Description == <!--T:2--> |
+ | <!--T:3--> | ||
The currently open module. | The currently open module. | ||
− | = Data type = | + | == Data type == <!--T:4--> |
+ | <!--T:5--> | ||
[[CAObject]] | [[CAObject]] | ||
− | = Access = | + | == Access == <!--T:6--> |
+ | <!--T:7--> | ||
read/write property | read/write property | ||
− | = Example Usage = | + | == Example Usage == <!--T:8--> |
− | + | <!--T:9--> | |
− | + | :<code>Dim Obj As Object</code> | |
+ | :<code>Set Obj = ADE.CurrentModule</code> | ||
− | = Remarks = | + | == Remarks == <!--T:10--> |
− | Newly created objects are placed into [[CurrentModule]]; so, you should set [[CurrentModule]] before | + | <!--T:11--> |
− | creating any new objects. Setting <code> | + | Newly created objects are placed into [[CurrentModule]]; so, you should set [[CurrentModule]] before creating any new objects. Setting <code>CurrentModule = Nothing</code> means that no module is open,so all new objects are created in the top-level Module or Model of the currently opened model. |
− | = API errors = | + | == API errors == <!--T:12--> |
+ | <!--T:13--> | ||
* 44 – “Module could not be set” | * 44 – “Module could not be set” | ||
+ | </translate> |
Latest revision as of 18:57, 14 January 2016
ADE User Guide > ADE Server Class Reference > CAEngine
Description
The currently open module.
Data type
Access
read/write property
Example Usage
Dim Obj As Object
Set Obj = ADE.CurrentModule
Remarks
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.
API errors
- 44 – “Module could not be set”
Comments
Enable comment auto-refresher