Difference between revisions of "CAEngine::CurrentModule"

(Marked this version for translation)
Line 1: Line 1:
 
<languages />
 
<languages />
 
<translate>
 
<translate>
 +
<!--T:1-->
 
[[Category:ADE User Guide]]
 
[[Category:ADE User Guide]]
 
[[ADE User Guide]] > [[ADE Server Class Reference]] > [[CAEngine]]
 
[[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-->
  
  Dim Obj As Object
+
  <!--T:9-->
 +
Dim Obj As Object
 
  Set Obj = ADE.CurrentModule
 
  Set Obj = ADE.CurrentModule
  
= Remarks =
+
= Remarks = <!--T:10-->
  
 +
<!--T:11-->
 
Newly created objects are placed into [[CurrentModule]]; so, you should set [[CurrentModule]] before
 
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.
 
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>
 
</translate>

Revision as of 22:00, 11 June 2015

Other languages:
English • ‎中文

ADE User Guide > ADE Server Class Reference > CAEngine

Description

The currently open module.

Data type

CAObject

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


You are not allowed to post comments.