Is there a way to convert a dwg file to jpeg file using c# code behind?
Certainly. It just requires a very large amount of programming. Since it appears no-one has already done so and be willing to share the source freely, this means you'll likely have to purchase a library to do this. A quick search on Google indicates such
libraries exist. There's apparently a preview image stored in the dwg format, and here's code to extract that: http://www.codeproject.com/KB/vbscript/VBDwgImageExtractor.aspx (the code is in VB, but it shold be fairly easy to translate to C#).
Svante
AxCrypt - Free Open Source File Encryption & Online Password Manager - http://www.axantum.com [Disclaimer: Code snippets usually uncompiled, beware typos.]
______
Don't forget to click "Mark as Answer" on the post(s) that helped you.
Marked as answer by Figo Fei - MSFT on Oct 07, 2008 06:14 AM
Click "Mark as Answer" on the post that helped you.
This earns you a point and marks your thread as Resolved so we will all know you have been helped.
FAQ on the correct forum http://forums.asp.net/p/1337412/2699239.aspx#2699239
Nik26
Member
92 Points
22 Posts
dwg to jpeg format
Oct 03, 2008 07:56 PM|LINK
Is there a way to convert a dwg file to jpeg file using c# code behind??[*-)]
Svante
All-Star
18347 Points
2300 Posts
Re: dwg to jpeg format
Oct 04, 2008 10:27 AM|LINK
Certainly. It just requires a very large amount of programming. Since it appears no-one has already done so and be willing to share the source freely, this means you'll likely have to purchase a library to do this. A quick search on Google indicates such libraries exist. There's apparently a preview image stored in the dwg format, and here's code to extract that: http://www.codeproject.com/KB/vbscript/VBDwgImageExtractor.aspx (the code is in VB, but it shold be fairly easy to translate to C#).
AxCrypt - Free Open Source File Encryption & Online Password Manager - http://www.axantum.com
[Disclaimer: Code snippets usually uncompiled, beware typos.]
______
Don't forget to click "Mark as Answer" on the post(s) that helped you.
TATWORTH
All-Star
72415 Points
14017 Posts
MVP
Re: dwg to jpeg format
Oct 04, 2008 10:59 AM|LINK
DWG is the filetype of drawings from AutoCAD
This earns you a point and marks your thread as Resolved so we will all know you have been helped.
FAQ on the correct forum http://forums.asp.net/p/1337412/2699239.aspx#2699239