Book a Demo

Author Topic: Hide unused tagged values?  (Read 7663 times)

Patrick Julian

  • EA User
  • **
  • Posts: 51
  • Karma: +0/-0
    • View Profile
Hide unused tagged values?
« on: February 08, 2013, 05:41:12 am »
Hello everyone,

we have defined a set of tagged values that applies to all SysML requirement entities (like "source", "rationale", this kind of information). We want them displayed in the diagrams so we have set the corresponding option for all reqmt. diagrams.

Problem is, now EA shows all the tagged values, whether or not a value has been set for them.

I know I can delete the unused tagged values, but I'd have to recreate them if I need them later. Is there a way to just hide them in the diagram if no value is set?

Thanks

Patrick

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Hide unused tagged values?
« Reply #1 on: February 08, 2013, 06:38:30 am »
You can't do that. Unless possibly you write a custom shape script which likely is not a good idea if you're using the SysML MDG.

q.

kepNCI

  • EA User
  • **
  • Posts: 127
  • Karma: +1/-0
    • View Profile
Re: Hide unused tagged values?
« Reply #2 on: February 08, 2013, 07:14:01 am »
See if this works for you.
Create an instance of the sysml Reuiqement. The instance should inherit the Sysml tags and any that you defined. For some reason, when EA created the instance, it assigns all the tags to the instance.  Delete any tags that are null. The tag should show up on the classifier of the instance, so you will not loose it for future use. In the Feature and Compartment Visibility wizard, only check "Tags" amd leave "Inherited Tags" unchecked. Your diagram now should only display the populated tags associated with instance.  If you later add a value to one of the tags from the classifier, it will add (associate) the tag to the instance and you will see it displayed.

Karl

kepNCI

  • EA User
  • **
  • Posts: 127
  • Karma: +1/-0
    • View Profile
Re: Hide unused tagged values?
« Reply #3 on: February 08, 2013, 07:17:46 am »
P.S.
View the tags using the View/Tagged Values rather than the Tagged Values under the object's properties. It displays the total hierarchy of the tags.
Karl

Patrick Julian

  • EA User
  • **
  • Posts: 51
  • Karma: +0/-0
    • View Profile
Re: Hide unused tagged values?
« Reply #4 on: February 15, 2013, 11:35:16 pm »
Thank you Karl for your advice.

For the case I described, it won't help me much because I still have to delete the unused tagged values by hand for each instance.
However, this is nice to know for future reference.

If anyone else reads this and is interested, this is the dialog:
(as seen in the EA documentation)


Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Hide unused tagged values?
« Reply #5 on: February 20, 2013, 12:35:44 am »
You could write a little script to delete the "unused" tag automatically.
Shouldn't be too much work.

Geert