Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 07/09/2021 in all areas

  1. Not BYLAYER (setq ss1 (ssget '((-4 . "!=")(62 . 256)))) Selection of color 7 to 11 (setq ss1 (ssget "X" '((-4 . ">=") (62 . 7) (-4 . "<=") (62 . 11))))
    2 points
  2. That should work as it stands now. The error appears ONLY if there dimensions found, either on a locked layer [ not seen on screen probably off/frozen ] or the Dimension object(s) are on another layout other than the current tab not accessible by command call Try changing the ssget filter to something like this (setq A1 (ssget "_X" (list '(0 . "DIMENSION")(Cons 410 (getvar 'ctab)))))
    1 point
  3. (ssget "_X" '((-4 . "<OR") (62 . 7) (62 . 8) (-4 . "OR>")))
    1 point
  4. (setq ss1 (ssget '((-4 . "<NOT") (62 . 256) (-4 . "NOT>"))))
    1 point
  5. Do you mean variables with a value ? You can do that as well, string1=a string2=b etc. Look at SET
    1 point
  6. (defun C:foo () (setq i (getint "\nStarting number: ")) (setq string (getstring "\nString: ")) ;set i and string outside of loop (while (> 20 i) ;what ever your looping for (setq name (strcat string "-" (itoa i))) (setq i (1+ i)) (prompt (strcat "\n" name)) ) (princ) ) Running this command. Starting number: 15 String: test test-15 test-16 test-17 test-18 test-19 --edit also look at this http://www.lee-mac.com/numinc.html
    1 point
  7. Lee - you are the best!!!!!!!!!!!!!!!!!!!!!!!! for you new code "count";)
    1 point
×
×
  • Create New...