how can I unlock a library file (not a library block) by command line.

how can I unlock a library file (not a library block) by command line? for example, open a myLib.slx file and need to edit. The first thing need to do is to unlock this model. So Simulink will show: Attempt to modify 'untitledLib', which is or is in a locked library. The action performed requires you to unlock this library.So I need to hit * unlock this library. but i want to do this by command line. it seems set_param(gcb, 'Lock', 'off'); set_param(gcb, 'LinkStatus', 'inactive') are not works.

 採用された回答

Madhu Govindarajan
Madhu Govindarajan 2015 年 11 月 10 日

0 投票

Have you tried it on the library itself instead of the blocks??? GCB is for blocks, I would recommend the following
>> set_param(gcs,'Lock','off')

2 件のコメント

gao
gao 2015 年 11 月 12 日
Thanks Madhu! it works.
gao
gao 2015 年 11 月 12 日
Thanks Madhu! it works.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeModeling についてさらに検索

製品

質問済み:

gao
2015 年 11 月 9 日

コメント済み:

gao
2015 年 11 月 12 日

Community Treasure Hunt

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

Start Hunting!

Translated by