Enable Title Printing & Page Boundaries in Simulink

조회 수: 3 (최근 30일)
Michael
Michael 2013년 5월 23일
댓글: dzid_ 2020년 2월 22일
Anyone know if there is a way to set "Show page boundaries" and "enable titled printing" as a default when creating new subsystem blocks? I keep having to enable these settings every time I copy a previous block, even if I had the settings changed in the block I copied from.
Thanks
  댓글 수: 1
dzid_
dzid_ 2020년 2월 22일
It's a bit slow, but to show Page Boundaries in all subsystems modify internal Simulink.slx library:
Add at the beginning of CopyFcn callback:
set_param(gcbh, 'ShowPageBoundaries','on')
Then change following item from existing script of CopyFcn:
set_param(gcbh,'CopyFcn','')
to:
set_param(gcbh,'CopyFcn','set_param(gcbh, ''ShowPageBoundaries'',''on'')')
Save Simulink.slx. Insert new subsystem block.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Programmatic Model Editing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by