Renumber Layouts

Function Syntax RL
Current Version 1.0
Download RenumberLayoutsV1-0.lsp
View HTML Version RenumberLayoutsV1-0.html
Donate

Program Description

This program enables the user to automatically sequentially renumber all Paperspace layouts, with an optional prefix and/or suffix.

The layouts are renumbered in the order in which they appear in the active drawing, with a configurable parameter defining the number of digits constituting the numerical portion of the layout name.

The user may optionally predefine a fixed prefix and/or suffix within the program parameters, or, if such parameters remain undefined, the program will prompt the user to specify an optional prefix and suffix upon invoking the command.

Program Parameters

Upon opening the open-source AutoLISP (.lsp) program file in a plain text editor (such as Windows Notepad) or, better yet, a code editor (such as Notepad++), you will find the following Program Parameters section of code located just beneath the code header:

;;----------------------------------------------------------------------;;
;;                          Program Parameters                          ;;
;;----------------------------------------------------------------------;;

        ;; Optional Predefined Layout Prefix
        ;; Set to nil to prompt the user, or "" for no prefix.
        pre nil

        ;; Optional Predefined Layout Suffix
        ;; Set to nil to prompt the user, or "" for no suffix.
        suf nil

        ;; Number of Numerical Digits
        ;; e.g. 1 = "1", 2 = "01", 3 = "001"
        pad 2

;;----------------------------------------------------------------------;;

Here, you can predefine a static layout prefix and/or suffix, and also alter the number of digits constituting the numerical portion of the layout name, thereby controlling the number of leading zeroes.

Demonstration

Renumber Layouts V1-0 Demo

Instructions for Running

Please refer to How to Run an AutoLISP Program.

textsize

increase · reset · decrease

Designed & Created by Lee Mac © 2010