Azzera filtri
Azzera filtri

Mask information is lost when copying block

1 visualizzazione (ultimi 30 giorni)
Philip
Philip il 21 Ago 2023
Modificato: Ayush il 29 Ago 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?

Risposte (1)

Ayush
Ayush il 29 Ago 2023
Modificato: Ayush il 29 Ago 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

Categorie

Scopri di più su Author Block Masks in Help Center e File Exchange

Tag

Prodotti


Release

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by