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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need LISP for Coordinate Dimensioning 1

Status
Not open for further replies.

jackling

Technical User
Feb 27, 2003
4
0
0
US
I at one time had a LISP program that would let you
pick a point and it would let you dimension that point
with a dimension like: (x,y) with leader to point.

Can anyone tell me where I could find this LISP or one to do the job?
Thank You

 
I didn't find one but whipped together a simple labeller using a leader. Does this do the trick?

(princ "\nType LPT to start")
(defun c:lpt ()
(setq pt1 (getpoint "\nPick point to label: "))
(setq xcoord (car pt1))
(setq ycoord (cadr pt1))
(setq xtext (rtos xcoord))
(setq ytext (rtos ycoord))
(setq pttext (strcat "(" xtext ", " ytext ")"))
(princ "\nPick 2 points for leader: ")
(command "._leader" pt1 pause pause "" pttext "")
(princ)
)
 
Thank you for getting back. Your lisp worked just the way I needed.
Thanks Again
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top