Book a Demo

Author Topic: Attribute sorting - problem introduced in V6?  (Read 4142 times)

AdamHearn

  • EA User
  • **
  • Posts: 58
  • Karma: +0/-0
    • View Profile
Attribute sorting - problem introduced in V6?
« on: December 08, 2005, 04:28:33 pm »
I've recently upgraded to V6 and I've noticed an issue that may need looking into...

Got an element of stereotype enumeration with a set of attributes. It's normal practise (for our company) to create an initial item with value 0. This would typically be assigned the name 'Unknown' or 'None' and have the initial value set to 0.

What I've noticed is that with V6, attributes are listed alphabetically. Thus when code generated I get an out of sequence enum.

Instead of this:

None = 0,
Some,
Another

I would get:

Another,
None = 0,
Some

I couldn't see an option to prevent this but I may well have missed it! Anyone confirm this or provide a workaround?

Thanks in advance!

Bruno.Cossi

  • EA User
  • **
  • Posts: 803
  • Karma: +0/-0
    • View Profile
Re: Attribute sorting - problem introduced in V6?
« Reply #1 on: December 08, 2005, 04:33:09 pm »
Hi Adam,

try Tools > Options > Objects > Sort Features Alphabetically.

Hope this helps!
Bruno

Quote
I've recently upgraded to V6 and I've noticed an issue that may need looking into...

Got an element of stereotype enumeration with a set of attributes. It's normal practise (for our company) to create an initial item with value 0. This would typically be assigned the name 'Unknown' or 'None' and have the initial value set to 0.

What I've noticed is that with V6, attributes are listed alphabetically. Thus when code generated I get an out of sequence enum.

Instead of this:

None = 0,
Some,
Another

I would get:

Another,
None = 0,
Some

I couldn't see an option to prevent this but I may well have missed it! Anyone confirm this or provide a workaround?

Thanks in advance!


AdamHearn

  • EA User
  • **
  • Posts: 58
  • Karma: +0/-0
    • View Profile
Re: Attribute sorting - problem introduced in V6?
« Reply #2 on: December 09, 2005, 11:14:51 am »
A shame it's a one option for all types but it'll have to do :)