Book a Demo

Author Topic: Display a subset of part properties  (Read 7654 times)

bechbp

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Display a subset of part properties
« on: January 16, 2024, 04:15:50 am »
Hello all,

In SysML model, I have a block that contains 7 part properties. In a specific block definition diagram (bdd), I want to display the block and its part compartment, but only show 3 parts out of the 7.

Is there any way that I can achieve that?

Thank you

amywiegand

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: Display a subset of part properties
« Reply #1 on: January 16, 2024, 03:41:21 pm »
Yes, you can selectively display the parts of a block in a specific block definition diagram (bdd) in SysMLuno onlineHere are the steps to do so:

Open the block definition diagram (bdd) in which you want to display the block and its part compartment.
Right-click on the block and select “Show/Hide Compartments”.
In the dialog box that appears, select the check boxes associated with the compartments you want to show. In this case, select the “Parts” compartment.
Click on the “Customize” button next to the “Parts” compartment.
In the “Compartment Editor” dialog box that appears, select the “Filter” tab.
In the “Filter” tab, select the “Only show elements that match the following criteria” option.
In the “Criteria” section, select the “Name” property and set it to “is one of”.
In the “Value” section, enter the names of the 3 parts that you want to display, separated by commas.
Click on the “OK” button to close the “Compartment Editor” dialog box.
Click on the “OK” button to close the “Show/Hide Compartments” dialog box.
« Last Edit: January 17, 2024, 12:08:21 pm by amywiegand »

bechbp

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: Display a subset of part properties
« Reply #2 on: January 17, 2024, 02:04:42 am »
Thank you for your reply.

Right-click on the block and select “Show/Hide Compartments”. I don't have "Show/Hide Compartments". I have "Compartment Visibility"
Click on the “Customize” button next to the “Parts” compartment. I don't have that option.

Do I need to have EA in dev mode or something like that?
Be well

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Display a subset of part properties
« Reply #3 on: January 18, 2024, 08:35:31 pm »
Maybe the wrong EA version? The gui happens to change in each release.

q.

bechbp

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: Display a subset of part properties
« Reply #4 on: January 19, 2024, 02:06:33 am »
I am using EA 16.1 Build 1628.

wilkinsonwilfrid

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
    • geometry dash
Re: Display a subset of part properties
« Reply #5 on: February 28, 2024, 02:41:02 pm »
Hello all,

In SysML model, I have a block that contains 7 part properties. In a specific block definition diagram (bdd), I want to display the block and its part compartment, but only show 3 parts out of the 7.

Is there any way that I can achieve that?

Thank you
In SysML, there is no direct method for filtering or hiding individual part characteristics in a block definition diagram. You can accomplish this by creating a new block that just includes the three components you want to show in the BDD. This new block can be a subtype of the original block, and you can use the "redefines" keyword to control which component characteristics are displayed.

Here is an example of how you can accomplish this:

1. Create a subtype of the original block.
2. In the new block, use the "redefines" keyword to specify which component attributes should be shown.
3. In the BDD, utilize the new block instead of the original one.

Takeshi K

  • EA User
  • **
  • Posts: 632
  • Karma: +43/-1
    • View Profile
    • Sparx Systems Japan
Re: Display a subset of part properties
« Reply #6 on: February 29, 2024, 10:18:59 am »
Hello bechbp,

if you allow to apply a stereotype to Parts, you can hide part of them by the following steps.
1. add any stereotype to Parts which you want to hide
2. reload diagram, now the stereotyped Parts are moved to a new compartment
3. right-click the Block and select the Compartment Visibility, then uncheck the stereotyped compartment in the Show Element Compartments checkboxes

HTH,
--
t-kouno