.NET

Reply
New Member
olof.bjarnason
Posts: 2
Registered: ‎10-11-2006
Message 1 of 1 (168 Views)

Extract preview bitmap from a .DWG?

168 Views, 0 Replies
10-11-2006 10:58 PM
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
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.