CAEngine
class CAEngine (ADE)
Creation
Use of ADE really starts with the creation of a CAEngine object, from which all else flows. If you are using the ADEW.dll in-process server, you can only create and use one CAEngine instance. If you are using the ADE.exe out-of-process server, you may create as many CAEngine instances as you desire, each one running as a separate process. In web-based applications, a separate CAEngine instance is typically created for each user session. Each CAEngine instance can have one model loaded at a time.
You can either create a CAEngine instance directly, or by calling CALicense::NewCAEngine(). The later method requires you to first create a CALicense instance, but has the advantage that you can obtain further information about the cause of failure when creation fails. Direct creation of CAEngine will fail if the license to use ADE on the given computer is invalid, expired, etc.
See CAEngine for language-specific details.
Properties
- {get,put} string Command
- {get,put} CAObject CurrentModule
- {get,put} CARenderingStyle DefaultDefTableRenderingStyle
- {get,put} CARenderingStyle DefaultRenderingStyle
- {get} short int ErrorCode
- {get} string ErrorText
- {get} string Log
- {get} string OutputBuffer
- {get,put} bool Photo
Methods
- string AddModule(string filePath,bool Merge)
- bool CloseModel()
- CAObject CreateObject(string objName, string objType)
- bool CreateModel(string newModelName)
- bool DeleteObject( CAObject aObject )
- CAObject Get(string objName)
- CAObject GetObjectByName(string objName)
- string OpenModel(string filepath)
- bool ReadScript(string filePath)
- void ResetError()
- bool SaveModel(string filePath)
- bool SaveModuleFile(string moduleName, string filePath)
- bool Send()
- bool SendCommand(string command)
Enable comment auto-refresher