I am thinking of a routine to gather device numbers. Application being fire alarm devices in a large building.
How does this sound?
I want to draft and assign numbers at the same time. The routine to increment text is fairly simple. I put all of the text in a single layer to make it easy to sort, and I place the devices a logical order. But you always move something and then the order is no longer logical. You'll want to insert or delete something somewhere.
So here's a routine: Gather all the text entities in that particular layer and write the text content and the point location to an ASCII file. Read the ASCII file into a spreadsheet and sort it. Then you can see if there's any device numbers missing. And it seems like it would be pretty simple to insert a device and have a lisp routine to read the ASCII file and increment the higher text values at the locations recorded.
What I want here is opinions from people that are smarter than I am, or at least more arrogant. (Just kidding)
Would I be better served to use attributes than text entities? That is the question. I have handled text in lisp, but I would have to learn more to deal with attributes. Still, it might be worth the effort, having the attribute associated with the block......
Thankyouverymuch.