I had asked my VAR about this and I was told that was not an option. AutoCAD could not be set up for this. Of course, this was when we were running AutoCAD 2011 and I should ask them if it works in 2013 since we now have that.
Draftsight will read AutoCAD files up to version 2010.
It can then "Export to PDF".
In order to automate DraftSight to do this, the supported version has to be purchased. The free version lacks the ability to be programmed.
Take a look at Bluebeam for AutoCad. We use Bluebeam for Solidworks and find it better than the convert to pdf in SolidWorks. It has batch capabilities as well as some editing capabilities. It also gives you a pdf printer plugin for all your windows programs. It's a bit pricey for an individual but if you need batch capabilities it does it with ease.
other videos, no problem. THIS video.............no sound.
There is no sound in this video David. We have done this for one of our customer.
Where can I get the add-in from that video?
Some code to play with:
Public Class frmTest
Private Sub Button1_Click(ByValsender As System.Object, ByVal e AsSystem.EventArgs) Handles Button1.Click
Dimacad As NewmyAutoCAD
Public Class myAutoCAD
Public Sub AutoCADToPDF(ByValpsfilename As String)
DimoAutocad As AcadApplication = New AcadApplication
oAutocad.Visible = True
oAutocad.WindowState = AcWindowState.acMax
Dimsuccess As Boolean= False
DimoAcadDoc As AcadDocument = oAutocad.Documents.Open(psfilename, False, "")
Dim oSS As AcadSelectionSet = Nothing
Dimftype(0) As Short
ftype(0) = 410
Dimfdata(0) As Object
fdata(0) = "Model"
oSS = oAcadDoc.SelectionSets.Add("MySet")
oSS.Select(AcSelect.acSelectionSetAll, Nothing, Nothing, ftype, fdata)
oAcadDoc = Nothing
oAutocad = Nothing
success = True
Catchex As Exception
MsgBox(ex.Message + vbLf + ex.StackTrace)
success = False
MsgBox(vbLf + "Info: " + success.ToString)
SubCreatePDF(ByVal acDoc AsAcadDocument)
DimPtConfigs As AcadPlotConfigurations
DimPlotConfig As AcadPlotConfiguration
DimPtObj As AcadPlot
DimBackPlot As Object
PtObj = acDoc.Plot
PtConfigs = acDoc.PlotConfigurations
PlotConfig = PtConfigs.Item("PDF")
PlotConfig.StandardScale = AcPlotScale.acScaleToFit
PlotConfig.ConfigName = "DWG To PDF.pc3"
PlotConfig.StyleSheet = "acad.ctb"
PlotConfig.PlotWithPlotStyles = True
BackPlot = acDoc.GetVariable("BACKGROUNDPLOT")
IfPtObj.PlotToFile(Replace(acDoc.FullName, "dwg", "pdf"), PlotConfig.ConfigName) Then
acDoc.Utility.Prompt(vbLf + "PDF Was Created")
acDoc.Utility.Prompt(vbLf + "PDF Creation Unsuccessful")
PlotConfig = Nothing
Does AutoCAD still support the "batch plot" utility? We are running AutoCAD 14 (SW has long been our primary), and it seems it was included.
Years ago I wrote a DOS batch utility to convert AutoCAD drawings to PDF. Basically take all the drawings in a folder, determine model/paper space and sheet size, use this information to write a batch plot file. We also set up PCFs for each sheet size, which would print to Acrobat Distiller (any "distiller" seems to work though, I use the free Bullzip currently). You have to set up the distiller to output to a common folder without prompting. Then invoke the batch plot utility with the generated file. Then gather the resulting PDF files and put them where you want. For multi-sheet drawings you might want to look into PDFTK, to merge the resulting PDF files.
One problem we've run into more recently is that AC14 apparently does not get along with Win7 (or perhaps it is the restriction of administrator rights to IT).
Regarding sheet size and model/paper space, we determined that manually for all our files, and embedded the information into the filename, specifically to support this automation. The info could certainly be stored in the datacard.
BULLZIP ERROR!!! Hey All, a quick note. I'm using solidworks 2014 and while printing to PDF using Bullzip I had 4 dimensions where the numbers were transposed "150" became "105". I've checked this everyway I know. It is 100% repeatable. A second pdf printer PDFCreator works fine. Tried it 2 weeks apart, several reboots, all the usual. I'm removing Bullzip sorry to say, used it for years!!
Windows 7 - Xeon E5email@example.com, 32gb ram, SW2014x64 SP2.0
I've contacted Bullzip, no reply yet!!