Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

naming a single layout tab to match the file name

20 REPLIES 20
Reply
Message 1 of 21
CrazyIvan
4143 Views, 20 Replies

naming a single layout tab to match the file name

Trying to get the files I use which are single-layout tab files to name the layout tab to match the file name, minus the .DWG extension.

 

Here is what I am trying to use, but it doesn't seem to be working.

 

Any help is appreciated.

 

(DEFUN C:RRT (/ name)
 (setq name (getvar (vl-filename-base (getvar "dwgname"))))

 (command "-layout" "rename" name "")
(princ)
)

 

THANKS.

20 REPLIES 20
Message 21 of 21
oropeza123
in reply to: oropeza123

can you apply this to and attribute 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost