9
« Last post by jnelson on May 17, 2024, 10:10:45 AM »
Thank you for the suggestions BIGAL. Using the code below, I get different results in AutoCAD 2019 vs AutoCAD 2024.
(defun laytest (/ LAYLIST TBLAYOUT)
(setq LAYLIST (list "A" "B" "C" "D" "E" "F" "G"))
(setq TBLAYOUT "TEMPLATE")
(foreach MAP laylist (command "LAYOUT" "C" TBLAYOUT MAP))
)
This isn't the code I'm using in my program, but it demonstrates the issue in case anyone wants to try it. Open a new drawing, rename one of the layouts to be "TEMPLATE", and give it a try (or change the "TEMPLATE" assignment to be "Layout1", etc.). I've gotten consistently correct results in AutoCAD 2019, and consistently odd results in AutoCAD 2024. I'm assuming Autodesk changed something along the way that is causing this effect.