×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Get preview bitmap for drawings

Get preview bitmap for drawings

Get preview bitmap for drawings

(OP)
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?

Good and evil: wrap them up and disguise it as people.

RE: Get preview bitmap for drawings

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.

RE: Get preview bitmap for drawings

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)

RE: Get preview bitmap for drawings

(OP)
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

Good and evil: wrap them up and disguise it as people.

RE: Get preview bitmap for drawings

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.

RE: Get preview bitmap for drawings

If you want to try some "unsupported" ways you may take a look at one of free tools: Preview bitmap at http://swtools.cad.de/vb_preview.htm

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
http://solidworks.cad.de
Shareware, freeware, tools and macros
http://swtools.cad.de

RE: Get preview bitmap for drawings

(OP)
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.

Good and evil: wrap them up and disguise it as people.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources