Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have two file embedded on my drawing. A jpeg and spreadsheet:
I am trying to write a rule that loops through the 3rd party items and deletes if it its a spreadsheet:
Dim oDoc As Inventor.Document = ThisApplication.ActiveDocument Dim ref As Inventor.ReferencedOLEFileDescriptor For Each ref In oDoc.ReferencedOLEFileDescriptors MsgBox(ref.DisplayName) If ref.DisplayName.EndsWith(".xlsx") Then ref.Delete 'delete reference End If Next
This is wrong because the DisplayName returns "Embedding 5" etc. How can I differentiate between the file types? I have looked through every option in Intellisense and they both file types give the same result for each.
Thanks,
Harvey
Solved! Go to Solution.