what is the script to get line handle by selecting line in a model
42 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
venkateswarlu kaithepalli
el 5 de Jun. de 2013
Respondida: Aseem Routray
el 9 de Dic. de 2019
what is the script to get line handle by selecting line in a model
0 comentarios
Respuesta aceptada
Vishal Rane
el 5 de Jun. de 2013
Not aware of anything that gets you handle of a selected line. But
find_system(bdroot,'findall','on','Type','Line')
gives all line handles in the block diagram. You can add a specific path in place of bdroot.
2 comentarios
Kaustubha Govind
el 5 de Jun. de 2013
More specifically, you can query the 'Selected' property of the line handle to find the one that is selected:
lh = find_system(bdroot,'FindAll','on','Type','Line');
get(lh, 'Selected')
Look for the entry corresponding to Selected=on.
Más respuestas (1)
Aseem Routray
el 9 de Dic. de 2019
Hello,
find_system(bdroot,'FindAll', 'on', 'type','line','selected','on')
This will get you the desired result.
Regards,
Aseem
0 comentarios
Ver también
Categorías
Más información sobre Programmatic Model Editing en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!