transcad Posted March 14, 2012 Posted March 14, 2012 How to filter those dimensions with diameter symbol?With ssget... %%c.... Quote
MSasu Posted March 14, 2012 Posted March 14, 2012 If you are talking about diameter symbols that were added as prefix, then: (ssget "_X" (list '(0 . "DIMENSION") (cons 1 "%%C*"))) Regards, Mircea Quote
Lee Mac Posted March 14, 2012 Posted March 14, 2012 Mircea, A minor comment: no need for list/cons: (ssget "_X" '((0 . "*DIMENSION") (1 . "*%%C*"))) Quote
MSasu Posted March 14, 2012 Posted March 14, 2012 You are right! Thank you for correction. Regards, Mircea Quote
Lee Mac Posted March 14, 2012 Posted March 14, 2012 I try not to be too petty with my comments, you're welcome Quote
transcad Posted March 15, 2012 Author Posted March 15, 2012 Seems to be Case Sensitive... or not??? %%C or %%c - not the same...??? How to work for both c and C? Quote
MSasu Posted March 15, 2012 Posted March 15, 2012 Please check WCMATCH function's rules for wild characters: (ssget "_X" '((0 . "*DIMENSION") (1 . "%%[cC]*"))) Regards, Mircea Quote
transcad Posted March 15, 2012 Author Posted March 15, 2012 (ssget "_X" '((0 . "DIMENSION") (-4 . "") (-4 . "*") (-4 . "not>"))) This is exactly what i needed... Can be made simpler? Quote
MSasu Posted March 15, 2012 Posted March 15, 2012 Shorter version: (ssget "_X" '((0 . "DIMENSION") (-4 . "<not") (1 . ",*%%[cC]<>*") (-4 . "not>"))) Also, please add the code markers to your code excerpt. Regards, Mircea Quote
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.