70002007 I wish there was a command to draw a tangent line between two circles

Article 70002007
Type Wish
Product Engine
Version 9001
Date Added 6/17/2021 12:00:00 AM
Fixed 9.9002.0.5 (6/24/2021 12:00:00 AM)
Submitted by avorcraft


I wish there was a command to draw a tangent line between two circles


In version 9002 we added a new command in the CommandAction object of the vdDocument like below

summary> Command that helps the user to draw a line from tangent points of a circle.
param name="FirstPoint">Null or "user so the user picks thisa point on a circle or a gPoint value of a point from a circle from which the tangent line will be drawn to.
returns>True of the command was succesfull.
remarks> Note that the Point that the user clicks will be used in order to select the closest of the two tangent points of the circle calculated.
public bool cmdTangentLineFromCircle(object FirstPoint)

This command (if called with null parameter) will ask the user to click on a circle and then the user will get a line from his cursor to the Tangent point closer to the initial point that he clicked.
After that the user can enable Tangent Osnap (or have it enabled from the beginning) and then click on a second circle to get the second Tangent point.
This way the user can create a line that connects two tangent points of two different circles.

This command can also be found in SimpleCAD and vdfCAD under Draw->Circle->TangentLine.

Send comments on this topic.