Remove dashed lines from Simulink diagram
Mostra commenti meno recenti
Hello,
Sometimes, after editing a simulink diagram many red dashed lines remain on diagram. Is it possible to remove all them at once ? Thanks.
Risposte (1)
Robert
il 7 Nov 2016
delete_line(find_system(your_model, 'FindAll', 'on', 'Type', 'line', 'Connected', 'off'))
2 Commenti
Robert
il 8 Nov 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.
Categorie
Scopri di più su Simulink in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!