Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: zaknixon on April 12, 2008, 12:33:09 am

Title: C# enumeration source generation
Post by: zaknixon on April 12, 2008, 12:33:09 am
Does EA support the generation of C# enumeration values ? If so, can someone point me to describe how to set the enum values appropriately to allow this to happen? I currently have enum "classes" with enum stereotyped values, but when generated no values are shown.

Thanks,

Zak :-?
Title: Re: C# enumeration source generation
Post by: zaknixon on April 12, 2008, 02:29:07 pm
I am supposing that EA does not have this capability. Would be nice to know before I buy the product.
Title: Re: C# enumeration source generation
Post by: Eve on April 14, 2008, 08:46:27 am
Drag an enumeration from the toolbox. (This is a class with the stereotype «enumeration»).
Open the attributes dialog.
Give a name and optional default value for you list of values.
Generate.
Title: Re: C# enumeration source generation
Post by: zaknixon on April 14, 2008, 12:21:53 pm
Thank you very much. It seems like if I generated the code, by default, it generated Java source, which would not update the enumeration values. Once I cleared out the original source directory and regenerated, everything was good.