.NET

.NET

Reply
Member
vikashajela
Posts: 5
Registered: ‎04-08-2010
Message 1 of 7 (2,249 Views)

I want the c# code to convert/ publish Autocad file (dwg) to pdf format.

2249 Views, 6 Replies
04-15-2010 06:15 AM
I have a query.

I want the c# code to convert/publish Autocad file (dwg) to pdf format.

Please suggest some code or link for the same.
*Michael Robertson
Message 2 of 7 (2,249 Views)

Re: I want the c# code to convert/ publish Autocad file (dwg) to pdfformat.

04-15-2010 10:04 AM in reply to: vikashajela
Hello vikashajela,
Kean Walmsley has a blog post on "Driving a basic AutoCAD plot using .NET"
at:
http://through-the-interface.typepad.com/through_the_interface/2007/09/driving-a-basic.html


> I have a query.
>
> I want the c# code to convert/publish Autocad file (dwg) to pdf
> format.
>
> Please suggest some code or link for the same.
>
Valued Contributor
Shanskvm
Posts: 54
Registered: ‎09-22-2009
Message 3 of 7 (2,249 Views)

Re: I want the c# code to convert/ publish Autocad file (dwg) to pdfformat.

05-30-2010 01:03 AM in reply to: vikashajela
Hi, How to using that file. I was checking that one. but how to use.
Valued Contributor
Shanskvm
Posts: 54
Registered: ‎09-22-2009
Message 4 of 7 (2,249 Views)

Re: I want the c# code to convert/ publish Autocad file (dwg) to pdfformat.

05-30-2010 01:08 AM in reply to: vikashajela
How to use that program...
New Member
t.aarron
Posts: 2
Registered: ‎06-17-2010
Message 5 of 7 (2,240 Views)

Re: I want the c# code to convert/ publish Autocad file (dwg) to pdf format.

06-17-2010 11:33 PM in reply to: vikashajela

Maybe U can buy a DWG to PDF converter soft, and try to crack the original codes.

 

 

just a joke 

*Expert Elite*
arcticad
Posts: 1,285
Registered: ‎06-21-2004
Message 6 of 7 (2,232 Views)

Re: I want the c# code to convert/ publish Autocad file (dwg) to pdf format.

06-18-2010 03:17 AM in reply to: vikashajela

You can use adobe Acrobat to convert the file for you.

You will need to create a PLT file and then this would convert that file into a PDF file.

 

 

 

Imports ACRODISTXLib

Public Class Class1
    Function PrintPDF(ByVal pltName As String, ByVal PDFName As String) As Boolean
        Dim rtnValue As Boolean
        Dim myPDF As PdfDistiller = Nothing
        If myPDF Is Nothing Then
            myPDF = New PdfDistiller
        End If
        Try
            rtnValue = myPDF.FileToPDF(pltName, PDFName, "")
        Catch ex As Exception
            rtnValue = False
            MsgBox("Error Creating PDF File:" & PDFName & vbCr)
        End Try
    End Function

End Class

 

 

---------------------------



(defun botsbuildbots() (botsbuildbots))
Valued Mentor
Jeffrey_H
Posts: 372
Registered: ‎01-20-2010
Message 7 of 7 (2,182 Views)

Re: I want the c# code to convert/ publish Autocad file (dwg) to pdf format.

06-21-2010 10:16 PM in reply to: vikashajela

DWF/PDF Batch Publish for AutoCAD
This plugin can be used with AutoCAD to simplify the process of publishing sets of drawings to DWF and/or PDF. It runs as a command within AutoCAD - as opposed to a separate executable - and uses a separate executable to monitor AutoCAD's health and restart it, as needed. The status of the batch publishing operation is stored to disk, allowing it to pick up from where it left off and also for any failed documents to be retried without starting from scratch. A setting is available to only publish drawings that have been modified since they were last published, making it easier to publish sets of documents on a regular basis.

 

http://labs.autodesk.com/utilities/ADN_plugins/catalog/

You can also find your answers @ TheSwamp
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.