How to hide ports and lines with a defined stereotype in System Composer ?

7 vues (au cours des 30 derniers jours)
Maxime HAYET
Maxime HAYET le 29 Sep 2020
Modifié(e) : Aimee Khan le 20 Juin 2021
Hello,
I'm new to System Composer and I would like to hide Component/Ports/Lines which are not part of a defined Stereotype.
So, in Architecture Views, I create a specific view where I choose the following Filter : not a HIL component and not a HIL Port and not a HIL Connector (I guess it's the lines). Where the HIL, HIL Port and HIL Connector are defined Stereotypes for Component/Port/Connector.
With this, the rendered view does not show the components with the stereotype "HIL" (that's good) but it still shows the ports and the connectors that are transmitted to other components.
Is it possible to hide ports and the connections between them that have a defined stereotype ? If yes, how ? I'm not managing to do it with the filter option in Architecture Views.
Thank you !

Réponses (1)

Aimee Khan
Aimee Khan le 18 Juin 2021
Modifié(e) : Aimee Khan le 20 Juin 2021
Port filtering for views is not available in R2021a or earlier. You can filter components with these types of ports, but not the ports themselves. This enhancement is under consideration for a future release.
For adding custom clauses for more flexible filtering in views, follow the next steps.
Enter this into the MATLAB Command Window:
scKeylessEntrySystem
You can set up your new view with custom clauses by selecting the down arrow next to Add Clause and selecting Add Custom Clause.
For example, you can select these clauses to display all components in the model except the ones with the HardwarePort stereotype being used on one of the ports.
For more information on constraints to use to format custom clauses, see systemcomposer.query.Constraint.

Catégories

En savoir plus sur System Composer dans Help Center et File Exchange

Produits


Version

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by