.NET

.NET

Reply
Active Contributor
26 Posts
0 Kudos
Registered: ‎05-07-2009
Post 1 of 2

Previewing DWG Viewer other than DWG True View...

344 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
762 Posts
100 Kudos
Registered: ‎03-21-2011
Post 2 of 2

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

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are you interested in helping shape the future of the Autodesk Community? To participate in this brief usability study, please click here. Your time and input is greatly appreciated!