Programmatically filter ports in Architecture View

조회 수: 6 (최근 30일)
Matthew
Matthew 2025년 1월 28일
댓글: Matthew 2025년 1월 30일
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,...
);

채택된 답변

Josh Kahn
Josh Kahn 2025년 1월 29일
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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 System Composer에 대해 자세히 알아보기

제품


릴리스

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by