- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi @op_thorsager. There are likely several ways to get to the same end result, and whichever way makes the most logical sense to you will probably be just fine. Whichever way you do it, it seems like you would need to have that list of old file names, paired with new file names though, as @raith-mb mentioned, so you know which file references to replace with which other file references. You could likely use something like a NameValueMap or Dictionary(Of String, String) type variable for storing/using those name pairs, if necessary. And if the main assembly's file reference is pointing to the new one, just don't attempt to replace it. You would need a checking system in there to avoid that type of situation. If file reference equals old file, then replace, else do not replace. It looks like that code he posted was formatted for VBA though, so you would have to eliminate the 'Set' keywords, and include the () symbols around the MsgBox contents, and you do not need the 'Call' keyword, but it will not hurt anything.
Wesley Crihfield
(Not an Autodesk Employee)