I have need for a lsp file that I can select two points to find the middle insertion point for middle justified text entity. To explain I have to insert text inside boxes in middle of boxes. Now I have been drawing a line lower left to upper right and then use text command and select middle point of line for my insertion point. After I have to erase line. This is very extra work. Maybe one knows a better autolisp way to do it. If you know how please show me.
Hello,
This is my 1st post, so excuse me I'm a newbie here.
I found this lsp file on my computer that I downloaded somewhere.
It returns the midpoint between two points.
It might apply here, or maybe to a variation of the subject.
Code:
(defun midpt (p1 p2 / a b)
(mapcar '(lambda (a b) (/ (+ a b) 2.0)) p1 p2)
)
Autobahn,
This one kinda' intrigues me. I've done the same thing you described thousands of times. I worked up this function to make our work a little easier. Since we're talking about adding one text entity mc justified, I decided to include the AutoCAD dialog for Edit Text to make it easier to enter text.
Russell