Message 1 of 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have not been able to find much documentation about how to use this new rule in Inventor 2024.
If I have iproperties that correspond to the different fields for the selected numbering scheme, what do I need to add where I highlighted the text red to make the code work?
'Set the name of the numbering scheme or use 'Default' to use the pre-set scheme Dim mNumSchmName As String = "Default" 'Optionally collect input values for file the selected numbering scheme; use the order of the fields as configured in the scheme; Dim mNumInput As New System.Collections.Generic.List(Of String) 'add UDP.DisplayName, Value Pairs 'returns full file name in local working folder (download enforces override, if local file exists) 'returns "FileNotFound if file does not exist at indicated location Dim mVaultFile As String = iLogicVault.GetFileCopyBySourceFileNameAndAutoNumber("$/Designs/Inventor Sample Data/Fishing Rod Model/001012.ipt", mNumSchmName, , False) 'optionally add the mNumInput variable; note - the CheckOut flag is an option also; default = True. If mVaultFile Is Nothing Then Logger.Error("File copy not created; check that the file can get found first." ) Else Logger.Info("File " & mVaultFile & " created As copy.") 'add next action using the downloaded file here, e.g. Component.Replace("Part1:1", mVaultFile, True) End If
Solved! Go to Solution.