Message 1 of 3
Selection set processing backwards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Ok, I'm having a brain cramp today. I have a piece of code, that after selecting my objects allows me to process each one. I want to order to be first to last picked, and it's processing last to first picked order
(repeat (setq cnt (sslength ss))
(setq itm (ssname ss (setq cnt (1- i)))
ent (entget itm)
)
I know the problem is in this area, and it has to do with setting cnt to the sslength ss, and then subtracting until it reaches zero. I'm having a brain cramp reworking this piece so that the processing starts at first picked and goes up to the last picked.
Any assistance would be appreciated
Ryan A Wunderlich