Need Modification to this LIsp

Need Modification to this LIsp

saqib_tipa
Advocate Advocate
643 Views
8 Replies
Message 1 of 9

Need Modification to this LIsp

saqib_tipa
Advocate
Advocate

Hello all,

This is Mr. Lee's Lisp "AlignTextToCurveV1-3" from his site. 

Can someone modify this Lisp so that it can copy existing text.

Now when you use this command and select any text it moves it and rotates along polyline, but I need a copy function so that it can copy that text.

I already asked from Mr. Lee but he might be busy.

If someone can modify this Lisp plz modify.

Thank you.

0 Likes
644 Views
8 Replies
Replies (8)
Message 2 of 9

ec-cad
Collaborator
Collaborator

Quite involved to change that routine.

Question is, where do you intend to 'use' the copied text, if for next curve, use option 'New', and input

the text, or pick last text and a new curve. ?

Need more info.

 

ECCAD

 

0 Likes
Message 3 of 9

saqib_tipa
Advocate
Advocate

 

@ec-cad.

Thank you for the reply.

I want to copy last text and new curve. I want to copy same text on different polylines or curves.

Thank you.

0 Likes
Message 4 of 9

ec-cad
Collaborator
Collaborator

pick last text and a new curve

0 Likes
Message 5 of 9

saqib_tipa
Advocate
Advocate

 

Does 'pick last text and a new curve' mean it will move that text which we will select, But I would like to pick as copy last text and new curve.

Thank you.

0 Likes
Message 6 of 9

ec-cad
Collaborator
Collaborator

Looks like the program deletes the text selected. That's not good. In order to 'Copy' the 'last' text,

you would have to save the string (text value) of the last one picked, and, if it's not nil, use that

text string value to be created at the Pline Vertex point. Since the 'last' selected text is erased,

there would have to be (some) text to pick. So, let's say you do your new text, and copy that a few

times, just placing them anywhere. Then call the process, and when asked to select text, pick one

of the copies you made. If that works, maybe we can make a copy of the text on 1st selection,

and use that for the next few curves ?

 

ECCAD

0 Likes
Message 7 of 9

Sea-Haven
Mentor
Mentor

Post a dwg that shows before and after.

0 Likes
Message 8 of 9

saqib_tipa
Advocate
Advocate

 

Yes, it removes selected text for new curve. For same curve there is option (Multiple Text Modet) to keep last text and we can make an extra text for further use, but it will not keep that multiple mode again.

Thank you.

0 Likes
Message 9 of 9

saqib_tipa
Advocate
Advocate

 

Hello @Sea-Haven ,

I attached sample drawing before and after. I want to use this lisp because it can auto rotate along curve, move and preview of placement before placing text.

Thank you.

0 Likes