Change "Project definition folder"

조회 수: 14 (최근 30일)
Scott Tatum
Scott Tatum 2023년 7월 20일
댓글: Scott Tatum 2023년 8월 7일
In 2022b, is there a way to create a project with a specific definition folder type? I have my preferences set to ".SimulinkProject", but someone else had it as "resources/project" and we're running into issues. I'd also like to configure the Project definition files as well
I would like to either be able to do a temporary setting using the settings command,
s = settings;
s.xyz.projectDefinitionFolder.TemporaryValue = '.SimulinkProject';
s.xyz.projectDefinitionFiles.TemporaryValue = matlab.project.DefinitionFiles.SingleFile;
but I cannot find this folder option in the settings structure.
Or, some option when creating the project such as
proj = matlab.project.createProject("Name","myprojectname","Folder","C:\work\mynewproject",...
"ProjectDefinitionFolder",".SimulinkProject","ProjectDefinitionFile",matlab.project.DefinitionFiles.SingleFile)
Any way to do this?

답변 (1개)

Aman
Aman 2023년 8월 4일
Hi,
I understand that you want to create projects and want to set specific definition folder types programmatically, but you are running into issues while doing it.
The "settings" is used to access the "SettingGroup" of the root object, and the "SettingGroup" does not have any inbuilt function for setting up the project definition folder. Please refer to the following documentation to learn more about the "settings".
The "createProject" function is used to create a blank project. It accepts a name-value pair as an input argument, but the pair could only be "Folder" and "Name", It does not support "ProjectDefinitionFolder" and "Name" as a pair, which is what you are trying to do. Please refer to the following documentation to learn more about the "createProject" function.
Alternatively, you can create a project using the MATLAB IDE. While creating the project, the folder you select as the project folder will act as the project definition folder. Please refer to the following documentation to learn more about the project creation using the MATLAB Ide.
I hope it helps!
  댓글 수: 1
Scott Tatum
Scott Tatum 2023년 8월 7일
Thanks for the reply. I am aware of the help on the items and know the features I asked for do not currently exist, they would be a great enhancement.
Is there any other workaround to get a consistent method for the project definition folder other than telling all users they have to set that setting in that way manually? This makes it impossible to configuration control a process if a user can just switch the project definition locally.

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

카테고리

Help CenterFile Exchange에서 Software Development Tools에 대해 자세히 알아보기

태그

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by