Message 1 of 14

Not applicable
05-11-2015
03:24 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello, I have a very simple LISP routine that iterates through each layout tab in AutoCAD, and plots them via "command". Simple! It works just fine, but the layouts are being plotted in Alphabetical order as opposed to the order they are in AutoCAD! Here is the LISP that I am running... (defun c:PLOTALL (/ ) (foreach layoutname (layoutlist ) (command "._layout" "set" layoutname ) (command "-plot" "yes" layoutname "Canon iR-ADV C5045/5051 UFR II" ;printer name "11x17" ;paper size "Inches" ;paper units "Landscape" ;Orientation "No" ;Plot upsidedown "Extents" ;Plot area "Fit" ;Plot scale "Center" ;Plot offset "Yes" ;Use plot styles? "Black.ctb" ;plot style name "Yes" ;Plot lineweights? "No" ;Scale lineweights? "No" ;paper space first? "No" ;Hide paper space? "No" ;Plot to file? "No" ;Save page setup? "Y" ;Continue to plot? ) ) end defun ) Attached is also the LISP file if needed... Is there a solution that I might be able to use to make the command plot the layouts in the order they appear in AutoCAD as opposed to alphabetical order? --Thanks as always!
Solved! Go to Solution.