Parse them with SSNAME, first item had index 0, and add to the first one using SSADD function. To get the size of a selection set use SSLENGTH.
Registered forum members do not see this ad.
I have a list with multiple selection sets, i want to join them into a single selection set, ho?
Parse them with SSNAME, first item had index 0, and add to the first one using SSADD function. To get the size of a selection set use SSLENGTH.
Regards,
Mircea
AutoCAD's happy user equation: FILEDIA + PICKADD² + PICKFIRST = 3
maybe something like this would work ..... Try it ...
Code:(setq s (ssget)) (setq ss (ssget)) (repeat (setq i (sslength s)) (ssadd (ssname s (setq i (1- i))) ss) )
- When aim is being settled in my mind , I have to reach it and get it in hand whatever it costs and wherever it is and will never give up . Tharwat said
You can use ACET functions for Selection sets :
M.R.Code:(setq sss (acet-ss-union (list ss1 ss2 ss3 ... ssn)))
Only with express tools... nobody has a function similar to acet-ss-union?
It is a mater of minutes to write one by yourself using the info above. If you got stuck, then post your attempt here for debug support.
Regards,
Mircea
AutoCAD's happy user equation: FILEDIA + PICKADD² + PICKFIRST = 3
The Express function work with any number of selection sets, while Tharwat's example is limited to only two. I think that this is the reason of OP's complain. But said example code can be used effectively as a starting point to a dedicated function similar with the one from Express pack. This should be easy taking into consideration that OP had already some experience playing with selection sets.
Regards,
Mircea
AutoCAD's happy user equation: FILEDIA + PICKADD² + PICKFIRST = 3
Registered forum members do not see this ad.
But i still want to see a function made by some guys with more experience ...please...![]()
Bookmarks