12-29-2014
09:18 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
12-29-2014
09:18 AM
I get the equivalent results in the iLogic and VBA versions of your rule.
To work correctly in VBA it is necessary to add SET to the both code lines:
Set oleReference = doc.ReferencedOLEFileDescriptors.Add(selectedfile, kOLEDocumentLinkObject)
In my test I added a bitmap image to the drawing sheet. Both properties
oleReference.BrowserVisible = True / False and oleReference.Visible = True / False
work as expected.
Vladimir Ananyev
Developer Technical Services
Autodesk Developer Network