Programmatically filter ports in Architecture View

4 Ansichten (letzte 30 Tage)
Matthew
Matthew am 28 Jan. 2025
Kommentiert: Matthew am 30 Jan. 2025
I am tying to programmatically create architecture views based on the value of a sterotype property.
When using the interactive view I can add a port filter; and successfully filter the ports in the view based on the value of the property.
Programmatically, I can successfully filter the Components in the view using the code below. However, I can not work out how to also filter the ports programmatically.
Any help appreciated.
Query = contains(PropertyValue("SysModelProfile.BaseStereotype.Feature"), 'Feature1');
model.createView('Feature1',...
Select=Query,...
);

Akzeptierte Antwort

Josh Kahn
Josh Kahn am 29 Jan. 2025
There is currently no public API for this but if you reach out to our Technical Support, we can get you a work-around.
Josh

Weitere Antworten (0)

Kategorien

Mehr zu System Composer finden Sie in Help Center und File Exchange

Produkte


Version

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by