dogarila
Mechanical
- Oct 28, 2001
- 594
Is it possible to extract and display the bitmap preview of a part or assembly from a VB6 exe program? There is some information in the SW API help but it's a bit confusing (or I don't like what it says).
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
C++ programmers can also access this bitmap image from outside SolidWorks. The bitmap was written with CArchive::Write( ) and is found in the Preview node in SolidWorks part, assembly and drawing files. The format of the Preview node is as follows: DWORD (data size) followed by continues chunk of memory of that size (data). The data being read can be cast to LPBITMAPINFO, which has all of the information required to display the bitmap.