Program:  AUTOBC14.lsp v14.01 by Augusto M. Macalalad

Purpose:

This routine automates block creation process by just giving a block
name prefix, say for doors, you input DOOR and the programs
searches for all blocks that starts with DOOR (only the blocks that
are created by this program though, a block name DOOR_EXISTING
will not be changed), then the routine will add a suffix "_0001"
to the block name, i.e. DOOR_0001 as the first block.

Repeating the command will prompt you the last block name input
(you can input new one if you wish), hit Enter and you will be
prompted by the new block name following the very last block up
by 1 level.

If it happens to find DOOR blocks, and even if the block names are
not in sequence (say, some of those blocks have been purged), the
routine will rename all those existing blocks sequentially,
i.e. DOOR_0001, DOOR_0002 to DOOR_nnnn, and then the routine
will start creating a new block one level up the very last
(highest order) block.

TOO LONG A BLOCK NAME?  This routine strips your long block
name down to 11 characters (plus "_nnnn" that makes 16 total
characters, leaving enough room for the filename in case the
drawing is used  as an XREF).

(AutoDesk has not yet fix this bug. You can name a block up to
31 characters, but if you use that drawing with this block as an
XREF you will get an error.)

This routine can also create nested blocks, but will not work
with attributes which is on the process, thank you very much.
All entities selected are first set to layer 0, then block is
created on the current layer, and the selected entities
are automatically erased.


Installation:

Just copy the following files to your AutoCAD
/SUPPORT directory (folder) or any folder of your
choice as long as that folder is listed in the
Support File Search Path of the AutoCAD r14 PREFERENCES.

 AUTOBC14.LSP - main program file
 AUTOBC14.LDF - LISP data file
 AUTOBC14.TXT - this file
 AUTOBC14.DCL - Dialog Control Language file

Program Loading:

At AutoCAD command prompt, type APPLOAD, then from FILE
button, search for AUTOBC14.lsp file from /SUPPORT folder,
pick OPEN button, then pick the LOAD button to load the
routine to memory.  Type ABC at command prompt.

This program is FREEWARE, PUBLIC DOMAIN, POSTCARDWARE
or whatever you might call it. But a generous donation
of US$5.00 is greatly appreciated, that will greatly
help me develop more useful AutoLISP routines  THANK YOU.

This program can be freely distributed (no LIMIT) as long as
the four (4) files are included in the distribution.

THIS PROGRAM IS NOT ERROR FREE!, AND IT IS NOT THE
AUTHOR'S RESPONSIBILITY IF THIS PROGRAM FAIL TO WORK,
OR RUIN YOUR DRAWING.

For any questions, comments and ideas, please email
me at this address:

augustom@fdcbuilding.com.au
ammacalalad@angelfire.com

Your generous support and donation of US$5.00 is greatly
appreciated.  Please send cash to this address:

Augusto Macalalad
47 Carlton Crescent
Summer Hill, NSW 2130
Australia

Again, please NOTE that all proceeds will be use to
develop more useful AutoLISP routines.. Please include
your email address or postal address and in return I
will send you the source code for the routine and a free
AutoLISP routine of your request.

THANK YOU VERY MUCH AND GOD BLESS YOU!

REVISIONS:

1.00   Initial issue
