<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Imperial input from user in Foot Inch . in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/imperial-input-from-user-in-foot-inch/m-p/3142990#M59483</link>
    <description>&lt;P&gt;Thanks Chief,&lt;/P&gt;&lt;P&gt;First I didn't know about this at all. Really appreciated.&lt;/P&gt;&lt;P&gt;But the question is how you cotrol user input on a from&amp;nbsp; data entry , Not at command prompt&amp;nbsp;?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Janet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 31 Aug 2011 19:07:44 GMT</pubDate>
    <dc:creator>JanetDavidson</dc:creator>
    <dc:date>2011-08-31T19:07:44Z</dc:date>
    <item>
      <title>Imperial input from user in Foot Inch .</title>
      <link>https://forums.autodesk.com/t5/net-forum/imperial-input-from-user-in-foot-inch/m-p/3141804#M59479</link>
      <description>&lt;P&gt;I really I got confused&amp;nbsp; - Hope somebody could give me a hand .&amp;nbsp; I have a form with some textbox on it, which should be&lt;/P&gt;&lt;P&gt;filled in with imperial dimension. Like foot and inch.&amp;nbsp;&amp;nbsp;Users right now complain about it is not&amp;nbsp;user friendly&amp;nbsp; ,to put data in form, and honestly they are right. I didn't a good job .&lt;/P&gt;&lt;P&gt;Some people like to put vetting in inch and then by the time textbox lost it focus it should automatically convert data to feet-inch format. Some other user like to put decimal I have to be able to should them in&amp;nbsp; 1/8 inch.&lt;/P&gt;&lt;P&gt;some user like to use space as separator between foot and inch and some other like to use dash.&lt;/P&gt;&lt;P&gt;Bottom line I stocked. Is there any function for this in autocad ?&lt;/P&gt;&lt;P&gt;when I look at my code I just struggled with pure string. I thought maybe there is something in autocad which give developer this option. Like the way we input dimension in command prompt.&lt;/P&gt;&lt;P&gt;Any Advice or tip would be appreciated already.&lt;/P&gt;&lt;P&gt;Janet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2011 02:32:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/imperial-input-from-user-in-foot-inch/m-p/3141804#M59479</guid>
      <dc:creator>JanetDavidson</dc:creator>
      <dc:date>2011-08-31T02:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: Imperial input from user in Foot Inch .</title>
      <link>https://forums.autodesk.com/t5/net-forum/imperial-input-from-user-in-foot-inch/m-p/3142228#M59480</link>
      <description>&lt;P&gt;I looked into something like this about 2 years ago because our MicroStation user really don't like the foot/inch input method in AutoCAD. ADN support said there's nothing built in.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MicroStation's input method handles feet, inches, and fractions all from the number pad. 10'-1 1/2" inches is entered as:&lt;/P&gt;&lt;P&gt;10..1 1/2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Makes it real easy with out having to hit the alpha keys on the keyboard.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If AutoCAD has any input method like this I would really love to hear about it also.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2011 12:55:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/imperial-input-from-user-in-foot-inch/m-p/3142228#M59480</guid>
      <dc:creator>michael_robertson</dc:creator>
      <dc:date>2011-08-31T12:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: Imperial input from user in Foot Inch .</title>
      <link>https://forums.autodesk.com/t5/net-forum/imperial-input-from-user-in-foot-inch/m-p/3142254#M59481</link>
      <description>&lt;P&gt;Mike ,&lt;/P&gt;&lt;P&gt;Thanks for heads up. I am pretty sure some people wrote something about it. Just it is a matter of sharing experiences.&lt;/P&gt;&lt;P&gt;At least now I know I should not&amp;nbsp;look into object browser. I have to try to write it down from scratch unless somebody wrote it already.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Janet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2011 13:18:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/imperial-input-from-user-in-foot-inch/m-p/3142254#M59481</guid>
      <dc:creator>JanetDavidson</dc:creator>
      <dc:date>2011-08-31T13:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: Imperial input from user in Foot Inch .</title>
      <link>https://forums.autodesk.com/t5/net-forum/imperial-input-from-user-in-foot-inch/m-p/3142834#M59482</link>
      <description>&lt;P&gt;Autodesk.AutoCAD.Runtime.Converter.DistanceToString(Dist as double, units as DistanceUnitFormat, precision as integer) as string&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2011 17:51:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/imperial-input-from-user-in-foot-inch/m-p/3142834#M59482</guid>
      <dc:creator>chiefbraincloud</dc:creator>
      <dc:date>2011-08-31T17:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: Imperial input from user in Foot Inch .</title>
      <link>https://forums.autodesk.com/t5/net-forum/imperial-input-from-user-in-foot-inch/m-p/3142990#M59483</link>
      <description>&lt;P&gt;Thanks Chief,&lt;/P&gt;&lt;P&gt;First I didn't know about this at all. Really appreciated.&lt;/P&gt;&lt;P&gt;But the question is how you cotrol user input on a from&amp;nbsp; data entry , Not at command prompt&amp;nbsp;?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Janet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2011 19:07:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/imperial-input-from-user-in-foot-inch/m-p/3142990#M59483</guid>
      <dc:creator>JanetDavidson</dc:creator>
      <dc:date>2011-08-31T19:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: Imperial input from user in Foot Inch .</title>
      <link>https://forums.autodesk.com/t5/net-forum/imperial-input-from-user-in-foot-inch/m-p/3143022#M59484</link>
      <description>&lt;P&gt;That is what it is for.&amp;nbsp; It won't work at a command line prompt unless you always allow Arbitrary input and parse the result autocad gives you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You need to handle the .Leave event on the TextBox control (or whatever control your users are entering the length information), then pass the (numeric) string from the control to the Converter function and replace the controls text with the text returned by the converter.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2011 19:22:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/imperial-input-from-user-in-foot-inch/m-p/3143022#M59484</guid>
      <dc:creator>chiefbraincloud</dc:creator>
      <dc:date>2011-08-31T19:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: Imperial input from user in Foot Inch .</title>
      <link>https://forums.autodesk.com/t5/net-forum/imperial-input-from-user-in-foot-inch/m-p/3143062#M59485</link>
      <description>&lt;P&gt;&lt;img id="womanwink" class="emoticon emoticon-womanwink" src="https://forums.autodesk.com/i/smilies/16x16_woman-wink.png" alt="Woman Wink" title="Woman Wink" /&gt;&lt;/P&gt;&lt;P&gt;Got you. I will try and let you know in a few hours.&lt;/P&gt;&lt;P&gt;Thanks chief.&lt;/P&gt;&lt;P&gt;Hope Mike is reading this as well.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Janet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2011 19:49:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/imperial-input-from-user-in-foot-inch/m-p/3143062#M59485</guid>
      <dc:creator>JanetDavidson</dc:creator>
      <dc:date>2011-08-31T19:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: Imperial input from user in Foot Inch .</title>
      <link>https://forums.autodesk.com/t5/net-forum/imperial-input-from-user-in-foot-inch/m-p/3143064#M59486</link>
      <description>&lt;P&gt;BTW,&amp;nbsp;&amp;nbsp;It won't&amp;nbsp;do any good for Mike's microstation example (10..1 1/2) because it requires a Double, but it would turn 121.5 into (10'-1 1/2")&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2011 19:54:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/imperial-input-from-user-in-foot-inch/m-p/3143064#M59486</guid>
      <dc:creator>chiefbraincloud</dc:creator>
      <dc:date>2011-08-31T19:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: Imperial input from user in Foot Inch .</title>
      <link>https://forums.autodesk.com/t5/net-forum/imperial-input-from-user-in-foot-inch/m-p/3143346#M59487</link>
      <description>&lt;P&gt;Chief , it is &amp;nbsp;working like a charm. Yeaaaaaaaaaaaaaaaaaah!!&lt;/P&gt;&lt;P&gt;I almost wrote 150 lines of code to do that and still buggy.&lt;/P&gt;&lt;P&gt;Really appreciated.&lt;/P&gt;&lt;P&gt;Without you guys here I should've been fired by far. &lt;img id="womansurprised" class="emoticon emoticon-womansurprised" src="https://forums.autodesk.com/i/smilies/16x16_woman-surprised.png" alt="Woman Surprised" title="Woman Surprised" /&gt;&lt;/P&gt;&lt;P&gt;Regards, and all the best&lt;/P&gt;&lt;P&gt;Janet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2011 00:32:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/imperial-input-from-user-in-foot-inch/m-p/3143346#M59487</guid>
      <dc:creator>JanetDavidson</dc:creator>
      <dc:date>2011-09-01T00:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: Imperial input from user in Foot Inch .</title>
      <link>https://forums.autodesk.com/t5/net-forum/imperial-input-from-user-in-foot-inch/m-p/3302113#M59488</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/468374"&gt;@chiefbraincloud&lt;/a&gt; wrote:&lt;BR /&gt;&lt;P&gt;Autodesk.AutoCAD.Runtime.Converter.DistanceToString(Dist as double, units as DistanceUnitFormat, precision as integer) as string&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Can anyone explain how the integers relate to precision?&amp;nbsp; I mean does a 1 mean 1/2" precision, a 2 mean 1/4" precision, etc?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I make it the same as the precision specified in the units dialog?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;</description>
      <pubDate>Sun, 22 Jan 2012 14:53:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/imperial-input-from-user-in-foot-inch/m-p/3302113#M59488</guid>
      <dc:creator>Keith.Brown</dc:creator>
      <dc:date>2012-01-22T14:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: Imperial input from user in Foot Inch .</title>
      <link>https://forums.autodesk.com/t5/net-forum/imperial-input-from-user-in-foot-inch/m-p/3302123#M59490</link>
      <description>&lt;P&gt;Ok, I think I figured it out.&amp;nbsp; the integer required should be the denominator of the fraction of the precision required.&amp;nbsp; For example, 1/4" precision would require the integer 4 and 1/256" precision would require the integer 256.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want to use the drawing units,&amp;nbsp;&amp;nbsp; just use:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Autodesk.AutoCAD.Runtime.Converter.DistanceToStrin​g(Dist as double) as string&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Jan 2012 15:23:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/imperial-input-from-user-in-foot-inch/m-p/3302123#M59490</guid>
      <dc:creator>Keith.Brown</dc:creator>
      <dc:date>2012-01-22T15:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: Imperial input from user in Foot Inch .</title>
      <link>https://forums.autodesk.com/t5/net-forum/imperial-input-from-user-in-foot-inch/m-p/3302333#M59491</link>
      <description>&lt;P&gt;I had a similar situation once.&amp;nbsp; I found that the best solution was using Regular Expressions.&amp;nbsp; That way you can parse whatever the user puts in your text box.&amp;nbsp; In my case I restricted the units to inches, but they where free to write some like 10'-1 5/16", 5/32", 10" or 8.75". &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2012 04:58:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/imperial-input-from-user-in-foot-inch/m-p/3302333#M59491</guid>
      <dc:creator>HJohn1</dc:creator>
      <dc:date>2012-01-23T04:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: Imperial input from user in Foot Inch .</title>
      <link>https://forums.autodesk.com/t5/net-forum/imperial-input-from-user-in-foot-inch/m-p/3874655#M59492</link>
      <description>&lt;P&gt;Recently I used Converter.DistanceToString method and I would like to clarify two points for others.&lt;/P&gt;&lt;P&gt;1) Precision is integer from 0 to 8 (LUPREC equivalent). E.g.&amp;nbsp;1/4" is 2.&lt;/P&gt;&lt;P&gt;2) This method return value affected by AutoCAD variable DIMZIN. This variable controls suppression of zero. You have to temporary change it to your needs and then revers it back.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2013 22:31:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/imperial-input-from-user-in-foot-inch/m-p/3874655#M59492</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-04-17T22:31:28Z</dc:date>
    </item>
  </channel>
</rss>

