Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

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