transcad 发表于 2022-7-6 08:09:59

filter ssget for %%c dimension

How to filter those dimensions with diameter symbol?With ssget... %%c....

MSasu 发表于 2022-7-6 08:19:12

If you are talking about diameter symbols that were added as prefix, then:
 

(ssget "_X" (list '(0 . "DIMENSION") (cons 1 "%%C*")))
 
Regards,
Mircea

Lee Mac 发表于 2022-7-6 08:27:19

Mircea,
 
A minor comment: no need for list/cons:
 

(ssget "_X" '((0 . "*DIMENSION") (1 . "*%%C*")))

MSasu 发表于 2022-7-6 08:36:43

You are right! Thank you for correction.
 
Regards,
Mircea

Lee Mac 发表于 2022-7-6 08:37:38

I try not to be too petty with my comments, you're welcome

transcad 发表于 2022-7-6 08:44:50

Seems to be Case Sensitive... or not???%%Cor %%c - not the same...??? How to work for both c and C?

MSasu 发表于 2022-7-6 08:50:05

Please check WCMATCH function's rules for wild characters:
 

(ssget "_X" '((0 . "*DIMENSION") (1 . "%%*")))
 
Regards,
Mircea

transcad 发表于 2022-7-6 09:00:29

Ok, thanks!

transcad 发表于 2022-7-6 09:03:53

(ssget "_X" '((0 . "DIMENSION") (-4 . "") (-4 . "*") (-4 . "not>")))
This is exactly what i needed...Can be made simpler?

MSasu 发表于 2022-7-6 09:10:51

Shorter version:
 

(ssget "_X" '((0 . "DIMENSION") (-4 . "")))
 
Also, please add the code markers to your code excerpt.
 
Regards,
Mircea
页: [1]
查看完整版本: filter ssget for %%c dimension