Message 1 of 6
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
(defun c:ttest (/ lay startNOMUTT)
;;;Simple LISP routine to place a circle on every Layout....or does it?;;;
(setq startNOMUTT (getvar "NOMUTT")) (setvar "NOMUTT" 1) (foreach lay (layoutlist) (command "CIRCLE" "0,0" 5)
(command "ZOOM" "E") (setvar "CTAB" lay) ) ;foreach layout (setvar "NOMUTT" startNOMUTT) (princ) ) ;defun (princ)
Hello there,
After testing this command on a blank drawing with 2 layouts, the circles are placed differently depending on my current Layout tab (before using the LISP routine).
- If my current layout tab is on Model space, a circle is placed on the Model space and Layout1 tab.
- If my current layout tab is on Layout1, two circles are placed on Layout1 tab.
- If my current layout tab is on Layout2, a circle is placed on Layout1 and Layout2.
So my question is, what's up with this inconsistency? How can I make sure only one circle is placed on each layout (preferably excluding the Model space)?
Bonus Question: The NOMUTT variable doesn't seem to suppress the command messages. How come?
FYI, I'm using AutoCAD Civil 3D 2018.
Solved! Go to Solution.