I have one on my site that will do that but the number has to be the only
attribute in a block (not text). You can pick any interval, starting number,
and alpha-numeric prefix.
It's called bseq.lsp , for Block SEQuencer.
LISP variables aren't saved in drawing files. But you have a number of
(1) Set one of the user variables (USERRn, USERIn) to the the value
contained in *last_num* before you exit the routine;
(2) Attach the value to an object in the drawing as XDATA;
(3) Use a catalog.
(3) Write a little temporary file containing the saved value;
(4) Set an environment variable in the registry.
You should be able to find details on most of these options in HELP
Polytechforum.com is a website by engineers for engineers. It is not affiliated with any of manufacturers or vendors discussed here.
All logos and trade names are the property of their respective owners.