samifox Posted June 18, 2015 Share Posted June 18, 2015 hi , just wanna know, using pline with arc asd an argument let us draw lines and curves dynamically. i want to draw a rebar with curved corner dynamically, what is the right combination to achive this? here is an example of what im talking about Quote Link to comment Share on other sites More sharing options...
BIGAL Posted June 19, 2015 Share Posted June 19, 2015 There was a request a couple of days ago to draw a pline and have radius appear pretty sure Lee answered. The simplest way is draw pline then 2nd pass it and add radius. I know the code for that is here. Other way is 1st principles where you draw a pline straight then arc then straight then arc straight and so on. This is a snippet of code that draws a pline straights and arcs hence idea of using 2nd pass this is a snippet of code that draws a pline straights and arcs (command "pLINE" p2 "w" 0.0 0.0) (setq m 0) (while (< m N) (setq p3 (polar p2 ang1 d2)) (setq p4 (polar p3 ang1 d2)) (setq p5 (polar (polar p3 ang1 20)(+ ang1 4.71239) d3)) (setq p6 (polar p5 ang1 d2 )) (setq p7 (polar p6 ang1 d2)) (setq p8 (polar p4 ang1 d4)) ; now put pts 3,4,5,6 (command "a" "ce" p3 "a" "-180" "l" p5 "a" "ce" p6 p7 "l" p8) 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.