Automatic number of layout tabs

Automatic number of layout tabs

carminatithekid1
Enthusiast Enthusiast
1,300 Views
4 Replies
Message 1 of 5

Automatic number of layout tabs

carminatithekid1
Enthusiast
Enthusiast

Hello again,

 

I created a very simple lisp to create layout tabs, as I realize in my office we are always copying layout tabs when setting up projects. So I am wanting to speed this up. See below for what I have created.

 

(defun c:ntab ()
(command "layout" "copy" "" "")
)

 

What I want is to add a user input for the layout tab number (i.e. A-1.0). The bold portion of the lisp is where the user input would be.

Randy Carminati
0 Likes
Accepted solutions (1)
1,301 Views
4 Replies
Replies (4)
Message 2 of 5

ВeekeeCZ
Consultant
Consultant
Accepted solution

Perhaps like this?

 

(defun c:NTab ()
  (command "_.LAYOUT" "_C" "" (lisped (getvar 'CTAB)))
  (princ)
)
0 Likes
Message 3 of 5

john.uhden
Mentor
Mentor

When you think of all that's involved in setting up a layout, I would think it to be more prudent to set up a good DWT to start with.  The next best thing I think would be to import one from another DWG.

John F. Uhden

0 Likes
Message 4 of 5

kevino
Explorer
Explorer
Is there a way to have it select the new tab that is created after it is done?
0 Likes
Message 5 of 5

kevino
Explorer
Explorer
Or have the new one go to the end?
0 Likes