Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

0 REPLIES 0
Reply
Message 1 of 1
josh.nieman
60 Views, 0 Replies

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

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 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Technology Administrators


Autodesk Design & Make Report