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

Just dropping a link in here to one of my recent forum responses under another topic that I think will be helpful for some folks that have found this topic.

https://forums.autodesk.com/t5/inventor-programming-ilogic/save-thumbnail-as-image-file/m-p/13014204... 

It has a text file attachment, and within that text file is code for an iLogic rule that can be used to capture both the large and small (or standard) icons of existing buttons that are currently defined within Inventor, and saves them out as png files.  Those files are already the correct sizes, correct file types, and have the correct file names for use as button icons that can be used for ButtonDefinitions for other iLogic rules. 

 

But for convenience, I will attach that file here also.  But within that other (linked to) conversation are some interesting, and maybe useful alternative codes (and Links) showing how to get other native Inventor images (IPictureDisp) to external files.  There have been multiple variations of codes for these types of purposes floating around for years, but many of the older ones are getting very outdated, and may not even work anymore.  There are apparently multiple internal variations of these IPictureDisp image data types that Inventor uses internally for various purposes.  One variation is used for the Document.Thumbnail (which is an IPictureDisp), and another variation is used for the button icons (ButtonDefinition.LargeIcon & ButtonDefinition.StandardIcon).  These two different variations, one designed for Bitmap use, the other for Icon use, require slightly different processes to convert before saving as an external png file.

 

There is a similar code within that other conversation for saving the document thumbnail images out too, if interested.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)