Book a Demo

Author Topic: Default Attribute Value  (Read 8419 times)

TZ

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Default Attribute Value
« on: July 18, 2018, 07:14:59 pm »
Hi All,

I'm on my way on adding attributes on Class diagram. The only inconvenience - every single time when adding attribute value in Attributes tab (Features&Properties Dialog) the default value is "int" (the top 1 value in the attributes type drop-down list).

Question: Is there any way to set another default value?

Expected value: <none>

Thanks for your assistance! Any tips are welcome!

P.S. Described details available in documentation, but it is not clear whether I could define default values: http://www.sparxsystems.com/enterprise_architect_user_guide/14.0/modeling_tools/attributesmainpage.html

TZ
Good specifications will always improve programmer productivity far better than any programming tool or technique.

Nizam

  • Prolab Moderator
  • EA User
  • *
  • Posts: 320
  • Karma: +15/-2
  • Model Sharing - Simplified
    • View Profile
    • Professional Model Collaboration
Re: Default Attribute Value
« Reply #1 on: July 18, 2018, 08:15:30 pm »
Are you referring to default Attribute Type being set as 'int'? you can change that under Preferences -> Language specific page under Source Code Engineering -> Default Attribute type.

Or If you are looking at setting the 'Initial Value', you have to consider Template Packages.

TZ

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: Default Attribute Value
« Reply #2 on: July 18, 2018, 09:54:07 pm »
Thank you Nizam for quick reply!

Correct, I'm referring to "default Attribute Type being set as 'int'". I discovered the mentioned section and unfortunately there are no functionality to define 'none' value (link: https://1drv.ms/u/s!AiTMwlxudA28gr1DMHE1m-g1TgJA5g).

Can you provide in more details the steps to achieve this please?

NOTE: Any other tips/workarounds would work for me.

Best Regards,
TZ
« Last Edit: July 18, 2018, 10:00:07 pm by TZ »
Good specifications will always improve programmer productivity far better than any programming tool or technique.

Nizam

  • Prolab Moderator
  • EA User
  • *
  • Posts: 320
  • Karma: +15/-2
  • Model Sharing - Simplified
    • View Profile
    • Professional Model Collaboration
Re: Default Attribute Value
« Reply #3 on: July 19, 2018, 02:59:01 am »
Try adding 'None' as a data type for your default Language  You can do that from 'Code Engineering Datatypes'

then you'll see None in your list of types to choose for Default Attribute Type