Can anyone help with the attached Lisp file? I was passed it some years ago by a colleague, it's used for sequentially numbering lockers in changing rooms etc.
It works very well with the locker blocks in plan view, but when used on elevations it numbers from the bottom to the top instead of top to bottom. I have little Lisp experience but looking at the file I think it's supposed to ask for input to determine whether it works 'floor to ceiling' or 'ceiling to floor' but the only prompts are - 'Start No.' and then it asks for points.
Any help would be greatly appreciated, re-numbering 20-30 lockers manually is no fun.
You can try attached ALTEXT.vlx which provides different ways to rename numbers in sequence.
Please refer to https://sites.google.com/site/cadkits/home/altext for detailed usage.
Thanks for tidying it up, Henrique, but it seems to be stuck on 'floor to ceiling'. It prompts for the choice but doesn't change the sequence.
I've just discovered the problem! The re-numbering sequence follows the sequence of attribute insertions, by ensuring that the attributes are inserted from the top down (they were bottom up previously for some peculiar reason) everything works fine.
Sorry for wasting your time.
@IanH5033 wrote:
I've just discovered the problem! The re-numbering sequence follows the sequence of attribute insertions, by ensuring that the attributes are inserted from the top down (they were bottom up previously for some peculiar reason) everything works fine.
Sorry for wasting your time.
You're welcome, Ian
Glad you got a solution, but,
the re-numbering follows the sequence of attribute selection, when the code asks to "pick start point: " it will be the first selected block, and then "next point: "... those points are kept in a list to be used in a selection set using the fence mode and the code will re-number the attributes following the selection sequence, to test it, try to select a few blocks from the left to the right, and then select the same blocks from the right to the left, did you see the difference...
Henrique
If you have a lot of such renumberings to do,
there are further steps to automate
the selection of each Insert or Attribute.
The same for simply verifying their geographic order;
and their groups, or rows;
And for doing the accounting.
PS: avoid any complied code, VLX or FAS,
unless you know exactly what is in them.