Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations IDS on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get preview bitmap for drawings

Status
Not open for further replies.

TheTick

Mechanical
Mar 5, 2003
10,194
OK, finally got my API problem straightened out. I'm trying to use previewBitmap = SldWorks.GetPreviewBitmap ( filePathName, configName ). Works fine for assemblies and parts. No go for drawings.

I've tried various arguments for the configuration name ("", Empty, Null, "Default") and I get nothing. Is there a trick?

[bat]Good and evil: wrap them up and disguise it as people.[bat]
 
Replies continue below

Recommended for you

I have not been able to get this to work either. I can put more time into it next week.

DimensionalSolutions@Core.com
While I welcome e-mail messages, please post all thread activity in these forums for the benefit of all members.
 
Sounds like its 'configuration' related, which would explain why probs in drawingdocs. Cant test it here w/o the newer service packs, but poissibly it's an OPTIONAL parameter?

ie:previewBitmap = SldWorks.GetPreviewBitmap (filePathName)
 
I got an answer from SW API support.

Excerpt from email:
Sorry, GetPreviewBitmap does not work with drawings. I have the
following enhancement request:

162462 - SldWorks::GetPreviewBitmap should support drawings


[bat]Good and evil: wrap them up and disguise it as people.[bat]
 
Thanks for the update.

You would have thought they would have listed that limitation in the help screen or at least not listed drawings as a viable option in the sample program.



DimensionalSolutions@Core.com
While I welcome e-mail messages, please post all thread activity in these forums for the benefit of all members.
 
If you want to try some "unsupported" ways you may take a look at one of free tools: Preview bitmap at
A little example with free VB source code (which can be used in VBA also) will do the trick for the drawing preview.

HTH,
Stefan



--
unofficial german SolidWorks helppage
Shareware, freeware, tools and macros
 
Thank you, Stefan. Actually, I am a regular visitor to your site, and I have already downloaded your files. I highly recommend it to all SW API heads out there.

[bat]Good and evil: wrap them up and disguise it as people.[bat]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor