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

VB.net using DWG to PDF.pc3

0 REPLIES 0
Reply
Message 1 of 1
wynn1427
816 Views, 0 Replies

VB.net using DWG to PDF.pc3

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)
EndIf
EndSub

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.

Thanks
Wynn
0 REPLIES 0

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