The other thing you need to do is to check what is last number for a block then add 1. Else will start to get block exists.
Thanks for the confirmation.
Let's say my characters before the -#(increment) are known character sets (library name abbreviation).
...-SL-#(increment).dwg
...-AC-#(increment).dwg
...-CTL-#(increment).dwg
and so on.
Does that help me in any way?
Again Lee has a good parse number lisp that will pull out numbers from a string, that is provided that all blockname is A-Z, if not then make a str say last 2 characters of blockname and check for number, a Blockname-X note the - would be the best way to delimit where does number start
So, if I have numbers in the blockname I need to make str say, last 2 or 3 characters of the name? Got it. I also need to use a hyphen not an underscore. Thanks for letting me know, as I was thinking underscore.
If your using a Menu slide library then its simple ^c^C(If (not LM:RenameBlockReference-2 ) (load "My_Copyrenameblock")) (LM:RenameBlockReference-2 t "Block_area") so the block name is passed and make changes as Lee has suggested.
Thanks for this. I would have never gotten the macro correct.
Now let's see if I can do any of this.
Hold please....
J.