GetFileCountWithExtension
Description
Gets the number of files with a given file extension.
Syntax
Function GetFileCountWithExtension(Vault As Vault, ObjVer As ObjVer, Extension As String) As Integer
Parameters
| 
    Name  | 
  
    Data Type  | 
  
    Description  | 
 
| 
    Vault  | 
  
    Vault containing the Object and states  | 
 |
| 
    ObjVer  | 
  
    Object with previous states to destroy  | 
 |
| 
    Extension  | 
  
    String  | 
  
    File extension to count.  | 
 
Return
Returns the number of files with the given file extension.
Example
'create Pentagon DOCS Script Library object
Set scriptLib = GetExtensionObject("PentagonDOCS.Core.ScriptLibrary")
'get property value as TypedValue
Dim project : project = scriptLib.GetFileCountWithExtension(Vault, ObjVer, "dwg")