Mask information is lost when copying block

3 Ansichten (letzte 30 Tage)
Philip
Philip am 21 Aug. 2023
Bearbeitet: Ayush am 29 Aug. 2023
Hi,
I have a library with self-defined blocks (legacy code). When I copy these blocks into a model (copy&paste or drag&drop), the mask information is partially lost.
The text I have inserted for the representation of the port names in the "Icon" tab is simply replaced by a
fprintf('<block name>');
when I copy.
Is this an intended behaviour? How do I manage to keep my mask?

Antworten (1)

Ayush
Ayush am 29 Aug. 2023
Bearbeitet: Ayush am 29 Aug. 2023
I understand that you are experiencing issues with the mask information of your self-defined blocks being partially lost when copying and pasting or dragging and dropping them into a model, there are a few things you can try to resolve this problem:
  1. Check compatibility: Ensure that the self-defined blocks and the model you are copying them into are compatible. Check if there are any version differences or dependencies that could be causing the mask information loss.
  2. Verify block settings: Make sure that the mask information, including the text for port names in the "Icon" tab, is correctly defined within the block's parameters or properties. If the mask information is not properly set, it may not be preserved when copying and pasting or dragging and dropping the blocks.
  3. Use block libraries: Instead of copying and pasting or dragging and dropping the blocks directly into the model, consider creating a block library to encapsulate your self-defined blocks. Block libraries help maintain the integrity of the blocks and their associated properties.
You may refer to these documentation links:
Thanks,
Ayush Jaiswal

Kategorien

Mehr zu Author Block Masks finden Sie in Help Center und File Exchange

Tags

Produkte


Version

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by