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

Previewing DWG Viewer other than DWG True View...

1 REPLY 1
Reply
Message 1 of 2
farrukhw
599 Views, 1 Reply

Previewing DWG Viewer other than DWG True View...

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.

1 REPLY 1
Message 2 of 2
Balaji_Ram
in reply to: farrukhw

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

 

 

 



Balaji
Developer Technical Services
Autodesk Developer Network

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