I used this LISP routine frequently for my old job. It is a routine that I found at www.cadalyst.com and is very helpful. What it does is let you rename the current layout tab by selecting a text object that is on the layout tab. The text object can also be an attribute.
Here’s how:
- NLAY <enter>
- Select a text object (DTEXT, MTEXT or an ATTRIBUTE)
That’s it. Now your layout tab matches the sheet title or whatever other text on the layout tab…
~enjoy
;;; CADALYST 09/08 www.cadalyst.com/CADtips ;;; Nlay.lsp Rename Layouts (c) 2008 Jim Sturgess ;NLay.lsp Written by Jim Sturgess 14-April-2008 ; ;Renames the Current Layout Tab to Match Selected Attribute or Text (DEFUN C:NLay (/ Match Text) (WHILE (= Match NIL) (SETQ Match (NENTSEL "\nSelect Attribute or Text: ")) (IF (= Match NIL)(ALERT "Please Select Attribute or Text...")) );Ends WHILE Function (IF (/= NIL Match) (PROGN (SETQ Match (ENTGET (CAR Match))) ) );Ends IF Function (IF(SETQ Text(CDR(ASSOC 1 Match))) (COMMAND "layout" "rename" "" Text) );Ends IF Function (SETVAR "cmdecho" 1) (princ) );Ends DEFUN (princ)
Hello-
I wonder if there’s a way to make this script place the current layout’s SHEET NUMBER (from the Sheetset manager) into the layout name. I can use the sheet number in a FIELD but not in the layout name. In a field, the SHEET NUMBER looks like this:
%%
posibble errors are:
a) the layout is not linked to s sheetset
b) the layout does not have a sheet number in the sheetset
Thanks for the tips, they are very helpful.
Sam
the field looks like this:
AcSm Sheet.Number
I am unaware of a way to do this because the Sheet Set Manager gets the names of existing layout from from not the other way around.
There is this app that might be worth a try: http://blog.jtbworld.com/search/label/Sheet%20Set%20Manager