.NET

.NET

Reply
Active Contributor
farrukhw
Posts: 26
Registered: ‎05-07-2009
Message 1 of 2 (330 Views)

Previewing DWG Viewer other than DWG True View...

330 Views, 1 Replies
03-20-2013 06:27 AM

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.

ADN Support Specialist
Balaji_Ram
Posts: 693
Registered: ‎03-21-2011
Message 2 of 2 (282 Views)

Re: Previewing DWG Viewer other than DWG True View...

03-25-2013 04:01 AM 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

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.