Reset autoroute on existing line

3 ビュー (過去 30 日間)
Patrice90
Patrice90 2018 年 3 月 28 日
回答済み: Monika Jaskolka 2018 年 5 月 10 日
Hello, i created a Simulink-Model and want to re-layout it by an automatic script. Works fine for all blocks but the lines still have thier old positions and it looks really strange.
So I want to autoroute the line again, but i don't find the parameter for that.
It's easy to use autoroute for a new line, but not for an existing line. But it's possible by using the gui, so I'm thinking there should be a solution for that.
set_param(<lineHandle>,< whatIsTheNameOfTheParameter>,<value>)
Thanks for help and sorry for bad english.

回答 (1 件)

Monika Jaskolka
Monika Jaskolka 2018 年 5 月 10 日
Unfortunately such a parameter does not exist. The only way I know to change the autorouting type would be to delete and then redraw the line. There is a redraw_lines function that can do this for a system, as part of the Auto Layout Tool on the File Exchange. If you download the zip, the function is in Auto Layout/src/redraw_lines.m.

カテゴリ

Help Center および File ExchangeProgrammatic Model Editing についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by