Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello guys, how have you been?
I wanted to see if you can help me with this.
I am trying to draw a line on the bisector between three points.
Int - First point I always select (Intersection)
P1 and P2 - They have no order when selecting them (Direction of angles)
The problem is that sometimes it is drawn correctly and other times in the opposite direction and I don't know how to guide how the new line is drawn.
I attach how I am doing it and I am also going to attach a dwg file so that you can understand me better.
Or I don't know if anyone already has a better routine.
(defun c:xxx (/ int p1 p2 direct)
(setq int (getpoint))
(setq p1 (getpoint))
(setq p2 (getpoint))
(setq direct (polar int (/ (+ (angle int p1) (angle int p2)) 2.0) 20.0))
(command "_.line" "_non" int "_non" direct "")
(princ))
Thank you.
AutoCAD 2026
Visual Studio Code 1.99.3
AutoCAD AutoLISP Extension 1.6.3
Windows 10 (64 bits)
Solved! Go to Solution.