Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: charge on June 07, 2004, 05:04:44 am

Title: Set language via Automation
Post by: charge 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....

Title: Re: Set language via Automation
Post by: Dermot 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.
Title: Re: Set language via Automation
Post by: charge 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 !