
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I have an Inventor Addin and i am using Inventor API.
I want to rename a complete assembly-structure that contains a piping assembly.
The Problem is that Inventor does not recognize the changes instantly and does not find the routes:
I have a function which renames all models recursively, using replaceReference:
For Each childDoc As Document In activeDocument.ReferencingDocuments
oFileDescriptors = childDoc.File.ReferencedFileDescriptors
For descriptorCount = 1 To oFileDescriptors.Count
Try
If String.Compare(oFileDescriptors.Item(descriptorCount).FullFileName, filePath, True) = 0 Then
oFileDescriptor = oFileDescriptors.Item(descriptorCount)
oFileDescriptor.ReplaceReference(newFilePath)
End If
Catch exc As Exception
End Try
Next descriptorCount
Next
What can I do that Inventor recognizes the changes correctly?
It is no option to reopen assemblies, because opening of large assemblies is too slow.
thanks
-marcus
Solved! Go to Solution.