Hello,I have 1 segment A and 1 line BHow to make perpendiculars from segment A end points to line B - red lines. I need VBA code. Why I need. Because so i find the closest endpoint A to line B. Then segment A will be extended from closest endpoint to intersect with line BAny idea how to find the intersection coordinates X, Y of the continuation of segment A with line B would be gratefully received.Greetings!
If B is a line segment1. determine the angle of inclination B2. Temporarily rotate A+B so that B becomes vertical3. draw a horizontal line through the desired pointsyou have the coordinates of the point (x1,y1), and the second coordinate along the X axis is the position of B(xB,y1)same for the second perpendicular(x2,y2) & (xB,y2)4. rotate A+B + 2*(perpendiculars) to a negative rotation angle
You may already know this, but...
Both of the tasks you describe - drawing the perpendicular lines and extending one line to intersect with another - can be done directly using Dynamic guides and object snaps.
OKThis is a good idea. I understand and will try with VBA. Manually this works wellThank You!