Borrar filtros
Borrar filtros

Mask information is lost when copying block

1 visualización (últimos 30 días)
Philip
Philip el 21 de Ag. de 2023
Editada: Ayush el 29 de Ag. de 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?

Respuestas (1)

Ayush
Ayush el 29 de Ag. de 2023
Editada: Ayush el 29 de Ag. de 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

Categorías

Más información sobre Author Block Masks en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by