Exceeded maximum number of selection sets

Exceeded maximum number of selection sets

SAPER59
Advocate Advocate
206 Views
2 Replies
Message 1 of 3

Exceeded maximum number of selection sets

SAPER59
Advocate
Advocate

 

 

I have an app that uses ssget many times, more than 128 (as mentioned in some groups) but always using the variable for storing the <selection set> as local variable, inside each function the require it, but started to crash, and I don't understand  how to solve it, because as mentioned, each selection is defined in a local variable, set to nil and doing a (GC) after getting each set

I have controlled the times it works before crashing and for example the first time reach to do some more than 600 ssget's, but after crushing If I start the function again, It do some times 20 or 10 and crash again, as if selections werent defined in local vaiables

The point is I need to insert many different dwg's and control the points intersection with existing objects, and can not finish to insert the dwg's and exit

Is there a way to solve it?

I have read the forums and topics about this, but this problem, should happens when not using local variables, other wise my app will never arrive to almost 600 the first time

 

I will thanks in advance any help about this

0 Likes
207 Views
2 Replies
Replies (2)
Message 2 of 3

Sea-Haven
Mentor
Mentor

It sounds like you need to look at how your handling those 128 selection sets some way of reducing the number of selection sets. As an example a schedule made up of 500 rows & 8 columns of text, The resulting list is 500 items with each sub list containing the 8 text values. Compared to say 500 ssget of rows.

 

So maybe make lists of your selection sets with sublists.

 

Without seeing visually what your trying to do "Intersect" a bit hard for any suggestions.

0 Likes
Message 3 of 3

Moshe-A
Mentor
Mentor

@SAPER59  hi,

 

Why holding this small piece of data in PICKSETs data type instead you can build a nice list with all the data needed and in can grow as much as you need, something like that

 

(setq lst (cons (list ename1 ename2 crossPt) lst))  ; first data item in a list

(setq lst (cons (list ename3 ename4 crossPt) lst))  ; second data item in a list

 

Moshe

0 Likes