Vault working folder

Vault working folder

adam_liMNCRV
Advocate Advocate
232 Views
1 Reply
Message 1 of 2

Vault working folder

adam_liMNCRV
Advocate
Advocate

Hi, 

We are using Vault Basic 2022 While not everyone`s working folder were set up the same. 

Some path is c:\Vault-company, c:\Vault_company, c:\Company-Vault, C:\User\Vault-company, D:\Vault-comany...

This causes some issue if the path is referred in ILogics. 

 

Is it too late the fix the path issue? what shall we do make the path the same?

Thanks. 

0 Likes
Accepted solutions (1)
233 Views
1 Reply
Reply (1)
Message 2 of 2

Skadborg.NTI
Advocate
Advocate
Accepted solution

Don't refer to the path directly. Instead, retrieve the current path from the project file. This approach ensures that your iLogic is tolerant to different working folder locations:

Dim WorkingFolderDesignsDir = ThisApplication.DesignProjectManager.ActiveDesignProject.WorkspacePath
MessageBox.Show(WorkingFolderDesignsDir)