Jump to content

Making circle using ttr


brianhiroshi

Recommended Posts

Hi,

 

I was trying to use the command circle, but using the ttr mode between two lines that the program had drawn without the user need to select them, but I couldn't do it. I've tried using pickpoints or (entget (entlast)) but with no success. Does anyone know how to do it?

 

Thanks!

Link to comment
Share on other sites

I don't know if it is possible but for both of the solutions it reuires the user to select the tangency point from the lines, but it would be ideal for the program that after it makes the lines it automatically draws the circle ttr tangent to the two lines that were made but without making the user chose them. Do you know if it can be done?

Thank you!

Link to comment
Share on other sites

It doesn't look like that you can feed the command an ENAME. -David

 

Command: ci
CIRCLE Specify center point for circle or [3P/2P/Ttr (tan tan radius)]: ttr

Specify point on object for first tangent of circle: (entlast)
<Entity name: 1c35588>

Requires a TAN object-snap and selection of Circle, Arc, or Line.

Link to comment
Share on other sites

It doesn't look like that you can feed the command an ENAME. -David

 

Command: ci
CIRCLE Specify center point for circle or [3P/2P/Ttr (tan tan radius)]: ttr

Specify point on object for first tangent of circle: (entlast)
<Entity name: 1c35588>

Requires a TAN object-snap and selection of Circle, Arc, or Line.

 

Is this in reply to my post?

Link to comment
Share on other sites

If your drawing the two lines then why not calculate say the mid point of the two lines then when TTR asks for pt1 & pt2 (line1 line2) you can give it an answer maybe also osmode to nearest.

 

It worked for me ?

 

(setq pt1 (getpoint))

(setq pt2 (getpoint))

(command "circle" "TTR" pt1 pt2 rad)

Link to comment
Share on other sites

..after it makes the lines it automatically draws the circle ttr tangent to the two lines that were made but without making the user chose them. Do you know if it can be done?

 

Yes it can be, using a little geometry. The center of the circle is equidistant between the lines. I'd draw a sketch showing some sines, cosines, tangents etc.. but why take away from your fun? :)

Link to comment
Share on other sites

Thanks people, now I think it is working well, I've had to use the commands fillet and extend to do what I was trying to do with the cricle ttr. Thanks again!

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