Sparx Systems Forum
Enterprise Architect => General Board => Topic started by: davor on November 06, 2024, 03:03:30 am
-
How do I get the inherited parts and values from A to show in B? EA 17.
(https://i.ibb.co/4jGD7c6/inheritance.png)
-
Hi,
SysML parts and values are sub-elements of block A and EA doesn't seem to support inheritance on these.
I noticed that it is not limited to the BDD since it also applies to the internal block diagram (e.g. if you create one for block B in your example).
The only workaround I identified so far involves duplicating the parts and values from block A to block B so they are visible and manageable in both diagrams. These copies are however not binded with block A definitions (values and composition links). A custom script, addin or model-based addin could be defined to cover the missing behaviour.
-
It is weird. Not to say buggy and awful.
Start with this, SysML BDD... Doesn't show inherted part in B. As previously mentioned.
(https://i.ibb.co/JBPv7b1/1.png)
Browser view. No weird.
(https://i.ibb.co/3kGJjzY/2.png)
Show Features -> Part/Properties. "Show owned/inherited". Part is shown, Owner is A.
(https://i.ibb.co/nj0HrKX/3.png)
Clicking the checkbox next to name. Changes the owner to B and adds an instance of Part to B. Or so it seems.
(https://i.ibb.co/wQjppfp/4.png)
B now shows a compartment properties. Not parts. Because parts requires a composition link to B.
(https://i.ibb.co/SRq0hT8/5.png)
Here is the browser view.
(https://i.ibb.co/ncjZYpF/6.png)
Change part type.
(https://i.ibb.co/ZWkSSrs/7.png)
HMM? So it inherited? Or? How to know this? Where is this conveyed?
(https://i.ibb.co/9ZJR6wt/8.png)
Note, to get this updated in the BDD, you need to close it and load it again (just reloading is not enough).
-
Mmm...
(https://i.ibb.co/MM7NZsh/9.png)
Validation complete - 0 error(s), 0 warning(s)