Thumbnail length as method to determine emptiness

Thumbnail length as method to determine emptiness

Maxim-CADman77
Advisor Advisor
339 Views
1 Reply
Message 1 of 2

Thumbnail length as method to determine emptiness

Maxim-CADman77
Advisor
Advisor

I'd like to create some fast-working app to warn Inventor user regarding empty Thumbnail.

Here designers are allowed to use dummy model if there is some meaningful image is imported as Thumbnail but they sometimes forget to import thus the white square (we force white background) is what managers see in ERP etc.

Checking the color of center points or any other pattern is not reliable enough (there might be part/unit/kit/set with central hole etc): 

TES_RecKit_Fastener_1(MMI).png

I wonder if there any indirect way to determine thumbnail's simplicity.

Solid-color image should have minimal "length", right? But i doubt Thumbnail object has such a property like length...

Checking the color of 32000+ (180х180) points would n't satisfy me because of low productivity.

Any ideas?

Please vote for Inventor-Idea Text Search within Option Names

0 Likes
340 Views
1 Reply
Reply (1)
Message 2 of 2

chandra.shekar.g
Autodesk Support
Autodesk Support

@Maxim-CADman77,

 

Through Inventor API, thumbnail image can be generated from a Document. For more details, refer below blog article in the link.

 

http://modthemachine.typepad.com/my_weblog/2010/06/accessing-thumbnail-images.html

 

Currently, accessing thumbnail property (like length) may not support Inventor API.

 

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



0 Likes