<?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: How to set Working Units within a label in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/How-to-set-Working-Units-within-a-label/m-p/200208#M14459</link>
    <description>kevin:&lt;BR /&gt;
&lt;BR /&gt;
Also check out the Request functions, from page 293 of the AC 16 GDL Reference Guide:&lt;BR /&gt;
With these requests, you can learn the dimension formats set in the Options/Preferences/Dimensions and Calculation Units dialog boxes. These requests return a format string that can be used as the first parameter in the STR () function.&lt;BR /&gt;
&lt;BR /&gt;
David</description>
    <pubDate>Thu, 04 Oct 2012 11:24:43 GMT</pubDate>
    <dc:creator>David Maudlin</dc:creator>
    <dc:date>2012-10-04T11:24:43Z</dc:date>
    <item>
      <title>How to set Working Units within a label</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/How-to-set-Working-Units-within-a-label/m-p/200206#M14457</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;I modified a simple label to read a particular parameter of an object, in this case the mounting height. I am getting the label to read the correct height, however it is showing in meters rather than inches.&lt;BR /&gt;
&lt;BR /&gt;
So if the mounting height of the object is set to 4'-0" the label is showing up as 1.2192 and I'd like it to show up as 48.&lt;BR /&gt;
&lt;BR /&gt;
The Working Units of the project are set to feet &amp;amp; fractional inches and everything else I have shows up as feet and fractional inches. I know there are other labels out there that do similar things and return the measurement in the correct format so I am assuming there is a way to tell the label to convert the units, I just can't find any documentation to that effect. And I haven't been able to find this looking through the other labels.&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 03 Oct 2012 18:08:49 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/How-to-set-Working-Units-within-a-label/m-p/200206#M14457</guid>
      <dc:creator>kevin b</dc:creator>
      <dc:date>2012-10-03T18:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to set Working Units within a label</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/How-to-set-Working-Units-within-a-label/m-p/200207#M14458</link>
      <description>GDL works in meters internally so if you want some other output, you must do some conversion. Perhaps, these work for you:&lt;BR /&gt;

&lt;PRE&gt;nr = 0.345678 

h = 23 !! to move location in example only
TEXT2 0, h, STR ("%m", nr)          ! 0.346
TEXT2 0, h-1, STR ("%#10.2m", nr)   ! 35
TEXT2 0, h-2, STR ("%.4cm", nr)     ! 34.5678
TEXT2 0, h-3, STR ("%12.4cm", nr)   ! 34.5678
TEXT2 0, h-4, STR ("%.6mm", nr)     ! 345.678000
TEXT2 0, h-5, STR ("%+15e", nr)     ! +3.456780e-01  - nan??
TEXT2 0, h-6, STR ("%ffi", nr)      ! 1'-2"
TEXT2 0, h-7, STR ("%0.16ffi", nr)  ! 1'-1 5/8"
TEXT2 0, h-8, STR ("% .3fdi", nr)   ! 1'-1.609"
TEXT2 0, h-9, STR ("% -10.4df", nr) ! 1.1341'
TEXT2 0, h-10, STR ("%0.64fi", nr)  ! 13 39/64"
TEXT2 0, h-11, STR ("%+12.4di", nr) ! +13.6094"
TEXT2 0, h-12, STR ("%#.3sqm", nr)  ! 346
TEXT2 0, h-13, STR ("%+sqcm", nr)	 ! +3,456.78 
TEXT2 0, h-14, STR ("% .2sqmm", nr) ! 345,678.00 
TEXT2 0, h-15, STR ("%-12sqf", nr)  ! 3.72 
TEXT2 0, h-16, STR ("%10sqi", nr)   ! 535.80

alpha = 88.657 
TEXT2 0, h-17, STR ("%+10.3dd", alpha) ! +88.657°
TEXT2 0, h-18, STR ("%.1dms", alpha)   ! 88°39'
TEXT2 0, h-19, STR ("%.2dms", alpha)   ! 88°39'25"
TEXT2 0, h-20, STR ("%10.4gr", alpha)  ! 98.5078G
TEXT2 0, h-21, STR ("%rad", alpha)     ! 1.55R
TEXT2 0, h-22, STR ("%.2surv", alpha)  ! N 1°20'35" E&lt;/PRE&gt;</description>
      <pubDate>Wed, 03 Oct 2012 19:05:53 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/How-to-set-Working-Units-within-a-label/m-p/200207#M14458</guid>
      <dc:creator>Erich</dc:creator>
      <dc:date>2012-10-03T19:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to set Working Units within a label</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/How-to-set-Working-Units-within-a-label/m-p/200208#M14459</link>
      <description>kevin:&lt;BR /&gt;
&lt;BR /&gt;
Also check out the Request functions, from page 293 of the AC 16 GDL Reference Guide:&lt;BR /&gt;
With these requests, you can learn the dimension formats set in the Options/Preferences/Dimensions and Calculation Units dialog boxes. These requests return a format string that can be used as the first parameter in the STR () function.&lt;BR /&gt;
&lt;BR /&gt;
David</description>
      <pubDate>Thu, 04 Oct 2012 11:24:43 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/How-to-set-Working-Units-within-a-label/m-p/200208#M14459</guid>
      <dc:creator>David Maudlin</dc:creator>
      <dc:date>2012-10-04T11:24:43Z</dc:date>
    </item>
  </channel>
</rss>

