.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

6 REPLIES 6
Reply
Message 1 of 7
vikashajela
6327 Views, 6 Replies

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

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.
6 REPLIES 6
Message 2 of 7
Anonymous
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.
>
Message 3 of 7
Shanskvm
in reply to: vikashajela

Hi, How to using that file. I was checking that one. but how to use.
Message 4 of 7
Shanskvm
in reply to: vikashajela

How to use that program...
Message 5 of 7
t.aarron
in reply to: vikashajela

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

 

 

just a joke 

Message 6 of 7
arcticad
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))
Message 7 of 7
Jeffrey_H
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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost