Message 1 of 4
no function definition: DTR or polar

Not applicable
06-14-2015
05:46 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
this is my program..its for something like M shape
there is an error
(defun C:STR () ;1
(setq p0(getpoint "\n Base point:"))
(setq a(getdist "\n enter length<50>:"))
(setq h0(getdist "\n enter height<60>:"))
(setq a1(getdist "\n width1<20>:"))
(setq a2(getdist "\n width2<30>:"))
(setq h1(getdist "\n height1<40>:"))
(setq h2(getdist "\n height2<80>:"))
(setq w 1) ;4
(setq p1(polar p0(pi)a))
(setq p2(polar p1(/ pi 2.0)a1))
(setq p3(polar p2(* 1.75 pi)a2))
(setq p4(polar p3(/ pi 4.0)a3))
(command "pline" p0 "W" w "" p1 p2 p3 p4 p0 "")
(princ) ;8
)