<?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 Using text in a GDL object. in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Using-text-in-a-GDL-object/m-p/111975#M36357</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;I have tried making objects with text.  I have figured how to place it and make a certain point the placement point, but I cannot figure out how to get the text to have the right size and pen #.  I am trying to make the object parimetric....  I am making an floor elevation marker and the text goes real huge and has the wrong pen.&lt;/T&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 30 Jun 2005 15:08:33 GMT</pubDate>
    <dc:creator>toofuerte</dc:creator>
    <dc:date>2005-06-30T15:08:33Z</dc:date>
    <item>
      <title>Using text in a GDL object.</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Using-text-in-a-GDL-object/m-p/111975#M36357</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;I have tried making objects with text.  I have figured how to place it and make a certain point the placement point, but I cannot figure out how to get the text to have the right size and pen #.  I am trying to make the object parimetric....  I am making an floor elevation marker and the text goes real huge and has the wrong pen.&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 30 Jun 2005 15:08:33 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Using-text-in-a-GDL-object/m-p/111975#M36357</guid>
      <dc:creator>toofuerte</dc:creator>
      <dc:date>2005-06-30T15:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: Using text in a GDL object.</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Using-text-in-a-GDL-object/m-p/111976#M36358</link>
      <description>Are you using a plain TEXT2 element? If so,&lt;BR /&gt;
&lt;BR /&gt;
The pen is set by a PEN directive before the TEXT2.&lt;BR /&gt;

&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;!! a parameter fuertePen of type pen

PEN fuertePen
TEXT2 x, y, 'Read This'

&lt;/PRE&gt;

The size comes from the STYLE definition. Text size is in mm. Typically you'd have a real number parameter (let's say text_pt) for the point size, then convert it.&lt;BR /&gt;

&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;!! Points to mm
text_size=text_pt/2.8346

DEFINE STYLE 'text_style' text_font, text_size, 5, 0 !center anchor
&lt;/PRE&gt;

You can define as many styles as you want. Before placing text of that style you need&lt;BR /&gt;

&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;SET STYLE 'text_style'
&lt;/PRE&gt;

HTH. If you're talking RICHTEXT2 and PARAGRAPH, I would need to review my notes. &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_wink.gif" style="display : inline;" /&gt;</description>
      <pubDate>Thu, 30 Jun 2005 17:10:51 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Using-text-in-a-GDL-object/m-p/111976#M36358</guid>
      <dc:creator>James Murray</dc:creator>
      <dc:date>2005-06-30T17:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: Using text in a GDL object.</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Using-text-in-a-GDL-object/m-p/111977#M36359</link>
      <description>Thanks James for the reply.  I have been using the text2, by drawing and then dragging from ArchiCAD 2D into the 2Dscript then editing the text to be parimetric, but when I do that it doesn't work the text changes.</description>
      <pubDate>Thu, 30 Jun 2005 17:31:19 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Using-text-in-a-GDL-object/m-p/111977#M36359</guid>
      <dc:creator>toofuerte</dc:creator>
      <dc:date>2005-06-30T17:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: Using text in a GDL object.</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Using-text-in-a-GDL-object/m-p/111978#M36360</link>
      <description>Are you on AC9? In 9 dragging text makes a RICHTEXT2, with the attendant PARAGRAPH, TEXTBLOCK, AND DEFINE STYLE{2}.&lt;BR /&gt;
&lt;BR /&gt;
It's a very roundabout way to place a simple text element. RICHTEXT2 is made from a TEXTBLOCK, which is made from a PARAGRAPH, which uses a STYLE{2}. It's the GDL implementation of the complex text entity which debuted in 9.&lt;BR /&gt;
&lt;BR /&gt;
If you are doing a simple line of text I would work with STYLE and TEXT2. Just to make it compact, the whole thing is&lt;BR /&gt;

&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;!! Points to mm 
text_size=text_pt/2.8346 

DEFINE STYLE 'text_style' text_font, text_size, 5, 0 !center anchor

SET STYLE 'text_style'
PEN fuertePen 

TEXT2 x, y, 'Read This'
&lt;/PRE&gt;</description>
      <pubDate>Thu, 30 Jun 2005 18:09:45 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Using-text-in-a-GDL-object/m-p/111978#M36360</guid>
      <dc:creator>James Murray</dc:creator>
      <dc:date>2005-06-30T18:09:45Z</dc:date>
    </item>
  </channel>
</rss>

