Jump to content

y coordinate getting assigned to 0


kalai

Recommended Posts

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 by SLW210
Placed code in tags
Link to comment
Share on other sites

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

Link to comment
Share on other sites

 
(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 "")
)

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...