TheSwamp
CAD Forums => CAD General => CAD Standards => Topic started by: theluck19 on May 24, 2010, 01:07:10 AM
-
Does anyone have a program that calculates MM to Inches & Vice Versa.
I am working on some drawings where the architect has used both dimensions in the drawings. I tried using the Quickcalc command but it is not very effective as it is time consuming. Is a there an easier way of doing this? Thanks..
-
Are you after a routine that works from the command line or are you just after a stand alone calculator that operates more efficiently than quickcalc? I can think of a few different implementations but it just depends on your usage.
-
Standalone will be more effecient as you say.. do you know where i can get one :-).
Another problem with the commandline is thet it displays the output as 12.25 rather than 12'-3".
-
I don't know of anything off hand but I could knock something together pretty quickly. I will look at it after I get home from work tonight.
-
You want something like this?
(defun c:xx (/ n)
(and (setq n (getdist "\Enter distance: "))
(princ (strcat "\nMM " (rtos (* n 25.4) 2 1) " Inches " (rtos (/ n 25.4) 3 1)))
)
(princ)
)
-
Thanks Dan & Ron.. I was thinking more like..
c:ddd
Please enter the distance (mm) you need to convert to feet & inches:
Command line Input : 300 (mm)
Output : 1'-0" Alert as dialog box or command line, (Precision 1/4")-Rounded positively.
I wrote something similar to Ron, using initget instead of getdist but i am having trouble controlling the precision & positive rounding.
What do you think is the next step as you can clearly see that i am a toddler when it comes to lisp.. :-(
-
You're right, the Precision and Rounding is a bit more of an issue then I originally thought. Especially since we don't generally have to deal with imperial measurements. Having said that, when I said standalone, I was thinking of a windows program rather than an Acad commandline one. Will that still work for you. And if so how would you enter feet and inches for the conversion to millimeters?
-
Are you aware of any freeware windows application which can do the conversion the way we require? I did download a few but, the output format is not what i want. I recall using a built in calculator with Rebarcad which was a good tool for this problem. I'll keep looking, please keep me posted if you do find a solution. Thanks..
-
Hello theluck19,
IL think dis is watt your looking for. 8-)
http://www.sjweeks.co.uk/
My software/metric Converter V4.2
-
Not quite im afraid, :-( I need the output as 1'-1 3/4" not as 13.75)
-
Oke
Try dis whan
http://www.pwr-tools.com/
Math/Fractions.........../converter
-
Exactly what i needed.. Thanks.. :-)
-
Try this one:
It is free.
http://www.katmarsoftware.com/?referrer=Uconeer24A
-
Inches to mm is easy.
Two macros -
* 12.7
* 25.4
Put them on buttons and use them within your drawing command.
Circle
pick centre
6 (* 12.7) [when given a 6" diameter]
Result is a 152.4 diameter circle.
-
Here is a program that converts all kinds of stuff
-
A nice numerical conversion program, a freebie from Hayward.
-
This is not what the OP was looking for, but it is very handy when checking lengths.
http://home.comcast.net/~medeziner/ (http://home.comcast.net/~medeziner/)