Message 1 of 7
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I need to compose iLogic (or VB) code for as-fast-as-possible check whether active document's Thumbnail is empty (has at least two pixels different in color). I guess it is not Inventor's special task yet don't know where to start from.
AddReference "Stdole.dll" Imports stdole Sub Main Dim oThumb As stdole.IPictureDisp Dim NoThumb As Boolean=1 Try oThumb=ThisDoc.Document.Thumbnail NoThumb=0 ' if ??? Then MsgBox("Doc's Thumb is empty") Catch MsgBox ("Active DOc has no Thumb") End Try End Sub
Maybe there is some VB method otherwise I will compare each and every pixel with white which is supposed to be too long. Any help is appreciated.
Please vote for Inventor-Idea Text Search within Option Names
Solved! Go to Solution.