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 views (last 30 days)
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

Answers (1)

Yash
Yash on 24 Aug 2023
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:
  1. 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.
  2. 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.
  3. 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.
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.

Categories

Find more on Component-Based Modeling in Help Center and File Exchange

Products


Release

R2018b

Community Treasure Hunt

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

Start Hunting!