Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

I want to place a text string between two points!

3 REPLIES 3
Reply
Message 1 of 4
Nrhoads
206 Views, 3 Replies

I want to place a text string between two points!

I have a command that opens a dcl with choices of predefined text strings. It uses getpoint to get two endpoints and then it calculates the middle of those for the text insertion point. It uses point 2 for the rotation of the text.
The problem is that you can not "see" a line when picking points and you do not know the rotation of the new text object. Can anyone add some way of "seeing" the rotation line as you pick pt1 & pt2?
I have attached the code. Go easy on me, I am not a programmer, just a customization lover!
Thanks!!!
3 REPLIES 3
Message 2 of 4
Anonymous
in reply to: Nrhoads

Change this:

pt2 (getpoint "\nSelect text rotation point ..."))

to:

pt2 (getpoint pt1 "\nSelect text rotation point ..."))
Message 3 of 4
Nrhoads
in reply to: Nrhoads

That makes so much sense...
Thanks a lot!
Message 4 of 4
Anonymous
in reply to: Nrhoads

You're welcome

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost