Book a Demo

Author Topic: Undocumented features - AI  (Read 4292 times)

fwoolz

  • EA User
  • **
  • Posts: 435
  • Karma: +0/-0
  • We have met the enemy, and he is us.<Pogo, 1970>
    • View Profile
Undocumented features - AI
« on: February 12, 2010, 09:34:37 am »
As a result of responses to forum posts and some poking around in the object model (importing the EA AI into EA is truly a wonderful thing...), I've run across a few undocumented features, to wit:

Repository:
    CustomCommand(String, String, String) : String (I already know this can be used to sync stererotypes... thanks Neil!)
    Execute(String) : Void
    CreateModelWatcher() : ModelWatcher (the ModelWatcher is described in the help, but the factory method isn't described)
    SuppressSecurityDialog : Boolean
    EnableEventFlags : Boolean

Package:
    GetCodeProject(string*, string*) : Void
    SetCodeProject(string, string) : Void
    GetClassCodeObjects(String) : CodeObject
    GetCodeObject(string) : CodeObject
    ShallowGetClassCodeObjects(String) : CodeObject
    GenerateSourceCode() : Void

There may be more...

Would Sparx be so kind as to indicate which of these methods may be used without risking model implosion, how they are used, and, eventually, document these things in Help?

Cheers,
Fred W
    
Fred Woolsey
Interfleet Technology Inc.

Always be ready to laugh at yourself; that way, you beat everyone else to the punch.


Jim Beck

  • EA User
  • **
  • Posts: 29
  • Karma: +0/-0
    • View Profile
Re: Undocumented features - AI
« Reply #1 on: February 12, 2010, 11:22:17 am »
How did you import the AI into EA?

Thanks!

Jim

fwoolz

  • EA User
  • **
  • Posts: 435
  • Karma: +0/-0
  • We have met the enemy, and he is us.<Pogo, 1970>
    • View Profile
Re: Undocumented features - AI
« Reply #2 on: February 12, 2010, 12:00:53 pm »
Jim,

Depending on the version of EA you have, you

1. Pick a package in your model hierarchy in the Project Browser where you want to import the AI, then
2. Right-click on the desired package, then click on "Code Engineering->Import Binary Module..." , then
3. Navigate to the directory where EA.exe lives (usually C:\Program Files\Sparx Systems\EA or C:\Program Files (x86)\Sparx Systems\EA) and select Interop.EA.dll as the file to import.
4. Click "Import" and EA will import all the interfaces and classes in the AI into your model. It will even lay out the diagram with the entire AI for you.

Good luck,
Fred W
Fred Woolsey
Interfleet Technology Inc.

Always be ready to laugh at yourself; that way, you beat everyone else to the punch.