API: Displaying Preview Bitmaps

File uploaded by Joyce Bossom Employee on Nov 16, 2010Last modified by Joyce Bossom Employee on Nov 2, 2012
Version 5Show Document
  • View in full screen mode

This archive contains a VBA macro that shows how to display the preview bitmap of a SolidWorks model document (on x32 systems only).


  1. Extract the archive in a convenient location.
  2. Edit the macro in the SolidWorks Macro Editor.
  3. Run the main() subroutine to show the SolidWorks::GetPreviewBitmap dialog.
  4. Click Browse in the dialog and select a Solidworks model document.
  5. The Default configuration of the model is selected in ddlConfig, and the preview bitmap for the configuration displays in imgPreview.


- Subscription Services required for full access.

- Looking for more API Examples?


Copyright © 2010 Dassault Systèmes SolidWorks Corp. All rights reserved.

Do not distribute or reproduce without the written consent of Dassault Systèmes SolidWorks Corp.