- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello, in the program below, I am using GETVAR 'CTAB to switch a Mleader style based on whether Im in model space or paper space. Is there a way to change the part where it lists the layout tab names to instead work for ALL paper space tabs no matter the name? It works like this except if the tab has a different name than what is listed. Thank you
(defun c:redline (/ refltr)
(IF (EQ (GETVAR 'CTAB) "Model") (SETVAR 'CMLEADERSTYLE "Redline Model")
(IF (OR (EQ (GETVAR 'CTAB) "LANDSCAPE D 8")
(EQ (GETVAR 'CTAB) "LANDSCAPE D 10")
(EQ (GETVAR 'CTAB) "POOL B 8")
(EQ (GETVAR 'CTAB) "POOL C 8")
(EQ (GETVAR 'CTAB) "POOL D 8")
(EQ (GETVAR 'CTAB) "DETAILS B 8")
(EQ (GETVAR 'CTAB) "LANDSCAPE B 8")
(EQ (GETVAR 'CTAB) "LANDSCAPE C 8")
(EQ (GETVAR 'CTAB) "DEMO"))
(SETVAR 'CMLEADERSTYLE "Redline Paper")))
(vl-cmdf "_.mleader" pause pause (setq refltr (getstring T "\n\t =>> Enter note : ")))
(princ)
)
Solved! Go to Solution.