Author Topic: Set language via Automation  (Read 3986 times)

charge

  • EA User
  • **
  • Posts: 22
  • Karma: +0/-0
    • View Profile
Set language via Automation
« on: June 07, 2004, 05:04:44 am »
Hi,

Is it possible to set the language when you create Classes or other elements via automation?
I think this propery is missing in the automation model....


Dermot

  • EA Administrator
  • EA User
  • *****
  • Posts: 591
  • Karma: +7/-0
    • View Profile
Re: Set language via Automation
« Reply #1 on: June 10, 2004, 12:07:12 am »

This is defined in a Element under Gentype See:

http://www.sparxsystems.com.au/EAUserGuide/index.html?showelementusage.htm

and search for Gentype.


I hope this is of help.

charge

  • EA User
  • **
  • Posts: 22
  • Karma: +0/-0
    • View Profile
Re: Set language via Automation
« Reply #2 on: June 10, 2004, 02:37:42 am »
Works fine !

Dim obj As EA.Element
obj = objPackage.Elements.AddNew("test", "Class")
obj.Gentype = "C#"
obj.Update()

Thanks !