@Kent1Cooper wrote:
.... to make a new Block out of an existing one, such as my BlockDupNewName.lsp with its BDN command....
For anyone who finds this looking for that kind of thing, BlockDupNewName.lsp has been upgraded [attached].
Aside from making the Undo begin-end operation suited to newer versions, and a small correction, this is what's improved:
It now uses a text-editing window up in the screen, rather than asking for a new name at the Command line. That window is pre-populated with the name of the current Block and a hyphenated-number suffix. So if a lot of the new name you want is the same as the old one, you can leave most of it and edit just part(s) of it, and don't need to type the whole thing in, as you did before if you didn't want the offered numerical-suffix new name.
It used to ask again if you either typed in a Block name already in the drawing or only a space or spaces, but it now also asks again if you "empty" the string in the editing window to nothing.
It used to offer a new Block name only by adding a hyphenated-number suffix on the selected Block's name. That meant that if you had used BDN on something before, for instance starting with a Block named "Block" and you had accepted the offered new name of "Block-1" [or other suffixed number], and then you later used it again on one of those "Block-1" Blocks, it used to offer "Block-1-1" as the new name. It now recognizes that the old name was likely the result of a BDN operation, and [whether that was the origin, or for any Block name ending in a hyphen and number(s) only] it offers the next available number suffix, in that case offering "Block-2" [if that isn't already used, similarly incrementing up from there if it is].
Kent Cooper, AIA