need help in LISP -
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
hello all i presume this is easy but for me it isnt 🙂
Can Someone help me in this lisp i need few lines here and what i need is eplained in bolded text on place where i want that lines
(defun C:TP1()
(setq tac1 (getpoint "\n First point A "))
(setq tac2 (getpoint "\n Second point B "))
(setq a (getreal "\n Insert dimension a: "))
(setq b (getreal "\n Insert dimension b: "))
(setq c (getreal "\n Insert dimension c: "))
Question : "This is a true" . if it is true i only type enter (ENTER), if not, i type n and then enter (n ENTER)
(setq rast (distance tac1 tac2))
(command "ucs" "3" tac1 tac2 "")
(setq t1 (list (- c) a 0))
(setq t2 (list (+ rast c) a 0))
(setq t3 (list (+ rast c) (- b) 0))
(setq t4 (list (- c) (- b) 0))
(command "osnap" "none")
(command "pline" t1 t2 t3 t4 t1 "") <---- start this line if answer is yes (ENTER)
(command "line" t1 t3 "") <---- start this line if question is no (n ENTER)
(command "osnap" "END,MID,INT,EXT,APP,CEN,NOD,QUA,INS,PER,TAN,NEA,PAR" "")
(command "ucs" "w")
thank you