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

Save snapshot of view using Apprentice

Hello,

I'm trying to write a code to create a snapshot from multiple angles of a document (ipt/iam) and save it to file.
So far I've only tried the code from the links below but on both of them I get the same exception saying:

"An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in mscorlib.dll

Additional information: Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))"

I get the same error message on both functions SaveAsBitmap and CreateImage.

 

https://modthemachine.typepad.com/my_weblog/2013/03/inventor-api-training-lesson-12.html - "VB.NET example that opens a part and creates a jpg file"

http://aucache.autodesk.com/au2011/sessions/5606/class_presentations/v1_CP5606-Apprentice.pdf - Function

"ImageFromCameraSample"


I am using Inventor 2015. Anyone got the examples working with Inventor 2015?

 

Best regards,