<?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 Text height in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Text-height/m-p/11227#M37233</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;STW(textString)/1000*GLOB_SCALE will give me the length of the TEXT2 box, I discovered after a bit of pain (as opposed to the the length taken by the characters). &lt;BR /&gt;
&lt;BR /&gt;
Now in the vertical dimension, &lt;BR /&gt;
   (setFontSize*25.4/72)*GLOB_SCALE/1000&lt;BR /&gt;
will give me the height of the character itself and I am trying to figure out what the height of the text box is. &lt;BR /&gt;
&lt;BR /&gt;
Is there supposed to be any function, or constant (for every single font?), or is there some other GDL trick that will give me the height of the text box?&lt;/T&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 05 Jul 2005 17:24:19 GMT</pubDate>
    <dc:creator>Ignacio Azpiazu</dc:creator>
    <dc:date>2005-07-05T17:24:19Z</dc:date>
    <item>
      <title>Text height</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Text-height/m-p/11227#M37233</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;STW(textString)/1000*GLOB_SCALE will give me the length of the TEXT2 box, I discovered after a bit of pain (as opposed to the the length taken by the characters). &lt;BR /&gt;
&lt;BR /&gt;
Now in the vertical dimension, &lt;BR /&gt;
   (setFontSize*25.4/72)*GLOB_SCALE/1000&lt;BR /&gt;
will give me the height of the character itself and I am trying to figure out what the height of the text box is. &lt;BR /&gt;
&lt;BR /&gt;
Is there supposed to be any function, or constant (for every single font?), or is there some other GDL trick that will give me the height of the text box?&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 05 Jul 2005 17:24:19 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Text-height/m-p/11227#M37233</guid>
      <dc:creator>Ignacio Azpiazu</dc:creator>
      <dc:date>2005-07-05T17:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: Text height</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Text-height/m-p/11228#M37234</link>
      <description>Ignacio,&lt;BR /&gt;
I think you are referring to the request function &lt;BR /&gt;
REQUEST (Height_of_style,name,height)&lt;BR /&gt;
This is in the appendix Special Functions.&lt;BR /&gt;
Thank you,&lt;BR /&gt;
Peter Devlin</description>
      <pubDate>Tue, 05 Jul 2005 17:37:41 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Text-height/m-p/11228#M37234</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-07-05T17:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: Text height</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Text-height/m-p/11229#M37235</link>
      <description>&lt;BLOCKQUOTE&gt;Ignacio wrote:&lt;BR /&gt;STW(textString)/1000*GLOB_SCALE will give me the length of the TEXT2 box, I discovered after a bit of pain (as opposed to the the length taken by the characters). &lt;BR /&gt;
&lt;BR /&gt;
Now in the vertical dimension, &lt;BR /&gt;
   (setFontSize*25.4/72)*GLOB_SCALE/1000&lt;BR /&gt;
will give me the height of the character itself and I am trying to figure out what the height of the text box is. &lt;BR /&gt;
&lt;BR /&gt;
Is there supposed to be any function, or constant (for every single font?), or is there some other GDL trick that will give me the height of the text box?&lt;/BLOCKQUOTE&gt;

Igancio,&lt;BR /&gt;
This has also always been toublesome for me as well. I notice that you are dividing by "72" presumably to convert to "points". Archicad's default to mm has always confused me. I hope some in the forum can shed some light on the best ways ro handle font sizes by points vs. mm...There just isn't any common standard that i have ever seen.&lt;BR /&gt;
&lt;BR /&gt;
Thanks, &lt;BR /&gt;
Dan K</description>
      <pubDate>Tue, 05 Jul 2005 22:15:25 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Text-height/m-p/11229#M37235</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-07-05T22:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: Text height</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Text-height/m-p/11230#M37236</link>
      <description>Text in plans have been measured always in mm (in DE, of course).&lt;BR /&gt;
&lt;BR /&gt;
Ignacio,&lt;BR /&gt;
try the additional requestable values of "REQUEST (Height_of_style,...". There are 2 new since 8.0&lt;BR /&gt;
&lt;BR /&gt;
Try also:&lt;BR /&gt;
&lt;BR /&gt;
REQUEST ("Style_info",...&lt;BR /&gt;
&lt;BR /&gt;
and&lt;BR /&gt;
&lt;BR /&gt;
REQUEST ("TEXTBLOCK_INFO", ...&lt;BR /&gt;
&lt;BR /&gt;
Frank</description>
      <pubDate>Tue, 05 Jul 2005 23:13:14 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Text-height/m-p/11230#M37236</guid>
      <dc:creator>Frank Beister</dc:creator>
      <dc:date>2005-07-05T23:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: Text height</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Text-height/m-p/11231#M37237</link>
      <description>Thank you *very* much Peter and Frank. I was not seeing the way out. &lt;BR /&gt;
&lt;BR /&gt;
Frank: &lt;BR /&gt;
American users know what a 12 or a 9 point is; the only practical result of translating the interface to 4 mm vs 3 mm would be an obscene waste of time and headaches for the user; while translating the interface for the font size to American draftman's inches would be headaches for me (since a dimension parameter will show a 1/8" font as an ugly 0'-1/8", the interface would need to use real numbers or text VALUES to represent inches). Points are goood. (I don't know where it is that one sets it, but my Text tool is dimensioned in points.) &lt;BR /&gt;
&lt;BR /&gt;
Dan: &lt;BR /&gt;
- The font 'point' is 1/72 of an inch. &lt;BR /&gt;
- An inch is 25.4 mm. &lt;BR /&gt;
- GDL sets font size in paper size, that is regardless of the drawing plan scale, so that a 3 mm text will print as 3 mm text no matter what scale you are using for your drawing. So that if you want to know the equivalent 'model dimension' of your text, you need to multiply that by GLOB_SCALE (which is the model/drawing ratio; you can check in the Scale Settings in the ArchiCAD window, or if you are at say 1/8"=1' it is 8 parts in an inch *12 inches in a foot=96). &lt;BR /&gt;
- ArchiCAD may display ft-in (even in the parameters in the Object settings), but GDL thinks m. It helps, and also helps in sowing confusion, that you can actually script ft-in values --but if you ask a script to PRINT its thoughts about a dimension parameter, you'll get meters/metres no matter what your dimension preferences are. Ft-in are an interface display thing: so once you GDL-calculated a dimension in meters, you don't want to try to convert that to ft-in by doing math in GDL unless you want to mess up everything beyond repair. &lt;BR /&gt;
&lt;BR /&gt;
Soooo, if you are needing the model ft-in height of a font size expressed in points, you need to do  &lt;BR /&gt;
(fontSize/72*1")*GLOB_SCALE, which is easy to read in ft-in, or&lt;BR /&gt;
(fontSize/72*0.0254)*GLOB_SCALE, which is what a metric guy would do, or&lt;BR /&gt;
(fontSize/72*25.4)*GLOB_SCALE/1000, which is my temporarily preferred hybrid only because I am trying to learn to think ft-in and make it readable for a ft-in guy, but deep inside I am still metric (err, I am thinking that actually the second method may be the more readable for a ft-in guy, apart from making more arithmetical sense). &lt;BR /&gt;
&lt;BR /&gt;
I have been metric all my life, and started working in ft-in about two years ago. Operations in ft-in are a mess by themselves, but when you add to that mm instead of m and 'paper scale' as opposed to model dimensions, oh boy. There are very good reasons for each of those complications of course. But it gets hard when you are trying to learn a new function from the Hungarian English manual, and can't keep track of what 'height' they are talking about at each point (text height or box height, paper scale or real dimensions, text mm or GDL m, which of the damned eight height values are we talking now? Once you've learned the functions you don't have that problem any more --you only have it when you are learning, which is when you happen to need to use the manual).</description>
      <pubDate>Wed, 06 Jul 2005 03:11:52 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Text-height/m-p/11231#M37237</guid>
      <dc:creator>Ignacio Azpiazu</dc:creator>
      <dc:date>2005-07-06T03:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: Text height</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Text-height/m-p/11232#M37238</link>
      <description>AFAIK is the length of typeset-points 0.23mm. A lot of years ago (word 2.0 or so.) I proofed this by measuring and it was this unit.&lt;BR /&gt;

 &lt;BLOCKQUOTE&gt;but if you ask a script to PRINT its thoughts about a dimension parameter, you'll get meters/metres no matter what your dimension preferences are.&lt;/BLOCKQUOTE&gt;
Are you familar wih the REQUEST commands? There are several REQUESTs to get the format of the unit-settings, part of the preferences in option menu.Since 8.0 you can ask for the units of the dialog boxes too. The return value is a string, which you can use directly in the STR-command:
&lt;PRE&gt;format = ""
zahl = 60.55
dimension="Linear_dimension"
sts = REQUEST (dimension, "",format)
TEXT2 0, 0, dimension + " [" + format +"] " + STR (format, zahl)
&lt;/PRE&gt;</description>
      <pubDate>Wed, 06 Jul 2005 06:18:21 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Text-height/m-p/11232#M37238</guid>
      <dc:creator>Frank Beister</dc:creator>
      <dc:date>2005-07-06T06:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: Text height</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Text-height/m-p/11233#M37239</link>
      <description>&lt;BLOCKQUOTE&gt;F. wrote:&lt;BR /&gt; &lt;BLOCKQUOTE&gt;but if you ask a script to PRINT its thoughts about a dimension parameter, you'll get meters/metres no matter what your dimension preferences are.&lt;/BLOCKQUOTE&gt;
Are you familar wih the REQUEST commands? &lt;/BLOCKQUOTE&gt;

Today I am working on the same type of problem, and I guess the only way out is scripting the math, which is not rocket science but is not fun (on the positive side, I will re-use that a lot): this object distributes thingies at a regular interval, the interval determined by the script, and I need it to have a TEXT2 saying 'One thingy every 1 3/8" '&lt;BR /&gt;
&lt;BR /&gt;
1 3/8" is a dimension rounded to an eighth of an inch (the true dimension may be say 1 13/32", whatever). So that depending on the dimension the text may end up giving full inches, halfs, quarters, or eighths. &lt;BR /&gt;
&lt;BR /&gt;
In the metric world, I would just use STR and state the dimension with so many decimals. In the feet-and-inch world I need to do the math in the script and convert that into a string. The REQUEST you are talking about will let me know that the user has set such and such unit for displaying linear dimensions, but this is a totally different story (this should display 1 3/8" whatever the user is using for linear dimensions). While I can use feet-inches for scripting input values (HOTSPOT2 3/4", 2"-6") I have no command in GDL that will allow me to say "calculate this dimension and give me the result in feet and fractional inches to an eighth", right?</description>
      <pubDate>Mon, 25 Jul 2005 23:13:39 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Text-height/m-p/11233#M37239</guid>
      <dc:creator>Ignacio Azpiazu</dc:creator>
      <dc:date>2005-07-25T23:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: Text height</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Text-height/m-p/11234#M37240</link>
      <description>Ignacio,&lt;BR /&gt;
I may have completely misunderstood your question but&lt;BR /&gt;
can't you use the second form of the STR() function to do&lt;BR /&gt;
what you want ?&lt;BR /&gt;
Peter Devlin</description>
      <pubDate>Mon, 25 Jul 2005 23:54:35 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Text-height/m-p/11234#M37240</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-07-25T23:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: Text height</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Text-height/m-p/11235#M37241</link>
      <description>&lt;BLOCKQUOTE&gt;Peter wrote:&lt;BR /&gt;Ignacio,&lt;BR /&gt;
I may have completely misunderstood your question but&lt;BR /&gt;
can't you use the second form of the STR() function to do&lt;BR /&gt;
what you want ?&lt;BR /&gt;
Peter Devlin&lt;/BLOCKQUOTE&gt;

Ooops! I had completely missed that second form. I just looked it up and it seems like it does exactly that, or almost exactly that. Great. Thanks.</description>
      <pubDate>Tue, 26 Jul 2005 00:13:31 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Text-height/m-p/11235#M37241</guid>
      <dc:creator>Ignacio Azpiazu</dc:creator>
      <dc:date>2005-07-26T00:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: Text height</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Text-height/m-p/11236#M37242</link>
      <description>You cann add a &lt;B&gt;exta_accuracy_string&lt;/B&gt; to the STR{2} command, but it will round only in the metric. You will have to do math again. &lt;E&gt;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/E&gt;</description>
      <pubDate>Tue, 26 Jul 2005 06:41:58 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Text-height/m-p/11236#M37242</guid>
      <dc:creator>Frank Beister</dc:creator>
      <dc:date>2005-07-26T06:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: Text height</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Text-height/m-p/11237#M37243</link>
      <description>&lt;BLOCKQUOTE&gt;F. wrote:&lt;BR /&gt;You cann add a &lt;B&gt;exta_accuracy_string&lt;/B&gt; to the STR{2} command, but it will round only in the metric. You will have to do math again. &lt;E&gt;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/E&gt;&lt;/BLOCKQUOTE&gt;

&lt;BR /&gt;
I am not understanding the explanation and use of 'precision' for feet and inches. In the examples in the manual, pasted below: how does 0.16 result in rounding to 5/8", 0.64 in rounding to 39/64"?&lt;BR /&gt;
&lt;BR /&gt;
 &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
 flags (for ffi, fdi, fi):&lt;BR /&gt;
'0'      display 0 inches &lt;BR /&gt;
&lt;BR /&gt;
 field_width: unsigned decimal integer, the minimum number of characters to generate&lt;BR /&gt;
 precision: unsigned decimal integer, the number of fraction digits to generate&lt;BR /&gt;
&lt;BR /&gt;
 conv_spec (conversion specifier):&lt;BR /&gt;
ffi: feet &amp;amp; fractional inches&lt;BR /&gt;
fi: fractional inches&lt;BR /&gt;
&lt;BR /&gt;
 Examples:&lt;BR /&gt;
h = 23&lt;BR /&gt;
nr = 0.345678&lt;BR /&gt;
TEXT2 0, h-6, STR ("%ffi", nr) !1'-2"&lt;BR /&gt;
TEXT2 0, h-7, STR ("%0.16ffi", nr) !1'-1 5/8"&lt;BR /&gt;
TEXT2 0, h-10, STR ("%0.64fi", nr)  !13 39/64"</description>
      <pubDate>Tue, 26 Jul 2005 16:19:06 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Text-height/m-p/11237#M37243</guid>
      <dc:creator>Ignacio Azpiazu</dc:creator>
      <dc:date>2005-07-26T16:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: Text height</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Text-height/m-p/11238#M37244</link>
      <description>&lt;BLOCKQUOTE&gt;Ignacio wrote:&lt;BR /&gt;I am not understanding the explanation and use of 'precision' for feet and inches. In the examples in the manual, pasted below: how does 0.16 result in rounding to 5/8", 0.64 in rounding to 39/64"?&lt;/BLOCKQUOTE&gt;

For fractional formats, the number after the point represents the denominator. 4=quarters, 16=16ths, 64=64ths. In the example 10/16" gets reduced to 5/8".</description>
      <pubDate>Tue, 26 Jul 2005 17:36:31 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Text-height/m-p/11238#M37244</guid>
      <dc:creator>James Murray</dc:creator>
      <dc:date>2005-07-26T17:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: Text height</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Text-height/m-p/11239#M37245</link>
      <description>&lt;BLOCKQUOTE&gt;James wrote:&lt;BR /&gt;For fractional formats, the number after the point represents the denominator. 4=quarters, 16=16ths, 64=64ths. In the example 10/16" gets reduced to 5/8".&lt;/BLOCKQUOTE&gt;

Great. Wonderful. Thanks very much to everybody. Phew.</description>
      <pubDate>Tue, 26 Jul 2005 17:52:47 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Text-height/m-p/11239#M37245</guid>
      <dc:creator>Ignacio Azpiazu</dc:creator>
      <dc:date>2005-07-26T17:52:47Z</dc:date>
    </item>
  </channel>
</rss>

