TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: vincent.r on September 20, 2017, 09:35:51 AM
-
(setq stbf (strcat "[1^LOOPDWG]" ))
(setq sublist (list (cons '0 "*text") (cons '1 stbf)))
(setq ed (ssget "X" sublist))
(setq qw (sslength ed))
I am writing above code for my lisp routine. Trying to find whole word in the drawing, but a text i.e. "L" get selected without using any wildcard character. I do not understand why its happening. Do anybody know it ? attached dwg file also.
-
(ssget "_X" '
((0 .
"text") (1 .
"`[1^LOOPDWG`]")))
-
Thanks for your quick reply ronjonp.
dont want to select two text, want select only one "[1^LOOPDWG]".
-
Thanks for your quick reply ronjonp.
dont want to select two text, want select only one "[1^LOOPDWG]".
Fixed above. You have to escape the brackets. Have a read HERE (http://help.autodesk.com/view/ACD/2018/ENU/?guid=GUID-E9CDCF5E-0E9F-4072-8A1D-099764B0A19E) :) .
[...] Matches any one of the characters enclosed
-
You can use this (http://lee-mac.com/escapewildcards.html) to be safe.
-
Thanks guys,
it works great ronjonp