Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started 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....
-
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.
-
Works fine !
Dim obj As EA.Element
obj = objPackage.Elements.AddNew("test", "Class")
obj.Gentype = "C#"
obj.Update()
Thanks !