Author Topic: Programmtically generate code from elements  (Read 5497 times)

mcavigelli

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Programmtically generate code from elements
« on: January 03, 2005, 04:09:00 am »
Hi,

I would like to generate the code for a class / interface programmatically (Ctrl + G in the User Interface). However I cannot find the method in the automation interface. I can only see GenerateXSD, ExportPackageXMI.

I'm using EA 3.60.

Thanks, Matthias

charge

  • EA User
  • **
  • Posts: 22
  • Karma: +0/-0
    • View Profile
Re: Programmtically generate code from elements
« Reply #1 on: January 04, 2005, 08:33:04 am »
Why don't you use 4.50  ???

mcavigelli

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: Programmtically generate code from elements
« Reply #2 on: January 04, 2005, 08:52:47 am »
Quote
Why don't you use 4.50  ?

I work in an organisation and cannot just change it on my own. Anyway: How would it be done in 4.50? I need to bring forward arguments for upgrading...

thomaskilian

  • Guest
Re: Programmtically generate code from elements
« Reply #3 on: January 04, 2005, 12:06:16 pm »
Package has a hidden method GenerateSourceCode

mcavigelli

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: Programmtically generate code from elements
« Reply #4 on: January 05, 2005, 03:32:46 am »
Quote
Package has a hidden method GenerateSourceCode

So does that mean that I cannot access code generation programmatically?
What's the reason for that?

thomaskilian

  • Guest
Re: Programmtically generate code from elements
« Reply #5 on: January 05, 2005, 01:57:36 pm »
No idea. I found this option accidentially. Never knew before that you can hide elements in the object repository. Just give it a try and call the method...