Remove dashed lines from Simulink diagram

11 visualizaciones (últimos 30 días)
Pavel
Pavel el 7 de Nov. de 2016
Comentada: Robert el 8 de Nov. de 2016
Hello,
Sometimes, after editing a simulink diagram many red dashed lines remain on diagram. Is it possible to remove all them at once ? Thanks.

Respuestas (1)

Robert
Robert el 7 de Nov. de 2016
delete_line(find_system(your_model, 'FindAll', 'on', 'Type', 'line', 'Connected', 'off'))
  2 comentarios
Pavel
Pavel el 7 de Nov. de 2016
Editada: Pavel el 7 de Nov. de 2016
Thanks. Does exist a shortcut for this command somewhere in Simulink options, e.g. "Refresh Diagram" or something like this ?
Robert
Robert el 8 de Nov. de 2016
Not that I am aware. This code will find and delete all unconnected lines, which is something that should be done carefully. If you want to make it easy to do repeatedly, you could consider making it the ClickFcn of an annotation on your diagram.

Iniciar sesión para comentar.

Categorías

Más información sobre Simulink en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by