Active Member
Posts: 6
Registered: ‎08-31-2006
Message 1 of 1 (442 Views)

VB.net using DWG to PDF.pc3

442 Views, 0 Replies
12-15-2006 03:12 PM
I get an error message when I try to use 'plottofile' or 'plottodevice' function. Anybody found a way to use this plotting device?

Private Sub PlotLayout(ByVal Papersize As String, ByVal LayoutName As String)
Dim Configname As String = "PHI - " & Papersize
Dim Path As String
Dim Plots As Integer
Dim PlotConfig As AutoCAD.AcadPlotConfiguration

PlotConfig = GetPlotConfig(Configname & " PDF")
If mform.chkPDFFiles.Checked = True Then
Path = Fullpath & "\" & LayoutName
AcadDwg.Plot.PlotToFile(Path, PlotConfig)

GetPlotConfig cycles thru configuration types in file until it finds the correct one to use.

I tried 'PlotToDevice' function and adding ".pdf" to path name and nothing seems to work.

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
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.