Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi dear
I'm writing a Lisp program but doesn't work well.
I want to draw a line.
Does anyone help me?
(progn
(setq orign(getpoint "select base point"))
(setq PtX (car orign) PtY (cadr orign))
(setq dh (getint "H1?"))
(setq ch (getint "H2?"))
(setq fh (getint "H3?"))
#Input H1
(setq PtY_dh (+ dh PtY))
(setq Pt_dh(list PtX PtY_dh))
#H1 drawing
(command "line" orign "@2000,0" "")
(command "line" Pt_dh "@2000,0" "")
#Input H2
(setq PtY_ch (+ ch fh PtY))
(setq Pt_ch(list PtX PtY_ch))
#H2 drawing
(command "line" PT_ch "@2000,0" "")
#Input H3
(setq PtY_fl (+ fh PtY))
(setq Pt_fl(list PtX PtY_fl))
#H3 drawing
(command "line" Pt_fl "@2000,0" "")
)
Solved! Go to Solution.