Hi experts,
I'm working with AutoCAD 2012 x64 and I need a control to view DWG files selected in my ListView. I tried using DWG True View 2013 and it worked well, but this is more than my requirement. My requirement is to simply show a preview of the drawing. But DWGTrue View is an advance control and is not standalone i.e. Users have to download and install its full installer.
I'm seeking help from Kean's blog post but this might require some customization to code in order to fix TOP View and do a Zoom Extent: Currently not succeeded.
I also seek using DWGThumnailviewer.ocx referenced in this post but unfortunately, I couldn't find DWGThumnailViewer.ocx with AutoCAD 2012. I guess it was discontinued.
Other option could be to generate a raster graphic file (*.jpg, *.gif, *.png, *.bmp) and display that into a picture box. I tried some code from this thread and this one but at some small dwg files, it is unable to read bytes.
Any suggestions or help, would really be appreciated.
Thanks a bunch.
Hi Farrukh,
DwgThumbnail.ocx is not discontinued.
Here is the blog post to download the latest version and it should also work with 64 bit systems:
http://adndevblog.typepad.com/autocad/2012/08/adn-autocad-utilities.html
If you do not want the registration hassles of an ActiveX control, then can try the sample code provided in this post @swamp :
http://www.theswamp.org/index.php?topic=30985.15