MATLAB Answers

How to update new annotations or descriptions done in a library subsystem into the model where the library is used

15 views (last 30 days)
Juan de la Torre
Juan de la Torre on 18 Feb 2021
Edited: Fangjun Jiang on 23 Feb 2021
I have a massive library with different subsystems that I am using them along a big model.
My question is, if I change the annotations or decription in the library.
How can I have them updated in the library blocks used in the model?
Thanks in advance

Answers (1)

Fangjun Jiang
Fangjun Jiang on 18 Feb 2021
To be clear, the annotation needs to be inside a subsystem block in the library. Then after you updated the annotation in the library, it should be automatically reflected in the model where the subsystem block is used. If not immediately, then do Ctrl+D (update) the model.
If the annotation is in the library but not inside the subsystem block (e.g. an annotation in the root level of the library), then it will not be dragged to the model when any of the library block is used, even when the annotation is "linked" to a block in the library.
In other word, if the annotation appeared in the library does not appear in the model when a library block is dragged to the model, then later, after you update the annotation in the library, they will not impact the model.
  4 Comments
Fangjun Jiang
Fangjun Jiang on 23 Feb 2021
If this is a separate annotation typed in in the library, then it will not appear in the model because it is not regarded as part of the block.
However, there is a different way. In the library, right click the block, select "Properties", click the "Block Annotation" tab, type in the static string or use dynamic field such as %<Description> (you need to fill in "Description" to see the effect.

Sign in to comment.

Products


Release

R2020b

Community Treasure Hunt

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

Start Hunting!