Book a Demo

Author Topic: Code generate a package containing types  (Read 2016 times)

Graham_Labdon

  • EA User
  • **
  • Posts: 66
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Code generate a package containing types
« on: August 14, 2009, 02:41:16 am »
Hi Everyone
Does anybody know if it is possible to create a package containing only enum declarations?
I created a package the a class under this. I set the sterotype to enum, then generated code for the package (right click in project browser). This produced the following
namespace Package1
{
      enum Class1
      {
            e1,
            e2
      };

}

Now if I add another enum to the code and reverse engineer it does not get added to the package.
However if another enum is added to the model and the code gen path set to the same path as the original path the correct code is generated.

Is there a way of getting this to 'round trip' successfully

Thanks

Graham