kalai Posted May 14, 2011 Share Posted May 14, 2011 (edited) my coding (setq p20(polar p1 A1 6) p21(polar p20 A2 6) p22(polar p21 A1 (-(/ Dia 2.0)12)) p23(polar p22 A2 63) p24(polar p23 A3 (-(/ Dia 2.0)12)) (command "pline" p21 p22 p23 p24 "c") y coordinate getting assigned to 0 what could be the reason ? Edited May 14, 2011 by SLW210 Placed code in tags Quote Link to comment Share on other sites More sharing options...
Tharwat Posted May 14, 2011 Share Posted May 14, 2011 It could be the osmode . Try it this way . (setq os (getvar 'osmode)) (setvar 'osmode 0) (command "pline" p21 p22 p23 p24 "c") (setvar 'osmode os) Or this . (command "pline" "_non" p21 "_non" p22 "_non" p23 "_non" p24 "c") Hope this help . Tharwat Quote Link to comment Share on other sites More sharing options...
kalai Posted May 14, 2011 Author Share Posted May 14, 2011 thanks, i will try and reply. Quote Link to comment Share on other sites More sharing options...
pBe Posted May 14, 2011 Share Posted May 14, 2011 (progn (command "pline" "_non") (foreach pt (list (setq p21 (polar p20 A2 6)) (setq p22 (polar p21 A1 (- (/ Dia 2.0) 12))) (setq p23 (polar p22 A2 63)) (setq p24 (polar p23 A3 (- (/ Dia 2.0) 12)))) (command pt "_non") ) (command "") ) Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted May 14, 2011 Share Posted May 14, 2011 Kalai, Please read this regarding posting code. Lee Quote Link to comment Share on other sites More sharing options...
SLW210 Posted May 14, 2011 Share Posted May 14, 2011 Kalai, Please read this regarding posting code. Lee I took care of it this time, please use "Code Tags" from now on. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.