필터 지우기
필터 지우기

Disable mfile / model overwriting

조회 수: 1 (최근 30일)
Markus
Markus 2013년 7월 1일
댓글: Benjamin Fishman 2023년 6월 21일
When I try to save a model or mfile which is read-only, a dialog appears, asking me whether ML/SL should try to make files writable or not.
Since those files are under source-control, making them writable would lead to inconsistencies and is not an option.
Because some people working with those files might click the wrong option (Make Writable) in the dialog, I do not want it to appear. How can this be achieved - for both Matlab and Simulink?

답변 (1개)

Jan
Jan 2013년 7월 1일
This is a job for the operating system: Restrict the write access for users, who are not allowed to save the file.
Unfortunately the dialog wil most like appear again, but the user is asked for a new file name.
  댓글 수: 2
Markus
Markus 2013년 7월 2일
I think the problem is that the users shall have complete access, but only if the file is checked-out in the source-control system. Hence it is not wanted to permanently force the read-only status of a file (or something like that) on the operating system basis. I would be best to switch of this "Make Writable" in Matlab/Simulink therefore.
Benjamin Fishman
Benjamin Fishman 2023년 6월 21일
I have the same need as OP. The files are cloned/checked out locally from source control as read-only. The user locks the file via source control which makes the file writable locally. I don't want Matlab/Simulink to give the dialog to force the file to be writable when it is read-only. Is this possible?

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

카테고리

Help CenterFile Exchange에서 Simulink Environment Customization에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by