Table Of Contents

Previous topic

5.16.6. thumbnailers.png — Thumbnailer for files containing a PNG thumbnail

Next topic

5.17. utils — Utilities

This Page

Languages

Previous versions

1.2
1.1

5.16.7. thumbnailers.sw — Thumbnailer for SolidWorks files

This module adds a thumbnailer for SolidWorks file.

5.16.7.1. How it works

A SolidWorks file is an OLE file. This file contains an entry named PreviewPNG (or Something-PreviewPNG) which contains the thumbnail as a PNG file.

This thumbnailer uses gsf (from libgsf-bin) to find the name of the entry and to extract its content.

plmapp.thumbnailers.swthumbnailer.sw_thumbnailer(input_path, original_filename, output_path)[source]

Thumbnailer that extracts a thumlbnail of a SolidWorks file.

plmapp.thumbnailers.swthumbnailer.FORMATS = ('.sldprt', '.sldasm', '.slddrw', '.slddrt')

Supported formats