Convert from feet to inches?

Can numbers convert imported data from feet notation (i.e. 3' 6 1/2") to decimal inches (i.e. 42.5)? I'd like to be able to import rough opening dimensions from my internal CAD (Vectorworks 2008) spreadsheet to generate cut lists with numbers. I can manually type in the info, but that is prone to errors. I'm also looking into whether Vectorworks can export the data I want in the proper format.
Thanks for any help
- Tobias

Hello
Assuming that the values are entered in a column,
select a group of the cells containing them
copy to the clipboard
call the passed script
paste the result where you want.
If I forget nothing, it take cares of all combinations:
3’ 6 1/2
3’ 6
3’ 3/4
6 3/4
3'
6
1/2
3' 6 1/2
even blank rows are correctly treated.
Of course, if the source of the datas give you the same kind of list, you may call the script directly.
It only requires that Numbers is the frontmost application.
save the script as an Application or an Application Bundle.
store it in the folder <yourStartupDisk>:Users:<yourAccount>:Library:Scripts:Applications:Numbers:
Maybe you would have to create the folder Numbers and even the folder Applications by yourself.
Doing so you will be able to run the script from the System's scripts menu.
Select the block of feets values
Copy to clipboard
Call the script
Paste the block of converted values where you want.
Yvan KOENIG
25 février 2008
--(SCRIPT feets2inches.app]
property passed : {}
set passed to the clipboard
if passed contains return then
set my passed to my decoupe(passed, return)
else
set my passed to {passed}
end if
set tt to ""
repeat with vv in my passed
set vv to vv as text
if vv is "" then
set tt to tt & return
else
set l to my decoupe(vv, " ")
if (count of l) = 1 then (* 3' or 6 or 1/2 *)
set l1 to item 1 of l
if character -1 of l1 is in {"'", "’"} then
set nn to ((text 1 thru -2 of l1) as integer) * 12
else if l1 does not contain "/" then
set nn to l1 as integer
else
set {c, d} to my decoupe(l1, "/")
set nn to c / d
end if
else if (count of l) = 2 then (* 3' 6 or 3' 1/2 or 6 1/2 *)
set {l1, l2} to l
if (character -1 of l1) is in {"'", "’"} then
if l2 does not contain "/" then
set nn to (((text 1 thru -2 of l1) as integer) * 12) + (l2 as integer)
else
set {c, d} to my decoupe(l2, "/")
set nn to (((text 1 thru -2 of l1) as integer) * 12) + (c / d)
end if
else
set {c, d} to my decoupe(l2, "/")
set nn to (l1 as integer) + (c / d)
end if
else (* 3' 6 1/2 *)
set {c, d} to my decoupe(item 3 of l, "/")
set nn to (((text 1 thru -2 of item 1 of l) as integer) * 12) + (item 2 of l as integer) + (c / d)
end if
set tt to tt & nn & return
end if
end repeat
set the clipboard to tt
set passed to {}
on decoupe(t, d)
local l
set AppleScript's text item delimiters to d
set l to text items of t
set AppleScript's text item delimiters to ""
return l
end decoupe
--[/SCRIPT]
If it works as you wish, I will put it in my idisk.
Yvan KOENIG (from FRANCE lundi 25 février 2008 15:57:4)

Similar Messages

  • Conversion from "feet to inches"to"meter and centimeters"

    hi,
    i need this answer urgently!!!!
    i'm trying to write a java program that reads lenghts in feets and inches(or meters and centimeters(or feet and inches). the program askes the user if he/she wants to convert from "feet to inches" to "meters and centimeters" or from "feet to inches". The program then preforms the desired conversion.having the user respond by typing the integer 1 for one type of conversion and 2 for the other conversion.The program reads the user's answer and then executes an if-else-statement. each branch of the if-else statement will be a function call. Include a loop that lets the user repeat this computation for new input values until the user says he or she wants to end the program. Use as many method that are logically needed. The main method should do as little as possible.

    I love these questions - especially the little bits at the end that clearly point out it is a homework question.
    As joeldi says, show us that you've had a decent go at it and we'll be more interested in helping out.
    Regards,
    Tim

  • How do I convert from metric to inches in Microsoft Word 2008?

    Hello,
    I'm trying to create a poster on my Macbook and am using Word 2008. Right now it's in the metric measurement and I want to convert to inches, how do I do this? I've tried the help and searching online and found how to do it on a PC but can't figure out how to do it on a Mac.

    Okay my sister figured it out. You go to Preferences and click the General tab and then at the bottom it is listed in measurement and you just switch that to inches and click okay.

  • Converting feet to inches

    I need to conver feet to inches, in my code, I am picking up feet and inches in the input file, and need to convert it all to inches on the output file, for example, a person is 5 07, this needs to be converted to 67 inches....Any suggestions

    Angel_74 wrote:
    I need to conver feet to inches, in my code, I am picking up feet and inches in the input file, and need to convert it all to inches on the output file, for example, a person is 5 07, this needs to be converted to 67 inches....Any suggestionsExcuse me for being late, a just got back from a doctor's appointment.
    So your project is really all about reading text from one file, and writing text to another file right? In that case, you should think about how your program handles the input. Most input comes in the form of a java.lang.String (but not always, depends on your InputStream), then your program needs to convert those String values into int values before you can use the mathematical formulas given above. Then depending on the OutputStream, you may or may not need to convert int back to String or whatever.

  • Converting feet and inches to pixels

    I design Video Content for live shows. Often my set designer comes up with bizarre screen sizes. I am looking for a simple app that converts feet and inches into pixels. I want to be able to determine the pixel equivilent of his screen dimensions so that I can create a mask. I have done this using Photoshop, but it would be so much easier if I could simple input the dimensions and then get my results.
    Here's a typical size he would give me...8' by 100 yards ( I know that's insane) or 37' by 17 '
    Any help would be apprecitated

    Johnny,
    Trust me ... I'm no mathematical wizard or
    technoguru, but it seems that as long as you know the
    aspect ratio of the screen you need to fill and you
    match that, the actual pixel dimensions would be more
    of a issue of the display device (a projector, I'm
    assuming).
    For example, I output 720 x 480 (NTSC DV) to tape or
    640 x 480 (DVD-Video) all the time that is later
    projected on a variety of different sized screens.
    If the screen is a 4:3 aspect ratio, my video fills
    the screen if the projector is positioned correctly
    and the right lens is used.
    -DH
    Thanks for the replies guys.
    The problem is that he never gives me ratios, he just gives me stratight sizes.
    I build these in 720 x 480 and they are sent through some unexplicable beta/do-ray-me configuration to output on giant LED walls. The resolution doesn't matter. This strange output configuration only reads my video the same as if I was outputting straight from FCP.
    On one job he gave me the simple 16:9 ratio and I simply put a 16:9 matte on everything within a 720 x 480 using Joe's Filter Beta "Joe’s Aspect Matte RT".
    That was easy. What gets tricky is when he gives me some strange size like
    37 feet high by 6 feet wide. Is there an easy way to figure out this ratio and then build it within 720 x 480 using a matte. If I knew the pixel numbers of 37' by 6' I could just adjust my matte accordingly.

  • How can I convert the rulers on the page layout from picas to inches?

    How can I convert the rulers on the page layout from picas to inches?
    I am creating a print document - the page setup seems to automatically convert from inches back to picas. When I go to the tutorial on creating a document, however, the tutorial shows dimensions in inches. I assume there is some kind of preferences setting but I have not been able to find it.

    In the Online Help:
    InDesign Help | Rulers and measurement units
    From this forum:
    CS6 New Document - Units and Increments - Ruler Units Defaulting Back to Picas
    InDesign CS5.5 won't respect Units Preference
    InDesign Page Margins measured in "P"??? What?
    starting a new doc in InDesign
    Elsewhere:
    http://indesignsecrets.com/change-measurement-systems-on-the-fly.php

  • Feet and Inches formula

    Is there an easy formula for converting cell values from Inches to non-decimal Feet & Inches? I can get feet and decimals, but '8.3333' isn't as intuitive for the applications I'm using the spreadsheet for!

    If you start with a decimal number of inches in cell B2, you can convert it into feet and inches with the following formula:
    =TRUNC(B2/12)&"ft "&MOD(B2,12)&"in"

  • Feet and inches ' and "

    I have an application that requires height in feet/inches.
    Obviously php/mysql will have an issue with something like 6'2"
    because of the ' and ". What they best way to handle this so I can
    still express it this way... or is it not worth it and just use
    feet and inches, the words?

    jsteinmann wrote:
    > I have an application that requires height in
    feet/inches. Obviously php/mysql
    > will have an issue with something like 6'2" because of
    the ' and ". What they
    > best way to handle this so I can still express it this
    way... or is it not
    > worth it and just use feet and inches, the words?
    >
    I would store the value as inches:
    <script>
    convert=function(input){
    x=input.split(/[^\d]/);
    return x[0]*12+ +x[1];
    </script>
    Mick

  • Height in feet and inches

    I have a string value for height in the database that I would like split out into feet and inches. For example the value right now is 66, 65, etc...

    Hi Curt,
    If Unit of measure is CM then use below logic
    (totext(({Database_cm}* 0.0328084),0)) & " Fts   "&Tonumber((Split(totext({Database_.cm}* 0.032808,5),".")[2])) *0.00012 & " Inches"
    If Unit of measure is in Meters then You need to convert meters to CM by using below formula
    {Meters_field}/100
    --Praveen G

  • Conver feet and inches to meters

    I'm writing a program that calculates BMI of a person,
    but i have some problems trying to extract feet and inches after the user enter their height, you know what I mean?
    is something like this, the program prompts user to enter the height (ft'in") so if the person enters something like this 5'6" I have to extract feet and inches and then convert them to meters. I'mm trying to use the StringTokenizer, but I know I;m doing something wrong,
    Can anyone help me please?
    thank you,

    I know but I really need helpThat doesn't make your question any more important than everybody else's. Everybody who posts here needs help. Please don't try to claim that your problem is more important.

  • ABAP code needed to convert from 0calmonth2 & 0calyear to 0calmonth

    Hi SAP GURUS,
    Can anybody give me the ABAP code to convert from 0calmonth2 and 0calyear to 0calmonth.and please suggest me whether i have to write start routine or end routine in transformations.
    Thanks ALL.

    hi,
    in the transformation map 0calmonth2 and 0calyear to the 0calmonth field, and from drop down choose routine.
    there will be an area where it will be mentioned write your piece of code below this line.
    paste the below code:
    Concatenate source_fields-0calmonth2 source_fields-0calyear into result.
    also delete the line result = .
    save the routine and execute the package.
    regards,
    Arvind.

  • The bullet list, numbered list and the normal text is not converting when I am converting from RH 9 to MS Word 2010

    Hi all,
    Greetings for the day
    I am created a new CSS in Robohelp 9. I have also created a new template in Word 2010. The style sets for different information elements like (Heading, bullets, body text, ) are more or less same between the CSS and the new templates. I am also able to map the .css styles to Word template when I am converting from RH to Word as I am getting the necessary option in the drop-down list.
    However, when the output is generated, the bullet, the numbered list and the body text is not converting at all. The body text works sometimes. However, the numbered list and bullet list is coming out as images.
    If anybody knows the solution, I can share the .css and Word template.
    Thanks in advance.
    Regards,
    Parag Deb

    Create a new project with two or three topics containing lists of both types. Generate a printed output that shows the problem. Then zip it up and send it to me. See the Contact page on my site for instructions.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • How do I convert from pdf to word? I see an option to do so, however, when I click on it, Ia box opens...

    when I try to convert from pdf to word, a box opens and suggests I am to click on (select) the file I want to convert. It sounds all well but it does not work. I really really just want my files back in word, all of them, no matter, because after having to reinstall windows 7 (done by techs) and me having to re-download all my HP drivers, and tools, and other software, which I imagine included adobe reader, now I see some pdf files won't open. It says, "access denied" and boy that really makes me wantt o scream. I am the ONLY user, it is my notebook, I am the administrator so I can't figure out why some files open and some don't. I can't ascertain any difference.
    I would be grateful for any help. This has become just too exhausting. After reinstalling sooooooooo much, then to have to go through this with what is a free application? I say I think not.
    This should NEVER happen with any free application and boy there is NO help to be found. They blow you off the phone fast telling you it's a free application. Then why are you putting in this kind of  stuff that it won't open? This is NOT a shared notebook, it's mine. I am the only user, personal use.
    HP probook, if anyone needs that info.
    Please, will someone help?
    I would be so grateful.
    thanks,
    Gina

    Gee, Pat, this is a  real big help.
    Nobody could possibly think anyone would ask for help without first trying to fix the issue oneself. Or maybe you do. I have opened the file and looked under security. I have changed it to owner-notebook (which is what the techs called me) and clicked accept but geepers it didn't work.
    Maybe someone else has an idea.
    Take Ownership of a File or Folder
    The above should be a link. At least I copied and pasted the link. I did what was stated in there. It isn't like brain surgery. But it is not working. I ended up being able to open some pdf files after transferring them from one partition category to another. I wish it was that easy as you seem to think.
    Thanks for the help. Have a great year.

  • How do you stop DNG Converter from embedding Adobe's ACR default settings instead of custom settings?

    I notice that the new version of Adobe DNG Converter (8.6, and maybe earlier) appears to place Adobe's ACR defaults in the converted file.  Thus, the converted files open up in Bridge with an indication that they already have settings made, and, hence, ACR does not apply the custom camera settings.  One has to Clear Settings first in Bridge, then open in ACR.
    This behavior is new, perhaps to 8.6.  But it's presence defeats the purpose of having custom Camera Defaults.
    Is there any way to prevent DNG Converter from installing settings?

    ssprengel wrote:
    What do you mean by “custom camera settings”?  Do you mean you’ve changed the Camera Raw defaults for a particular camera and those aren’t being seen until you do a Reset?  Or do you mean some sort of Nikon-settings that Adobe never looks at?
    Also at what point in the workflow are you converting these files, just after copying them to your hard-disk and before touching them with any other Adobe software, or after they’ve been adjusted in Nikon software, or after they’ve been adjusted in Bridge/ACR, initially as NEFs?
    I mean my custom camera defaults that are set by the Save New Camera Defaults for a given camera.
    My workflow is to take my original raw files first into Adobe DNG Converter.  I then open the folder in Bridge.  At this point I notice that my original raw files remain unaltered (there is no "settings" icon in the top right corner – circle with two lines and up-arrows – in the image's thumbnail), but the converted dng's (otherwise untouched and unopened in ACR) have a "settings" icon.  When I open the original raw file in ACR, it opens using my custom camera defaults.  When I open the otherwise virgin dng in ACR, it opens using the Adobe defaults (the same defaults that would be employed if no custom camera default had been set).
    This behavior is new.  DNGs formed by earlier versions of the DNG Converter did not apply any settings to the converted file, and when they opened in Bridge, they were given the custom camera settings.
    In order to retain the old (and proper) behavior, I now have to take the just-converted documents into Bridge, select them, and immediately apply Develop Settings/Clear Settings.  That gets rid of the settings that have been installed by the DNG Converter (as well as the "settings" icon on the thumbnail).
    I notice there is a new feature in Adobe DNG Converter 8.6, namely, a panel-specific toggle between the settings and the default settings. This indicates to me the likelihood that Adobe has been making some alterations with the settings that is having unintended consequences.  It clearly is not proper for DNG Converter to be adding (installing) settings, because that prevents the custom camera default settings from being applied, and hence defeats the purpose of the custom camera default settings.

  • Applescript to convert from AW6 spreadsheets to Excel

    I have an iMac (iMac12,2) running OS 10.9.1 with applications of Pages’09 (4.3), Pages (5.0.1), Numbers’09 (2.3) and Numbers (3.0.1) available.
    One of my laptops is a MBA (MacBookAir1,1) that I have kept at 10.6.8 with applications Appleworks (6.2.2) and Appleworks (6.6.9) available.
    Recently, I converted many CWWP documents from AW6 into Pages.  This was done on the iMac with an Applescript that copied a file (AnyDocumentCWWP) to the desktop as a file named AWV6, opened AWV6 with Pages’09, saved the result as AWV6.Pages, applied the creation date and modify dates of the original to AWV6.Pages, moved the new AWV6.Pages to the original directory and moved the original file to the trash, renamed AWV6.Pages to the original filename (excluding extension).  The Pages version of the original document does not preserve the formatting of the CWWP, but the content was now discoverable with Spotlight.  Since I was primarily concerned with the content, I would consider the conversion effort successful enough.
    I performed the same sort of process on the iMac with CWSS documents converting from AW6 into Numbers.  Here the results were less successful.  I discovered that many of the converted spreadsheets had cells where the cell contained the last calculated value in substitute for the formula originally present -or- Numbers was unable to open the CWSS spreadsheet due to size limitations.  Neither problem occurs when the file is converted on the MBA by Appleworks into an Excel format.  For those CWSS files that did not properly convert to Numbers, I would like to perform a conversion to Excel.
    When a given spreadsheet is manually opened on the MBA with either version of Appleworks, one can “Save as” using several formats of Excel.  That operation will preserve the formula which cannot be recognized in Numbers’09. An example of this issue is when a spreadsheet has a cell that contains a formula with the function “ISNUMBER”.  When I manually open a CWSS in Appleworks (either 6.2 version), I can Save As Excel Win 97 … or Excel Mac 98 … creating an XLS file that preserves the formula.
    I have attempted two techniques with Applescript to be able to convert my CWSS documents into XLS format.  Neither seem to work.
    The first technique is very similar to a few lines extracted from a canned script found on http://macscripter.net/viewtopic.php?id=8296 the relevant code is:
    set theSprTranslator to "Excel Win 97, 2000, XP 2002 spr"
    tell application "System Events" to set mfpath to get path of disk item ("~/desktop/" as string)
    set newfile to (mfpath & "AWV6" as string)
    set NewFilename to AWV6XLS
    tell application "AppleWorks 6"
        activate
        open newFile -- alias reference is ok
        save using translator theSprTranslator with NewFilename and replace
        close front document without saving
    end tell
    When this did not work, I attempted a scripted GUI solution as a second option.  The GUI code I had found at http://stackoverflow.com/questions/17348326/applescript-to-save-an-appleworks-do cument-wont-compile-end-tell-vs-end-easy is:
    tell application "System Events"
             tell process "AppleWorks"
                     click menu item "Save As…" of menu "File" of menu bar 1
                     click menu button "File Format" of window "Save : AppleWorks 6"
                     click menu item "Excel Mac 5 spreadsheet" of menu 1 of menu button  "File Format" of window "Save : AppleWorks 6"
                     keystroke return
             end tell
    end tell
    Unfortunately there is no “File Format” menu button, after a bit of further research, I discovered UI Browser and wrote my own Applescript equivalent:
    set mytempwork1 to AWV6
    set theSprTranslator to “Excel Win 97, 2000, XP 2002 spr”
    tell application "Finder" to open file (mytempwork1 as string) of the desktop
    tell application "System Events"
        tell process "AppleWorks"
            click menu item "Save As…" of menu "File" of menu bar 1
            tell text field 1 of window "Save : AppleWorks 6"
                set value to "XX" & mytempwork1
            end tell
            click pop up button 1 of group 1 of window "Save : AppleWorks 6"
            click menu item theSprTranslator
            —click radio button 2 of group 1 of window "Save : AppleWorks 6"
            —delay 3
            —click radio button 1 of group 1 of window "Save : AppleWorks 6"
        end tell
    end tell
    tell application "System Events"
        tell process "AppleWorks"
            delay 10 — <<<<<IF YOU CLICK ON THE BUTTON WHILE IN THIS DELAY, THE SCRIPT WILL BEHAVE PROPERLY
            click button "Save" of window "Save : AppleWorks 6"
            delay 1
        end tell
    end tell
    This GUI script behaves almost as I would like.  It seems to ignore the setting of the “pop up button 1” unless I actually intervene while the script is running and I click on the button.  When I do so, the script runs as intended.
    Is there a way to force Appleworks to recognize the Applescripted value of the “clicked” menu item?

    Hello
    As far as I know, there's no need to resort to GUI scripting. The problem in exporting in AppleScript is that AppleWorks 6 only accepts typeChar (TEXT) data as translator name while AppleScript string has become always being represented as typeUnicodeText (utxt) since OS X 10.5. This makes passing translator name to save command difficult but there's a workaround method as shown in the sample code below. The |TEXT|() handler does the job. Tested with AppleWorks 6.2.4 under 10.6.8.
    main()
    on main()
        set export_translator to "Excel Mac 98, 2001 spreadsheet"
            "Excel Mac 5 spreadsheet"
            "Excel Mac 98, 2001 spreadsheet"
            "Excel Win 5 spreadsheet"
            "Excel Win 97, 2000, XP 2002 spr"
        set export_translator_TEXT to my |TEXT|(export_translator)
        set src to (path to desktop)'s POSIX path & "in.cwk"
        set dst to (path to desktop)'s POSIX path & "out.xls"
        set srca to src as POSIX file as alias
        set dsta to touch(dst) as POSIX file as alias
        tell application "AppleWorks 6"
            --return export translators
            open srca
            tell document 1
                if document kind = spreadsheet document then
                    save in dsta using translator export_translator_TEXT
                end if
                close saving no
            end tell
        end tell
    end main
    on touch(f)
        do shell script "touch " & f's quoted form
        return f
    end touch
    on |TEXT|(u)
            string u : source text
            return data : «data TEXT...» representing u converted to MACROMAN encoding
        do shell script "u=" & u's quoted form & "; printf '%s' \"$u\" | iconv -f UTF-8 -t MACROMAN | xxd -p"
        run (run script "
    script
        «data TEXT" & result & "»
    end script")
    end |TEXT|
    Hope this helps,
    H

Maybe you are looking for

  • Function in a query causing a problem ................

    Hello Gurus I have a problem with my select statement which contains 2 function in it. These functions cause the query to run slow. I have cross checked with all the indexes, statistics and index used within the function they are all correct. Please

  • Handling exception thrown by parseEscapedXML function

    Hi, I am using parseEscapedXML function to parse an xml string in the below format . <parameters><item id="" value=""/><item id="" value=""/></parameters> The exception thrown when input is in incorrect xml format is not caught using catchAll. Kindly

  • How do I save and convert Email docs to PDF?

    I Just purchased a new  IPad Air. I downloaded adobe redder. I received an email formatted in wind at but, I am unable to  open and convert to PDF..  Can someone help?

  • E6 belle update

    hi, my nokia e6 ''belle promo" as it is written in the sftware updates app. Its only 2.5 mb in size and that scares me. Is that normal? And also with all the complaints about belle not been so good for e6 and people been tryna downgrade back to anna.

  • Future tabs

    Will Oracle APEX consider to convert the current "Tabs" in APEX into a list in the future? This will make it easier for developers to build list-based menu and sub-menus declaractively. Thanks.