• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

select objects in sequence using a polylinea

  • Thread starter Thread starter x11start
  • Start date Start date

x11start

Guest
sometimes happens in the lisp, to have to select objects in sequence: e.g., I had made a "number" command that allowed to select texts and turn them into progressive numbers; Obviously the texts were selected with order and not with a simple window, otherwise you could not be sure of the order with which the program would elaborate them.
from this you can see the need to find a "fast" way to select the sequence. I thought I'd draw a polyline to touch all the texts... a bit like in the game of the "enigmistic week" where you have to join the dots. the program will take care (and I have to understand how.... maybe by scrolling between the coordinates of the pline to step of 1 design unit) to find one to one the elements, and put them in the selection set.
other solution I think it is with grdraw.... but this would have the disadvantage of deleting the line to video, if during the selection I made a pan or a zoom, so maybe it is better polylinea.
Is there anyone who knows how to help me?
 
It's gonna sound stupid. But I didn't think about it! I wonder why it seemed to me was about a polygonal selection (so similar to a window) and not to a polyline that goes to "intercept" the objects it finds!
when I have a moment of time, I try to change my lisp (number.lsp) to make him accept "_fence".... and then of course I will share with you the result!
Thank you
 
here is the "numera.lsp" no longer to single selection (entsel) but to total selection (sssget): it is necessary to give nt or _fence before selecting the objects, if we want to trace a "choice policy".

in this version there is also another improvement: instead of just a sequence of progressive numbers, we can use letters (both upper and lowercase). so if we leave with a ... we will continue until z and then there will be aa ab ac etc. If we leave with 'a' we will have z aa ab ac etc.
of course remains the possibility to put a prefix or suffix, but these remain unchanged, while the purpose of the letters mentioned above is to allow to exceed the n. of the available letters and to do as for the cells of excel (to understand us).

multiline texts are treated as a single text: when I have time I will "spezzero" them as I have already done in another list. . .
 

Attachments

great for the "lettral" part (a-b-c etc.)
but for the numerical part, was not the express tcount sufficient?
Forgive me if I've given you a bad news, I think you've had so much trouble with this list.
 
This is a list that I made "millemila" years ago.. And then from time to time, I'll help!
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top