0 Members and 1 Guest are viewing this topic.
Since the first 6 values of Dimension group code 70 aren't bit-codes, I don't think you can filter for the Ordinate Dimensions using a bitwise masked-equals relational filter in the ssget filter list.Consider this code:Code - Auto/Visual Lisp: [Select](defun c:dimordswitch ( / e i s x ) (if (setq s (ssget "_:L" '( (0 . "DIMENSION") (-4 . "<OR") (70 . 006) (70 . 038) (70 . 070) (70 . 102) (70 . 134) (70 . 166) (70 . 198) (70 . 230) (-4 . "OR>") ) ) ) (repeat (setq i (sslength s)) (setq e (entget (ssname s (setq i (1- i)))) x (assoc 70 e) ) (entmod (subst (cons 70 (boole 6 64 (cdr x))) x e)) ) ) (princ))
There is no change.
Quote from: rlxozzang on July 01, 2012, 09:08:40 PMThere is no change.The code works for me