0 Members and 1 Guest are viewing this topic.
(command "._dimstyle" "save" (getvar "DIMSTYLE") "YES")
(SETQ DIMLST-0 (LIST "1:100" "1:50" "1:25"));LIST OF DIMSTYLE NAMES I USED(SETQ I 0);SETQ(REPEAT (LENGTH DIMLST-0) (SETQ TEST0 (TBLSEARCH "DIMSTYLE" (NTH I DIMLST-0))) (SETQ DIMNAME (NTH I DIMLST-0)) (IF (/= TEST0 NIL);EXIST (PROGN (command "-dimstyle" "r" DIMNAME) (setvar "DIMSCALE" 100) (command "-dimstyle" "save" (getvar "DIMSTYLE") "YES") );PROGN );IF (SETQ I (1+ I)));REPEAT
(foreach ds '("1-100" "1-50" "1-25") (if (TBLSEARCH "DIMSTYLE" ds) (progn (command "-dimstyle" "r" ds) (setvar 'dimscale 100) (command "-dimstyle" "save" ds "YES" "") ) ))
thank u, ronjonp! good example for the "foreach" functionI'll try the code when I get the chance. thx again!