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

DrawingView.ReferenceDataDisplayStyle does not appear functional or present on DrawingView objects.

josh.nieman
Advocate

DrawingView.ReferenceDataDisplayStyle does not appear functional or present on DrawingView objects.

josh.nieman
Advocate
Advocate

Refer to: https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=DrawingView_ReferenceDataDisplayStyle
and https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=ReferenceDataDisplayStyleEnum

This appears to be a read/write value on Inventor.DrawingView objects, which should enable access to set the display options for Reference Data from the model.

I get a a COMException error when trying to access this property of an Inventor.DrawingView object in memory:

Exception thrown: 'System.Runtime.InteropServices.COMException' in mscorlib.dll
System.Transactions Critical: 0 :
<Exception>

     <ExceptionType>System.Runtime.InteropServices.COMException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType>

     <Message>Member not found. (Exception from HRESULT: 0x80020003 (DISP_E_MEMBERNOTFOUND))</Message>
at Inventor.DrawingView.get_ReferenceDataDisplayStyle()

 

Exception thrown: 'System.Runtime.InteropServices.COMException' in mscorlib.dll
System.Transactions Critical: 0 :
<Exception>
     <ExceptionType>System.Runtime.InteropServices.COMException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType>
     <Message>Member not found. (Exception from HRESULT: 0x80020003 (DISP_E_MEMBERNOTFOUND))</Message>
at Inventor.DrawingView.get_ReferenceDataDisplayStyle()

 


Also, when the code breaks, and I use the Dynamic View in Visual Studio 2022, this property is not among the many identified for this object.

Has anyone gotten this to work?

Currently running Inventor 2024.3 and my application references version 28.2 of the interop.dll

0 Likes
Reply
101 Views
0 Replies
Replies (0)