11-02-2020
11:13 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
11-02-2020
11:13 AM
In both of those two codes, it looks like you need to replace:
Dim refDoc As Document = ThisApplication.Documents.Open(view.ReferencedFile.FullFileName)with this:
Dim refDoc As Document = ThisApplication.Documents.Open(view.ReferencedDocumentDescriptor.FullDocumentName)because the 'view' object (DrawingView) doesn't support ReferencedFile directly.
Plus, the 'Open' function actually prefers the FullDocumentName vs the FullFileName (though usually not necessary unless dealing with documents within an assembly).
Here are the links for those objects.
DrawingView.ReferencedDocumentDescriptor Property
Wesley Crihfield
(Not an Autodesk Employee)