Distance command
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
Distance command

 
Post new topic   Reply to topic    CADForums.net Forum Index -> Customization
Author Message
David Allen
Guest





Posted: Fri Apr 08, 2005 8:55 pm    Post subject: Distance command Reply with quote

I need a distance Nearist to Perpendicular that will disregard Z elevations
and will display its results in both Architectural and decimal format.
Distance = 30'-0"
Distance = 360.00001234


David

Back to top
Tim Decker
Guest





Posted: Fri Apr 08, 2005 10:29 pm    Post subject: Re: Distance command Reply with quote

I have had this one for a while, try it out. Precision is based on the
settings below, with istructions on how to change.

(defun c:2d (/ pt1 pt2)
(setvar "cmdecho" 0)
(setq pt1 (getpoint "\nFirst Point: "))
(setq pt2 (getpoint pt1 "\nSecond Point: "))
(command ".dist" ".z" "0,0,0" pt1 ".z" "0,0,0" pt2)
(princ (strcat "\nDistance = " (rtos (getvar "distance") 4 0)))
;Change the zero to change precision
(princ (strcat "\nDistance = " (rtos (getvar "distance") 2 8)))
;Change the eight to change precision
(prin1)
)

"David Allen" <*@*.com> wrote in message
news:i8dd519okibllrgm6umqu38nq5560dp1jo@4ax.com...
Quote:
I need a distance Nearist to Perpendicular that will disregard Z elevations
and will display its results in both Architectural and decimal format.
Distance = 30'-0"
Distance = 360.00001234


David
Back to top
Medeziner
Guest





Posted: Sun Jun 26, 2005 8:10 am    Post subject: Re: Distance command Reply with quote

See if this program would work for you.
Please let me know how it works out.

Richard

Lisp replacement for AutoCad distance command
http://mywebpages.comcast.net/medeziner/



"David Allen" <*@*.com> wrote in message
news:i8dd519okibllrgm6umqu38nq5560dp1jo@4ax.com...
Quote:
I need a distance Nearist to Perpendicular that will disregard Z
elevations
and will display its results in both Architectural and decimal format.
Distance = 30'-0"
Distance = 360.00001234


David


Back to top
 
Post new topic   Reply to topic    CADForums.net Forum Index -> Customization All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Contact Us
Powered by phpBB