Simulink.BlockDiagram.routeLine
R2026bRoute existing lines of model
Description
Simulink.BlockDiagram.routeLine(
improves the layout of the specified signal lines. The new layout avoids overlaps with other
signal lines, blocks, and annotations.lines)
Simulink.BlockDiagram.routeLine(
performs all signal line layout updates that the "DeferredLines")LineUpdate model
parameter defers while a script runs. For this command to route lines, all of these
conditions must apply:
The value of the
LineUpdatemodel parameter is"deferred".The script that contains this command changes the signal line layout before using this command.
If the script saves models, the script changes the signal line layout after using the
save_systemfunction and before using this command.
Examples
Input Arguments
Limitations
Line routing can require additional empty space on the Simulink® canvas. If the canvas does not have the required empty space, the
Simulink.BlockDiagram.routeLinefunction might not improve the signal line layout.For large models with many signal lines, running the
Simulink.BlockDiagram.routeLinefunction can take several minutes.
Version History
Introduced in R2019a


