View Full Version : SELECTION SET TO VARIABLE
gis.68227
2004-08-12, 07:11 PM
I need to find out how you pass a selection set to a variable name. Autocad Map can make selection sets from queries. I would like to call up the queried objects later in a script/lisp. Thanks for any help. TC
Nevermind. (setq sel1 (ssget "P")) from 'AfraLisp' should work.
mjfarrell
2004-08-12, 08:16 PM
I am wondering why you would wait to modify these
objects with a lisp or script file when they could be
modified during the query processautomatically?
gis.68227
2004-08-13, 02:25 PM
Here is the process I want to happen. ( I am still having difficulty.) I have viewports in an attached drawing using AcadMap. During the query I have used "(setq mainviewss (ssget "P"))" to place each individual viewport to a separate variable. Each viewport has a different "LayerManagerState" in the final product. I have not been able to get -lman (layer manager) to work in a Lisp routine so I am trying it as a script after the LISP routine runs. I am trying to call the defined variables of the each viewport (mainviewss and aerialviewss) during a script:
-lman
restore
AERIALVIEW_MS
"" just a space
pspace
-script
MAINVIEW_MS.SCR
;;;MAINVIEW_MS.SCR looks like:
(command "-vports" !mainviewss "")
mspace
-LMAN
RESTORE
MAINVIEW_MS
pspace
Just trying to find a solution. Any ideas.
Mike.Perry
2004-08-22, 07:20 PM
Hi
I'll step in and offer a little more on this subject as it appears to have gone all quiet.....
Is this thread linked to another thread of yours within the AutoCAD Customization Forum -
layer manager (http://forums.augi.com/showthread.php?t=6541)
If yes, may I please ask that in future you don't re-post the same question in a *new* thread just because you've not received an answer. Please let the original thread run it's natural course; be patient and let members answer (if they can) in their own time.
You may want to have a look at the following thread within the Programming VBA Forum -
Do You Need a program That save the seting of Layers Frozen in a ViewPort (http://forums.augi.com/showthread.php?t=6900)
Have a good one, Mike
Powered by vBulletin® Version 4.1.11 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.