How to enable block content preview in Simulink?

8 views (last 30 days)
I added an icon image to a Simulink block, and when I removed it the block was completely white. The option under format to enable content preview is greyed out. Is there any way I can turn content preview back on?
Thanks in advance!

Accepted Answer

Geetla Sindhu
Geetla Sindhu on 3 Oct 2022
Hello Nathan,
I understand that when you are adding an icon image to the Simulink block and removing it, the block content preview is disabled.
In order to resolve this issue, you can try the workaround provided below:
  • Click Mask >> Add Mask Icon in the context menu to add an image to the Simulink block. A pop-up window will be generated as shown below.
  • Set the Icon Transparency to “Transparent” and select the image you want to add using the Browse option. Click on “OK”.
  • Once this is achieved, try to clear the image using Clear option. You can see that the original content of the block is restored.
Thank you.

More Answers (0)

Categories

Find more on Programmatic Model Editing in Help Center and File Exchange

Products


Release

R2022b

Community Treasure Hunt

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

Start Hunting!