Difference between revisions of "CAEngine::CurrentModule"

(Marked this version for translation)
 
Line 5: Line 5:
 
[[ADE User Guide]] > [[ADE Server Class Reference]] > [[CAEngine]]
 
[[ADE User Guide]] > [[ADE Server Class Reference]] > [[CAEngine]]
  
= Description = <!--T:2-->
+
== Description == <!--T:2-->
  
 
<!--T:3-->
 
<!--T:3-->
 
The currently open module.
 
The currently open module.
  
= Data type = <!--T:4-->
+
== Data type == <!--T:4-->
  
 
<!--T:5-->
 
<!--T:5-->
 
[[CAObject]]
 
[[CAObject]]
  
= Access = <!--T:6-->
+
== Access == <!--T:6-->
  
 
<!--T:7-->
 
<!--T:7-->
 
read/write property
 
read/write property
  
= Example Usage = <!--T:8-->
+
== Example Usage == <!--T:8-->
  
<!--T:9-->
+
<!--T:9-->
Dim Obj As Object
+
:<code>Dim Obj As Object</code>
Set Obj = ADE.CurrentModule
+
:<code>Set Obj = ADE.CurrentModule</code>
  
= Remarks = <!--T:10-->
+
== Remarks == <!--T:10-->
  
 
<!--T:11-->
 
<!--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 = <!--T:12-->
+
== API errors == <!--T:12-->
  
 
<!--T:13-->
 
<!--T:13-->
 
* 44 – “Module could not be set”
 
* 44 – “Module could not be set”
 
</translate>
 
</translate>

Latest revision as of 18:57, 14 January 2016

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.