Skip to content

Commit

Permalink
tweaked load messages (no newline after)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdsandifer committed Jul 20, 2016
1 parent aa1055a commit eb341b9
Show file tree
Hide file tree
Showing 9 changed files with 60 additions and 23 deletions.
2 changes: 1 addition & 1 deletion APP.LSP
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
(strcat
"\n:: APP.lsp loaded. | \\U+00A9 J.D. Sandifer "
(menucmd "m=$(edtime,0,yyyy)")
" ::\n"
" ::"
)
)
(princ)
Expand Down
24 changes: 13 additions & 11 deletions COUNT_RAIL.lsp
Original file line number Diff line number Diff line change
Expand Up @@ -79,20 +79,20 @@

;;; Counts toprail (mlines) and infill/bottom rail (plines).
(defun C:cr ( / stockLength roundingFactorToprail
roundingFactorInfill layerToCountToprail fudgeFactorToAddToprail fudgeFactorToAddInfill layerToCountInfill selSet subset isConfirmed)
(setq stockLength 240)
roundingFactorInfill layerToCountToprail
fudgeFactorToAddToprail fudgeFactorToAddInfill
layerToCountInfill selSet subset isConfirmed)

(setq stockLength 242)
(setq roundingFactorToprail 3
fudgeFactorToAddToprail 9
layerToCountToprail "1")
(setq roundingFactorInfill 2
fudgeFactorToAddInfill 1
layerToCountInfill "Center")

(setq selSet (ssget (list '(0 . "mline,*polyline")
(cons 8
(strcat layerToCountToprail
","
layerToCountInfill)))))
(cons 8 (strcat layerToCountToprail "," layerToCountInfill)))))

;(JD:HighlightSelectionSet nil selSet)
;(JD:HighlightSelectionSet T
Expand Down Expand Up @@ -130,7 +130,7 @@
;; Save system variables
(JD:SaveVar "osmode" 'systemVariables)
(JD:SaveVar "dimzin" 'systemVariables)
(princ "system variable saves")
(princ "System variables saved.")

;; Set defaults (only do global variables if they aren't set yet)
(MakeVarNotNil '*stockLength* 242)
Expand Down Expand Up @@ -428,9 +428,10 @@
;;end of cut list
(cond
((or (>= currentCutIndex (length cutList))
(<= stockLengthLeft 0)(<= (length cutList) 0))
(<= stockLengthLeft 0)
(<= (length cutList) 0))
(setq currentCutIndex 0)

;;add scrap to the full cut list and prep for the next loop
(if (= stockLengthLeft -0.125)
(JD:PutHash "scrap" 0 'finalCutList)
Expand All @@ -440,6 +441,7 @@
(JD:ClearHash 'finalCutList)

(setq stockLengthLeft 0)))) ;end of while loop

stockLengthsNeeded)


Expand Down Expand Up @@ -492,7 +494,7 @@
(strcat
"\n:: COUNT_RAIL.lsp loaded. | \\U+00A9 J.D. Sandifer "
(menucmd "m=$(edtime,0,yyyy)")
" ::\n"))
" ::"))
(princ)

;;----------------------------------------------------------------------;;
Expand Down
4 changes: 2 additions & 2 deletions DRAW.lsp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
(setq FUZZ_FACTOR 0.001)
(if (not (equal startPt endPt FUZZ_FACTOR)) ; Check pts are valid.
(command "._arc" "c" centerPt startPt endPt))
nil)
nil)



Expand All @@ -30,7 +30,7 @@
(strcat
"\n:: DRAW.lsp loaded. | \\U+00A9 J.D. Sandifer "
(menucmd "m=$(edtime,0,yyyy)")
" ::\n"))
" ::"))
(princ)

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Expand Down
2 changes: 1 addition & 1 deletion DRAW_PLAN.LSP
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@
(strcat
"\n:: DRAW_PLAN.lsp loaded. | \\U+00A9 J.D. Sandifer "
(menucmd "m=$(edtime,0,yyyy)")
" ::\n"))
" ::"))
(princ)

;-------------------------------------------------------------------------;
Expand Down
18 changes: 15 additions & 3 deletions FUNCTIONS.LSP
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
;; ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; ;;
;; 06/15/2016 ;;
;; - Added CarCdr: Return first list item AND ;;
;; remove it from the list. ;;
;; ;;
;; 04/13/2016 ;;
;; - Added FilterSelectionSet. ;;
;; ;;
Expand Down Expand Up @@ -133,6 +137,16 @@



;;; JD:CarCdr - same function as car followed by cdr (shortens the list)
;;; listName [symbol] - name of list to work on

(defun JD:CarCdr (listName / firstItem)
(setq firstItem (car (eval listName)))
(set listName (cdr (eval listName)))
firstItem)



;;; MakeVarNotNil - simple function for verifying variables are set and
;;; giving them a default value if not
;;; variableName [symbol] - name of variable to check
Expand Down Expand Up @@ -211,9 +225,7 @@
(strcat
"\n:: FUNCTIONS.lsp loaded. | \\U+00A9 J.D. Sandifer "
(menucmd "m=$(edtime,0,yyyy)")
" ::\n"
)
)
" ::"))
(princ)

;;----------------------------------------------------------------------;;
Expand Down
14 changes: 13 additions & 1 deletion HASH.lsp
Original file line number Diff line number Diff line change
Expand Up @@ -174,4 +174,16 @@



(princ) ; Clean load
;;----------------------------------------------------------------------;;

(vl-load-com)
(princ
(strcat
"\n:: HASH.lsp loaded. | \\U+00A9 J.D. Sandifer "
(menucmd "m=$(edtime,0,yyyy)")
" ::"))
(princ)

;;----------------------------------------------------------------------;;
;; End of File ;;
;;----------------------------------------------------------------------;;
2 changes: 1 addition & 1 deletion MEASURE.LSP
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@
(strcat
"\n:: MEASURE.lsp loaded. | \\U+00A9 J.D. Sandifer "
(menucmd "m=$(edtime,0,yyyy)")
" ::\n"
" ::"
)
)
(princ)
Expand Down
2 changes: 1 addition & 1 deletion SELECTION_SET.lsp
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
(strcat
"\n:: SELECTION_SET.lsp loaded. | \\U+00A9 J.D. Sandifer "
(menucmd "m=$(edtime,0,yyyy)")
" ::\n"))
" ::"))
(princ)

;;----------------------------------------------------------------------;;
Expand Down
15 changes: 13 additions & 2 deletions TEST.lsp
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,17 @@
;reload code)



;;----------------------------------------------------------------------;;

(vl-load-com)
(princ
(strcat
"\n:: TEST.lsp loaded. | \\U+00A9 J.D. Sandifer "
(menucmd "m=$(edtime,0,yyyy)")
" ::"))
(princ)

; Silent load
(princ)
;;----------------------------------------------------------------------;;
;; End of File ;;
;;----------------------------------------------------------------------;;

0 comments on commit eb341b9

Please sign in to comment.