TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: TopoWAR on January 06, 2013, 02:23:44 PM
-
Hi all, I'm using xdata in some objects, eg circles.
I work the following method:
(ssget (list (cons -4 "<OR")
(list -3 (list "topo1"))
(list -3 (list "topo2"))
(cons -4 "OR>")))
but I want to add the application name in a variable
eg: (setq L '("topo1" "topo2" "topo3" "topo10" "etc...")
I just want to store the names of the applications in a variable and add that variable to ssget filter.
as I do, and I can take hours, please help
-
Hi,
you can use more than one reg app name separated with commas:
(ssget '
((-3 ("topo1,topo2"))))
you can use wildcard patterns too:
(ssget '
((-3 ("topo*"))))
-
If you have an arbitrary list of AppIDs, maybe something like:
'((-4 . "<OR"))
'((-4 . "OR>"))
)
)
Or,
-
that simple, you do not know is how they do not see, because teachers.
-
If you have an arbitrary list of AppIDs, maybe something like:
'((-4 . "<OR"))
'((-4 . "OR>"))
)
)
Hi,Lee
Why was the codes changed in a row when I copied them to notepad++ or vlide?
As follow
(ssget (append '((-4 . "<OR")) (mapcar '(lambda ( x ) (list -3 (list x))) <list-of-AppIDs>) '((-4 . "OR>")) ))
The code indentation has been lost.
I do not know whether my express is clear .
Sorry for that :lol:
-
Aha,I know that the matter is caused by IE kernel explorer.
If using some explorer with Chrome kernel ,it's no problem :ugly:
I Do not know whether the forum can resolve this problem or not in the future.