Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Selection sets

2 views
Skip to first unread message

DeFuN

unread,
Dec 25, 2003, 11:18:14 AM12/25/03
to
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)

blammo

unread,
Dec 25, 2003, 11:32:09 AM12/25/03
to
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.
-----------------------------------------

bobb

R. Robert Bell

unread,
Dec 25, 2003, 11:36:12 AM12/25/03
to
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


"DeFuN" <nos...@autodesk.com> wrote in message
news:22862652.107236919...@jiveforum1.autodesk.com...

DeFuN

unread,
Dec 25, 2003, 2:05:19 PM12/25/03
to
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 :)

Tom Berger

unread,
Dec 25, 2003, 6:45:06 PM12/25/03
to
DeFuN <nos...@autodesk.com> schrieb:

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

--
ArchTools: Architektur-Werkzeuge für AutoCAD (TM)
ArchDIM - architekturgerechte Bemaßung und Höhenkoten
ArchAREA - Flächenermittlung und Raumbuch nach DIN 277
Info und Demo unter http://www.archtools.de

0 new messages