Difference between revisions of "CAEngine::CreateObject/zh"
(Created page with "= 参 数 =") |
(Created page with "objName: string - the new object's identifier ;objClass: string, one of: * "Alias" * "Attribute" * "Button" * "Chance" * "Constant" * "Decision" * "Determ" * "Form" * "Formnod...") |
||
Line 9: | Line 9: | ||
= 参 数 = | = 参 数 = | ||
− | + | objName: string - the new object's identifier | |
;objClass: string, one of: | ;objClass: string, one of: | ||
* "Alias" | * "Alias" |
Revision as of 09:48, 18 October 2015
ADE User Guide > ADE Server Class Reference > CAEngine
CreateObject(objName,objClass)
在CurrentModule当中建立一个标识符为«objName»,类型为«objClass»的新Analytica对象,并作为一个CAObject返回。
参 数
objName: string - the new object's identifier
- objClass
- string, one of:
- "Alias"
- "Attribute"
- "Button"
- "Chance"
- "Constant"
- "Decision"
- "Determ"
- "Form"
- "Formnode"
- "Function"
- "GraphStyleTemplate"
- "Index"
- "Library"
- "LinkLibrary"
- "LinkModule"
- "Model"
- "Module"
- "Objective"
- "Picture"
- "Text"
- "Variable"
Return value
Example Usage
// C# CAObject obj = ade.CreateObject ("NewVar","Chance");
API errors
- 40 – “Object could not be created”
- 41 – “Invalid name for object”
- 42 – “Object name already in use”
- 48 – “Invalid object class”
Comments
Enable comment auto-refresher