Line

Line

Anonymous
Not applicable
715 Views
1 Reply
Message 1 of 2

Line

Anonymous
Not applicable

I have a cust. line routine that takes 2pts. instead i am trying to have a line  such that when i pick the first pt i can see the line being placed and i can choose to use the ortho and all the other tool that comes with the normal line. 

0 Likes
Accepted solutions (1)
716 Views
1 Reply
Reply (1)
Message 2 of 2

Kent1Cooper
Consultant
Consultant
Accepted solution

@Anonymous wrote:

I have a cust. line routine that takes 2pts. instead i am trying to have a line  such that when i pick the first pt i can see the line being placed and i can choose to use the ortho and all the other tool that comes with the normal line. 


I will assume that it uses (getpoint) to ask for the 2 points.  If so, and if the first one is something like:

(setq pt1 (getpoint "\nFirst point: "))

 

then if you add pt1 as an argument  to the (getpoint) function for the second point, you will see the line being placed [the "rubber-band" line from pt1 to the cursor location], and can use Ortho, etc.:

 

(setq pt2 (getpoint pt1 "\nSecond point: "))

Kent Cooper, AIA