Check that point doesnt lay on line in Simulink block diagram
Mostrar comentarios más antiguos
Hello!
I want to connect some block programatically. The simplest way for that is to add_line by points but when i add line by that way i encounter problem when points lay on existing line. In that situation two different lines are linked. Is there any way to check point to laying on existing line?
4 comentarios
Fangjun Jiang
el 22 de Nov. de 2020
I think it would be very hard if not possible. Why not add_line() by specifying ports and turn "autorouting" on?
Sergey Kasyanov
el 22 de Nov. de 2020
Fangjun Jiang
el 22 de Nov. de 2020
If you need to connect from a to b and a to c, can't you run add_line(a,b) and add_line(a,c) to achieve it?
Sergey Kasyanov
el 23 de Nov. de 2020
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Programmatic Model Editing en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
