Configure subdirectories by a file limit - SmartPlant Foundation - IM Update 46 - Help - Hexagon

SmartPlant Foundation Help

Language
English
Product
SmartPlant Foundation
Search by Category
Help
SmartPlant Foundation / SDx Version
10
SmartPlant Markup Plus Version
10.0 (2019)
Smart Review Version
2020 (15.0)

The vault object uses the SPFSubDirMaxFileCount property to identify the file limit. A limit of 1000 combined with the subdirectory property defined above would result in directories such as:

.\VaultPath\<SPFSubDirectoryProperty>\1\ for the first 1000 files

.\VaultPath\<SPFSubDirectoryProperty>\2\ for the second 1000 files

In the case of multiple existing directories, with a file limit of 1000 and the following folders already existing in subdirectory property path:

.\VaultPath\<SPFSubDirectoryProperty>\1\ 100 files

.\VaultPath\<SPFSubDirectoryProperty>\5\ 200 files

.\VaultPath\<SPFSubDirectoryProperty>\86\ 1000 files

The new file is placed in this location:

.\VaultPath\<SPFSubDirectoryProperty>\87\

If the subdirectory ‘86’ contains less than 1000 files, then the new file is placed in that subdirectory.

If the file limit is set to 0, all the new files uploaded are placed directly in the subdirectory property path as follows:

.\VaultPath\<SPFSubDirectoryProperty>\

The evaluated subdirectory property path length cannot exceed the length that is accepted by Windows. Also, the length of the full path of the file in the vault cannot exceed the length that is accepted by Windows. If this is the case, then the vault configuration must be changed.

Combinations of subdirectory property values and file limits

Some additional cases where the SPFSubDirectoryProperty property contains other values are given below:

  • Empty string - If the subdirectory property is empty or evaluates to an empty string, then by default it is taken as the class definition UID of the corresponding file. A limit of 1000 combined with the subdirectory property in this example would result in directories such as:

    .\VaultPath\{<File.ClassDefinitionUID>}\1\ for the first 1000 files

    .\VaultPath\{<File.ClassDefinitionUID>}\2\ for the second 1000 files

  • Numerical value -- For example, if 5 is the value, a limit of 1000 combined with that subdirectory property value would result in directories such as:

    .\VaultPath\5\1\ for the first 1000 files

    .\VaultPath\5\2\ for the second 1000 files

  • Expression containing special characters -- If the subdirectory property contains special characters like ‘/’,’:’,’*’,’?’,’<’,’>’, or ‘|’, they are replaced with empty strings. For example, if the property value is 'Test/*Sub<>Dir', a limit of 1000 combined with that value would result in directories such as:

    .\VaultPath\TestSubDir\1\ for the first 1000 files

    .\VaultPath\TestSubDir\2\ for the second 1000 files

    Any leading ‘\’ or extra white spaces in the subdirectory property are removed.