Share

iLogicVaultClass.GetFileCopyBySourceFileSearchAndAutoNumber Method

Search multiple file(s) by 1 to many search criteria as property/value pairs.
Downloads first file matching all or any search criteria.
Preset Search Operator Options: [Property] is (exactly) [Value]; multiple conditions link up using AND condition.
Preset Download Options: Download Children (recursively) = Enabled, Enforce Overwrite = True

Namespace:  Autodesk.iLogic.Vault
Assembly:  Autodesk.iLogic.Vault (in Autodesk.iLogic.Vault.dll) Version: 30.0

Syntax

VB

Public Function GetFileCopyBySourceFileSearchAndAutoNumber ( 
	SearchCriteria As Dictionary(Of String, String),
	NumberingScheme As String,
	Optional MatchAllCriteria As Boolean = true,
	Optional InputParams As String() = Nothing,
	Optional CheckOut As Boolean = true,
	Optional SearchFolders As String() = Nothing,
	Optional UpdatePartNumber As Boolean = true
) As String

C#

public string GetFileCopyBySourceFileSearchAndAutoNumber(
	Dictionary<string, string> SearchCriteria,
	string NumberingScheme,
	bool MatchAllCriteria = true,
	string[] InputParams = null,
	bool CheckOut = true,
	string[] SearchFolders = null,
	bool UpdatePartNumber = true
)

Parameters

SearchCriteria
Type: System.Collections.Generic.Dictionary(String, String)
Dictionary of property/value pairs
NumberingScheme
Type: System.String
Individual scheme name or "Default"
MatchAllCriteria (Optional)
Type: System.Boolean
Optional. Switches AND/OR conditions using multiple criteria. Default is true
InputParams (Optional)
Type:  System.String[]
Optional according scheme definition. User input values in order of scheme configuration
CheckOut (Optional)
Type: System.Boolean
Optional. File copy will check-out as default.
SearchFolders (Optional)
Type:  System.String[]
Optional. Limit search scope to given folder path(s).
UpdatePartNumber (Optional)
Type: System.Boolean
Optional. Update Part Number property to match new file name

Return Value

Type: String
Local path/filename

Remarks

It's possible that your Vault does not have a default numbering scheme set up.
If that's the case, then the string "Default" will not work for the NumberingScheme argument.

To make it work, you must be an Administrator for the vault.
In the Vault Professional client program:
 Launch the Tools > Administration > Vault Settings dialog
 Click the Behaviors tab
 Click the Define Custom Numbering Schemes button

A new dialog will pop up.
There should already be a Sequential entry, but it may not be active and it may not be the default.
 Check the Active and Default boxes for that entry.

See Also

Reference

Was this information helpful?