Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Login
Register
TheSwamp
»
Code Red
»
.NET
»
Topic:
Previewing DWG Viewer other than DWG True View...
« previous
next »
Print
Pages: [
1
] |
Go Down
Author
Topic: Previewing DWG Viewer other than DWG True View... (Read 3426 times)
0 Members and 1 Guest are viewing this topic.
farrukh
Guest
Previewing DWG Viewer other than DWG True View...
«
on:
March 20, 2013, 09:34:24 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
http://through-the-interface.typepad.com/through_the_interface/2008/06/autocad-net-ver.html#comment-6a00d83452464869e2017c37f2b32e970b
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
http://through-the-interface.typepad.com/through_the_interface/2007/10/au-handouts-t-1.html#comment-6a00d83452464869e2017c37f2e993970b
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
http://www.theswamp.org/index.php?topic=26621.msg335328#msg335328
and this one
http://www.theswamp.org/index.php?topic=25253.0
but at some small dwg files, it is unable to read bytes.
Any suggestions or help, would really be appreciated.
Thanks a bunch.
Logged
WILL HATCH
Bull Frog
Posts: 450
Re: Previewing DWG Viewer other than DWG True View...
«
Reply #1 on:
March 20, 2013, 10:31:11 AM »
http://www.theswamp.org/index.php?topic=30985.0
Logged
mohnston
Bull Frog
Posts: 305
CAD Programmer
WWW
Re: Previewing DWG Viewer other than DWG True View...
«
Reply #2 on:
March 20, 2013, 12:16:01 PM »
If you are a member of ADN they have a control that works nicely. DwgThumbnail.ocx
Logged
It's amazing what you can do when you don't know what you can't do.
CAD Programming Solutions
Print
Pages: [
1
] |
Go Up
« previous
next »
TheSwamp
»
Code Red
»
.NET
»
Topic:
Previewing DWG Viewer other than DWG True View...