I have the need to use the AutoCAD core console due to the amount of drawings in a cleanup process 1000's+. In my research, I learned that,
"Visual Lisp (ActiveX) commands DO NOT WORK with AutoCAD Core Console at this time. Only straight AutoLISP commands work. Anything with a VL prefix does not work."And now I have to create code that checks if two page setups exist in the drawing and if not then import them both from a template.
I am struggling structuring the list and the conditional section, also I included a sample drawing file for testing.
Thanks for any help you can provide.
;;Orignal code by Fred Schreck
;;CAD/IT Manager
;;Kaplan McLaughlin Diaz Architects
;;San Francisco
;;2000
(defun c:plotsetupcheck
(/ ObjectList EntPlotDataList plssetup
) )
)
)
(setq EntPlotDataList
(cdr ObjectList
)) (setq plssetup
(assoc 3 PlotDataList
)) ;; Stuck here ;; Check for setup named "Basic_24x36" and "DWG To PDF"
;; Conditional section begin
)
;; Conditional section end
"\\\\Server\\CleanUp\\AutoCAD\\Automation\\Template.dwt"
"DWG To PDF"
)
"\\\\Server\\CleanUp\\AutoCAD\\Automation\\Template.dwt"
"Basic_24x36F"
)
)
If interested here is some reference material for the AutoCAD Core Console:
https://www.autodesk.com/autodesk-university/class/AutoCAD-Scripting-Core-AutoCAD-Core-Console-2018https://www.keanw.com/2012/02/the-autocad-2013-core-console.html