Book a Demo

Author Topic: Making visible inherited parts in a block compartment  (Read 4629 times)

SystemsTinkerer

  • EA User
  • **
  • Posts: 48
  • Karma: +0/-0
    • View Profile
Making visible inherited parts in a block compartment
« on: February 04, 2022, 05:24:28 am »
Hi EA users,

I have a <<block>> C (child block or subtype) is specialised from a parent block or supertype <<block>> A. There is a part <<block>> B which is a part of <<block>> A. How can I show in the compartment of <<block>> C that it inherits <<block>> B as a part?

Thanks,
Oz

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Making visible inherited parts in a block compartment
« Reply #1 on: February 04, 2022, 07:23:46 am »
I'd say by placing the <<part>> inside. It should be in the features, though I'm not sure about the inherited ones.

q.

Takeshi K

  • EA User
  • **
  • Posts: 632
  • Karma: +43/-1
    • View Profile
    • Sparx Systems Japan
Re: Making visible inherited parts in a block compartment
« Reply #2 on: February 04, 2022, 11:32:06 am »
Hello all,

If I understand correctly the situation, the following steps can show the inherited parts.
1. Select the Block C and press Ctrl+5 to open the Features window
2. You can see the inherited Part (typed B, defined in A) in one of the tab, check it and then uncheck it
3. By closeing and opening the diagram (reload the diagram does not update compartments), you can see the inherited part B in the Block C compartment.

HTH,
--
t-kouno

SystemsTinkerer

  • EA User
  • **
  • Posts: 48
  • Karma: +0/-0
    • View Profile
Re: Making visible inherited parts in a block compartment
« Reply #3 on: February 04, 2022, 06:16:55 pm »
Hello,

Appreciate the responses - thank you! The features route, of selecting the parts of a block brings about the appearance of instance (blue coloured) block inside the block that is inheriting the parent blocks part. I don't want it getting cluttered with blue blocks but instead a compartment stating parts and showing what the part names.

Cheers

Takeshi K

  • EA User
  • **
  • Posts: 632
  • Karma: +43/-1
    • View Profile
    • Sparx Systems Japan
Re: Making visible inherited parts in a block compartment
« Reply #4 on: February 04, 2022, 06:21:32 pm »
Hello SystemsTinkerer,

As I wrote as the step 2, in the Feature window check it and then uncheck it to hide the added property (and shown in the compartment)

HTH,
--
t-kouno

SystemsTinkerer

  • EA User
  • **
  • Posts: 48
  • Karma: +0/-0
    • View Profile
Re: Making visible inherited parts in a block compartment
« Reply #5 on: February 05, 2022, 08:21:00 am »
Hi Takeshi,

Ahh! I got it now - many thanks for this. This works but it's a weird workaround though, another quirk of EA  ;)

By the way, part B is showing up in the properties compartment  & not an inherited part - is this consistent with UML/SysML language?

Cheers,
Oz