
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
hi everyone.
i attached the lisp.
kindly help this problem as shown below.
1.when i do the first time in the drawing totally collapsed itself. i don't know why appears it's like this after that second time it looks good.
2. In this lisp, some information missing I am pretty sure, i wanna put equal spacing for stirrups, but, so many times i tried. it did not come. what is wrong in this lisp?
thanks advance
hussain
(defun c:oi ()
(defun dtr (a)
(* pi (/ a 180.0))
)
(setq blen (getdist "\nenter basement the length: "))
(setq bht (getdist "\nenter basement the height: "))
(setq colht (getdist "\nenter the column height: "))
(setq colw (getdist "\nenter the column width: "))
(setq spc (getdist "\nenter the space the stirups: "))
(setq stirups (getint "\nenter the no.stirups: "))
(setq i 0)
(setq sp (getpoint "\npick point: "))
(setq p1 (polar sp (dtr 0.0) blen))
(setq p2 (polar p1 (dtr 90.0) bht))
(setq p3 (polar p2 (dtr 180.0) (- (/ blen 2) (/ colw 2))))
(setq p4 (polar p3 (dtr 90.0) colht))
(setq p5 (polar p4 (dtr 180.0)colw))
(setq p6 (polar p5 (dtr 270.0)colht))
(setq p7 (polar p6 (dtr 180.0) (- (/ blen 2) (/ colw 2))))
(command "line" sp p1 p2 p3 p4 p5 p6 p7 "c")
(repeat stirups
(setq o (list (car p6) (+(cadr p6)i) ))
(setq l (list (car p3) (+(cadr p3)i) ))
(command "line" o l "")
(setq i (+ spc i))
)
(princ)
)
Solved! Go to Solution.