Jump to content

Line/Arc drawing


samifox

Recommended Posts

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

Link to comment
Share on other sites

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)

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...