.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Extract preview bitmap from a .DWG?

0 REPLIES 0
Reply
Message 1 of 1
olof.bjarnason
301 Views, 0 Replies

Extract preview bitmap from a .DWG?

How do I quickly and simply extract the preview bitmap from a DWG file using .NET/C#, having AutoCAD Mechanical 2007 installed on the client computer, nothing else?

Ideally I'm looking for something like:

Image GetDWGThumbnail(string filepath) { ... }

The function will be used in a simple file-selection-dialog, so relatively fast response time is essential (say no more than 50ms per call). I'm using the assemblies acdbmgd.dll & acmgd.dll found beside the acad.exe to communicate with AutoCAD.

I found a solution involving the native windows shell interfaces to extract the thumbnail from any given file, but that solution is less-than-simple. There must be a simpler way using the AutoCAD class libraries?

/Olof
0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost