Book a Demo

Author Topic: SysML, requirement compartments show  (Read 5517 times)

hjkim

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
SysML, requirement compartments show
« on: April 20, 2017, 08:21:52 pm »
Hi,

I want to requirement element show tag (id, text). so I check Show Compartments "tag" in diagram. (on diagram click mouse right > propeties > Elements)
It's OK. When I add requirement tag compartments show.

I want to some requirement elements not show tag.

I expect uncheck compartment visiblity in element (on element, click mouse right > Features & Properties>Feature and Compartment Visibility > Show Element Compartments > Tags ). but "tags" unchecked state. so I can't uncheck that.

I want requirement element tag compartment show default and some elements change to not show.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: SysML, requirement compartments show
« Reply #1 on: April 20, 2017, 09:11:36 pm »
While you meanwhile can de-opt individual attributes/operations and stereotypes, tagged values can only be shown as all or nothing. You might send a feature request. A programmatic way with shape scripts might be feasible, but it will definitely be a lot of work.

q.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: SysML, requirement compartments show
« Reply #2 on: April 21, 2017, 08:22:54 am »
You'll need to disable 'show tags' at the diagram level, and enable it for the elements that you want to show the tags for. You can't do it the other way around.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: SysML, requirement compartments show
« Reply #3 on: April 21, 2017, 09:07:14 am »
I guessed he wanted to show individual TVs per element.

q.

OpenIT Solutions

  • EA User
  • **
  • Posts: 555
  • Karma: +9/-1
    • View Profile
Re: SysML, requirement compartments show
« Reply #4 on: June 22, 2017, 08:20:50 pm »
Hi,

I have a similar requirement and would like some advice please :-)...

I'd like to show a ProgressBar ONLY if its value is less then 100%. Plus my element has multiple tagged values - I only want to show its ProgressBar tagged value, none of the others.

Is this possible via a ShapeScript ? I can't see a function/command in the shapescript notation to show a ProgressBar only the print/println statements to show the text of a tagged value. Is it possible ?

OpenIT Solutions

  • EA User
  • **
  • Posts: 555
  • Karma: +9/-1
    • View Profile
Re: SysML, requirement compartments show
« Reply #5 on: June 27, 2017, 06:12:42 pm »
Hi,

FYI, the way I ended up solving this:

Repository.Execute ("UPDATE t_diagramobjects SET ObjectStyle='Tag=1;' WHERE diagram_id = " + diagramID + " AND object_id = " + diagramObjectID);

I found that the ShowTags=true; method on EA.DiagramObject didn't work. So I had to use the above code when I wanted to show my tagged values (i.e. the ProgressBar) for a specific DiagramObject.

Regards,

Jon.