Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

efficient leader replacement

Status
Not open for further replies.

clunedog311

Technical User
May 17, 2004
1
US
I have a large amount of drawings in which I need to replace all the leaders that are made out of 2 line segments and a solid with a quick leader with dimscale 1.000 and arrow size 0.125. Would it be possible to write a lisp routine in which I could select the 3 points of an existing segmented leader, and then it draws a new quick leader with correct parameters and deletes the old leader?

Thank you for any help.
Tim
 
Tim,

You should be able to accomplish what you want to do fairly easily with a lisp routine however, there a couple of "gotchas" you may want to consider. First, you mentioned you want to replace the leader by selecting 3 points and then have it erase the old leader, and create a new one. You may consider selecting your 3 points in addition to the text so you don't have to re-type anything. Second, you may want to consider selecting the leader line itself, and a start point instead of the 3 points to create a leader - this way when you delete your old leader you will be assured you are deleting only the leader you want and not any other geometry, and you'll have the luxury of actual entity information. Finally, the reason you'll want the entity information from above, you mentioned you have a large amount of drawings to do (and for me anyway), if I get interrupted for any length of time, I have a tendency to forget where I left off. If you are selecting the entity and therefore have its information, your program could warn you, or give you the option of replacing the new style of leader so you're not wasting your valuable time.

HTH
Todd
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top