file How to get a default value for attributes to appear on class diagram?

1 year 5 months ago #4921 by Robert Hairgrove
For example, my class has an attribute which is of built-in type integer. I enter the default value "1", but it doesn't show up in the class attributes list. I have set the style to show everything I could find to select, but nothing makes it show up. It also doesn't show in the Explorer pane, only when I choose "Edit element" it appears in the table of details for the attribute.

I'm sure there must be a way, but I only just started to use Modelio. :)
The following user(s) said Thank You: cononda

Please Log in or Create an account to join the conversation.

1 year 5 months ago #4924 by cde
Hi Robert,

Unfortunately there is no way to display the attribute's value in a diagram.

An evolution asking to be able to do so already exists in the Modelio issues tracker : http://forge.modelio.org/issues/334

For now, as a workaround, perhaps you use a Constraint on the attribute, which can be unmasked in the diagram :



Hope this helps,
cde.
Attachments:
The following user(s) said Thank You: cononda

Please Log in or Create an account to join the conversation.

Moderators: tmaebr
Time to create page: 0.157 seconds
^ Back to Top