    

 ## On this page

  

 

 # ansys::Project::ProjectStoragePolicy Class Reference

 Last update: 16.07.2025 

[Project](classansys_1_1_project_1_1_project.xhtml "Base class for Project API, also see SimProject.") storage settings, control folder management, folder names, etc. [More...](classansys_1_1_project_1_1_project_storage_policy.xhtml#details)

`#include "ProjectStoragePolicy.hpp"`

## <a id="pub-methods" name="pub-methods"></a>Public Member Functions

<a id="a796f624b5195e85e2e6d1438aae4e5f3" name="a796f624b5195e85e2e6d1438aae4e5f3"></a> **ProjectStoragePolicy** (const std::string pName) Constructor - default storage policies.   
 <a id="a2be7b219115ccfabd10ec76eec615024" name="a2be7b219115ccfabd10ec76eec615024"></a>bool **isProjectSubfolderEnabled** () const indicates if the project is a managed project (with a sidecard folder to store files)   
 <a id="a96410b6d24c2160ccca6c0a1231c83e5" name="a96410b6d24c2160ccca6c0a1231c83e5"></a>std::string **getSubProjectMode** () const indicates the type of the subproject (the type of the head node of the subproject) - default state is none (empty string)   
 <a id="abc5273cd8bf336f2b2ef50b95a08c70a" name="abc5273cd8bf336f2b2ef50b95a08c70a"></a>std::string **getSimFolderName** () const returns the name of the simulation folder in the current policy (default is none)   
 <a id="afd7b7487b032863932e9ddc7f28822db" name="afd7b7487b032863932e9ddc7f28822db"></a>std::string **getProjectSubfolderSuffix** () const indicates the the filename suffix added to a project folder (default is .cffdb)   
 <a id="ad11cd0726e363557d2687a9953be8914" name="ad11cd0726e363557d2687a9953be8914"></a>std::string **getProjectSubfolderCustomName** () const indicates if the project folder has a specific name - default is none (will use project index filename + suffix)   
 <a id="a3dd58ce3f552dc734da4ee7402dae8e0" name="a3dd58ce3f552dc734da4ee7402dae8e0"></a>bool **isReadOnly** () const indicates if the project is read-only, cannot be saved back and many operations will fail   
 <a id="a8aae9c1ab4c6ee30c9bf48fca821c5f2" name="a8aae9c1ab4c6ee30c9bf48fca821c5f2"></a>std::string **getApplicationName** () const return the application owner of this project (optional - default is empty)   
 <a id="a3198e10db4a1528ec7013e314917dd9b" name="a3198e10db4a1528ec7013e314917dd9b"></a>[URL](classansys_1_1_project_1_1_u_r_l.xhtml) **getLockInfoFilename** (const [URL](classansys_1_1_project_1_1_u_r_l.xhtml) &amp;pProjectLocation) const if project lock is enabled, returns the lock filename for the specified project location   
 <a id="a6f6b3aafaf32b38b045302ae533a5c58" name="a6f6b3aafaf32b38b045302ae533a5c58"></a>bool **isLockInfoEnabled** () const indicates if project lock feature is enabled   
 <a id="a2a5a04e54acf832efaeefdc6a1c8538a" name="a2a5a04e54acf832efaeefdc6a1c8538a"></a>bool **isLockInfoOnReadOnlyEnabled** () const indicates if project lock will prevent reading even in read-only mode   
 <a id="details" name="details"></a>## Detailed Description

[Project](classansys_1_1_project_1_1_project.xhtml "Base class for Project API, also see SimProject.") storage settings, control folder management, folder names, etc.

The storage policy is to be set before creating a new project, or the read project settings can be retrieved after opening an existing project. The policy is saved in the project file itself.

Default policies:

- Managed project (a project folder is created and managed aside the project file)
- [Project](classansys_1_1_project_1_1_project.xhtml "Base class for Project API, also see SimProject.") folder suffix: .cffdb
- [Project](classansys_1_1_project_1_1_project.xhtml "Base class for Project API, also see SimProject.") lock: disabled
- Automatic upgrades: enabled