rcb007 Posted June 16, 2021 Share Posted June 16, 2021 I stumbled on this macro that can create a few layout tab then make it active. https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/duplicate-layout-tab-and-make-new-tab-current/td-p/7739926 LAYOUT;C;;;CTAB;(cadr (member (getvar 'CTAB) (layoutlist))) When i activate it, it takes Layout1 and creates a Layout1 (2). Is there anyway to rename the Layout1 to Layout2? If Layout3 is selected, then activate the macro, it creates Layout4. Thank you. Quote Link to comment Share on other sites More sharing options...
BIGAL Posted June 17, 2021 Share Posted June 17, 2021 (edited) Google rename layouts maybe start at Lee-mac.com. If you want layouts to be named as a pattern eg D01 D02 .... need a custom lisp would be better than using the macro approach which is just the default manual method. Edited June 17, 2021 by BIGAL Quote Link to comment Share on other sites More sharing options...
tombu Posted June 17, 2021 Share Posted June 17, 2021 5 hours ago, rcb007 said: When i activate it, it takes Layout1 and creates a Layout1 (2). Is there anyway to rename the Layout1 to Layout2? If Layout3 is selected, then activate the macro, it creates Layout4. Thank you. Lee Mac's TabSort lisp does that and more: http://www.lee-mac.com/tabsort.html Quote Link to comment Share on other sites More sharing options...
marko_ribar Posted June 17, 2021 Share Posted June 17, 2021 (progn (vl-cmdf "_.LAYOUT" "_N" "") (setvar 'ctab (last (layoutlist)))) Quote Link to comment Share on other sites More sharing options...
rcb007 Posted June 17, 2021 Author Share Posted June 17, 2021 Thank you so much Marko! That is exactly it. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.