- Open the mask variant subsystem and make sure that the active variant is set correctly before performing the "Update Diagram" operation. This means that the variant selection should be configured and saved prior to updating the diagram.
- If the active variant is not set correctly, change it to the desired selection and save the changes. Now, perform the "Update Diagram" operation. It should work without any errors if the active variant is configured properly.
- If you need to use different selections of the second library with the variant subsystem, repeat the above steps for each selection before performing the "Update Diagram" operation.
How to configure Mask of Subsystem to avoid: "attempted to change the active variant during update diagram. The active variant must be configured before the update diagram."
조회 수: 6 (최근 30일)
이전 댓글 표시
Hello,
i use a mask variant subsystem in a libary which propagates its variant selection to upper mask libraries. The second library (which includes the library with the variant subsystem) is used multiple time with different selections. The first times I apply "Update Diagram" the update fails. I have to change the selection of the varaint, press to apply and then change back to the initial selection. After that "Update Diagram" is successfull. How can I avoid this behaviour?
Best regards
댓글 수: 0
답변 (1개)
Yash
2023년 8월 24일
Hi,
To avoid the error, you need to configure the active variant correctly before updating the diagram to ensure a successful update. You can follow these steps for the same:
If you still face the error after following the above steps, it would be good if you share your model so that I can reproduce the error at my end.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Component-Based Modeling에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!