Selection sets

DeFuN

Usenet Archive
Joined
Aug 5, 2003
Messages
7
Reaction score
0
When use Acad long times, this happens :

Command: m
MOVE
Select objects: 1 found

Select objects:
*Cancel*
exceeded maximum number of selection sets

And I can't run any command. Restart ACAD and everythings is normal ! What error and the solution ? Thanks so much :)
(ADT 2K4 - WinXP pro)
 
From the AutoCAD Help (MAP 5):

Attempting to manage a large number of selection sets simultaneously is not recommended. An AutoLISP application cannot have more than 128 selection sets open at once. (The limit may be lower on your system.) When the limit is reached, AutoCAD refuses to create more selection sets. Keep a minimum number of sets open at a time, and set unneeded selection sets to nil as soon as possible. If the maximum number of selection sets is reached, you must call the gc function to free unused memory before another ssget will work.

and . . . .

gc Function

Forces a garbage collection, which frees up unused memory

(gc)

See Also

The Memory Management Functions topic in the Visual LISP Developer's Guide.
 
You have LISP routines or other customizations that are not using localized variables to hold selection sets, or not deleting named selection sets after they are no longer needed.

There can only be 128 open selections sets.

<clip>
When an application has finished using a selection set, it is important to release it from memory. You can do this by setting it to nil:

(setq ss1 nil)Attempting to manage a large number of selection sets simultaneously is not recommended. An AutoLISP application cannot have more than 128 selection sets open at once. (The limit may be lower on your system.) When the limit is reached, AutoCAD refuses to create more selection sets. Keep a minimum number of sets open at a time, and set unneeded selection sets to nil as soon as possible. If the maximum number of selection sets is reached, you must call the gc function to free unused memory before another ssget will work.

</clip>

--
R. Robert Bell, MCSE
www.AcadX.com

| When use Acad long times, this happens :
|
| Command: m
| MOVE
| Select objects: 1 found
|
| Select objects:
| *Cancel*
| exceeded maximum number of selection sets
|
| And I can't run any command. Restart ACAD and everythings is normal ! | What error and the solution ? Thanks so much :)
| (ADT 2K4 - WinXP pro)
 
Thanks Blammo and R. Robert Bell !
Exactly what I want :
" If the maximum number of
selection sets is reached, call the GC function to free unused memory before another ssget will work ". Thanks again and happy new year :)
 
DeFuN said:
Thanks Blammo and R. Robert Bell !
Exactly what I want :
" If the maximum number of
selection sets is reached, call the GC function to free unused memory before another ssget will work ". Thanks again and happy new year :)

If you really need to have more selection sets open at once (which I doubt), you can store the entities in your selection sets in lists.

Tom Berger
 

Latest threads

Back
Top