muthu123 Posted December 16, 2009 Share Posted December 16, 2009 Dear friends, I have to select the objects by crossing and it will select only the layers "girt" and "girt_text" in a single line. My below code is not working. (ssget "c" first_cor second_cor (list (cons 8 "girt") (cons 8 "girt_text"))) Quote Link to comment Share on other sites More sharing options...
CarlB Posted December 16, 2009 Share Posted December 16, 2009 (ssget "c" first_cor second_cor (list (cons 8 "girt,girt_text"))) or (ssget "c" first_cor second_cor '((8 . "girt,girt_text"))) Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted December 16, 2009 Share Posted December 16, 2009 Also, bear in mind possible language compatibility: (ssget "[color=Red][b]_[/b][/color]C" first_cor second_cor '((8 . "girt,girt_text"))) Lee Quote Link to comment Share on other sites More sharing options...
David Bethel Posted December 16, 2009 Share Posted December 16, 2009 The comma separator is a lot more efficient by far and is what I use regularly. Here is a verbose snippet that expands the call. [b][color=BLACK]([/color][/b]ssget [color=#2f4f4f]"_C"[/color] first_cor second_cor [b][color=FUCHSIA]([/color][/b]list [b][color=NAVY]([/color][/b]cons -4 [color=#2f4f4f]"<OR"[/color][b][color=NAVY])[/color][/b] [b][color=NAVY]([/color][/b]cons 8 [color=#2f4f4f]"GIRT"[/color][b][color=NAVY])[/color][/b] [b][color=NAVY]([/color][/b]cons 8 [color=#2f4f4f]"GIRT_TEXT"[/color][b][color=NAVY])[/color][/b] [b][color=NAVY]([/color][/b]cons -4 [color=#2f4f4f]"OR>"[/color][b][color=NAVY])[/color][/b][b][color=FUCHSIA])[/color][/b][b][color=BLACK])[/color][/b] About the only time you would need this for wildcard searches is if the string a longer than the limit allowed in you version of ACAD. ( is it still 128 or 256? ) Or I use this when mixing wildcard types (*,~,#). It just makes it a little more readable to me. [b][color=BLACK]([/color][/b]ssget [color=#2f4f4f]"_C"[/color] first_cor second_cor [b][color=FUCHSIA]([/color][/b]list [b][color=NAVY]([/color][/b]cons -4 [color=#2f4f4f]"<OR"[/color][b][color=NAVY])[/color][/b] [b][color=NAVY]([/color][/b]cons 8 [color=#2f4f4f]"GIRT"[/color][b][color=NAVY])[/color][/b] [b][color=NAVY]([/color][/b]cons 8 [color=#2f4f4f]"~GIRT_TEXT"[/color][b][color=NAVY])[/color][/b] [b][color=NAVY]([/color][/b]cons 8 [color=#2f4f4f]"GIRT_A*"[/color][b][color=NAVY])[/color][/b] [b][color=NAVY]([/color][/b]cons -4 [color=#2f4f4f]"OR>"[/color][b][color=NAVY])[/color][/b][b][color=FUCHSIA])[/color][/b][b][color=BLACK])[/color][/b] -David Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.