Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
How can I convert from DWG "autocad file " to PDF in c#.net?
 
Thanks for any help.
Posted 22-Aug-10 20:09pm
Edited 22-Aug-10 22:21pm
Dalek Dave426.3K
v3
Comments
Dalek Dave at 23-Aug-10 4:21am
   
Edited for Spelling, Grammar, Syntax and removal of Txtspk.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 6

CadLib[^] supports DXF/DWG to PDF conversion. There is a Dxf export example in the evaluation version that demonstrates how to do this (along with export to several image formats like bmp, png, tif etc).
 
- Wout
  Permalink  
Comments
surajemo at 1-Jun-13 11:14am
   
is there any way to convert dwg file to pdf in c#
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 7

  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

It is an incredibly difficult thing you are asking.
Autocad holds drawing data in a totally different format from PDF, and you would have to access the drawing data, and effectively draw in memory then copy that to a pdf file.
 
A DWG file may be several GB in size, and yet the equivalent PDF, less than one meg.
 
It would be a major undertaking to write this as an element in your code.
Seriously, many man months of work and thousands of pounds.
 
I would suggest you take advantage of third party apps and maybe modify as plugins.
  Permalink  
Comments
wout de zeeuw at 6-Mar-11 6:18am
   
Quote: "A DWG file may be several GB in size" I have yet to see such large files, several dozens of MB is already quite a large drawing. Was it a typo, or did you actually ran across such large files? Quote: "many man months" Couple of man years actually.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

I have to do this quite often, as I do my design work in AutoCAD, but many of the people who need to receive my designs don't have AutoCAD available. The best solution I've found is a free utility, CutePDF, which installs as a printer device. When I need to make the conversion, I load the drawing in AutoCAD, plot it, and select CutePDF as the printer. That pops up a dialog box to ask what I want to call the file, and where I want to store it. The result is a PDF file that works perfectly.
 
If you don't have AutoCAD, and just want to make a standalone file conversion, it gets ugly. There are a lot of free conversion tools out there, and none I've found works very well. There are also some commercial programs to do this, but I haven't tried them as my budget doesn't cover too many toys that may, or may not work.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 8

i want to convert cad files like dxf format files into PDF or images, we can make a talk. my email: xiaowanzi3001@163.com
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Sergey Alexandrovich Kryukov 397
1 OriginalGriff 350
2 thatraja 205
3 Emre Ataseven 165
4 Shai Vashdi 150
0 Sergey Alexandrovich Kryukov 8,894
1 OriginalGriff 5,200
2 Peter Leow 3,955
3 Maciej Los 3,535
4 Abhinav S 3,208


Advertise | Privacy | Mobile
Web01 | 2.8.140415.2 | Last Updated 1 Jun 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid