Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 01/21/2026 in all areas

  1. Why get fancy? (max 0 (- botLength 6000))
    5 points
  2. (if (= (minusp botLength) T) ;; verifies that a number is negative (setq botLength 0) ;; if it is, it will set to 0 (setq botLength (- botLength 6000)) ;; if it isn't, it will be substracted with "6000" )
    2 points
  3. You mean like this? (if (minusp botLength) 0 (- botLength 6000))
    2 points
  4. "Modelspace, paperspace or both?" looks like @Chicane_Apex has left the building, just like Elvis.
    2 points
  5. (if (minusp (- botLength 6000)) (setq botLength 6000) )
    1 point
  6. If (- botLength 6000) is minus.... (if (= (minusp (- botlength 6000)) T) ;; verifies that a number is negative (setq botLength 0) ;; if it is, it will set to 0 (setq botLength (- botLength 6000)) ;; if it isn't, it will be substracted with "6000" ) ;;End If
    1 point
  7. Another very useful is "Entmake functions.lsp", it has various entmake functions in it. Maybe make a word doc etc of your functions describing what they do. We had a "how to directory" with lots of help files. Was thinking about doing macros in Notepad++ run ents, run ss, ssl for layer, ssi for insert and so on. This is a common one. (repeat (setq x (sslength ss)) (setq obj (vlax-ename->vla-object (ssname ss (setq x (- x 1))))) ) Posted this before. Lisp files Apr 2024.docx
    1 point
×
×
  • Create New...