<?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: Please Help. Building simple parametric formula in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Please-Help-Building-simple-parametric-formula/m-p/126040#M14142</link>
    <description>I would use the layers in 2d symbol (16 possible layers, means 16 different bits of text).&lt;BR /&gt;
&lt;BR /&gt;
Then set up some parameters with on/off button. For example: pinfo = projectinfo parameter&lt;BR /&gt;
&lt;BR /&gt;
With this:
&lt;PRE&gt;if pinfo = 1 then fragment2 5,1&lt;/PRE&gt;
you turn on layer 5&lt;BR /&gt;
&lt;BR /&gt;
Check the GDL reference guide for more help on the fragment2 code.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Easier would be to just draw the stamp with text, save the view in your template and link the views as needed on master layouts. But maybe that's just how we work in our office.</description>
    <pubDate>Fri, 08 Mar 2013 15:13:17 GMT</pubDate>
    <dc:creator>Erwin Edel</dc:creator>
    <dc:date>2013-03-08T15:13:17Z</dc:date>
    <item>
      <title>Please Help. Building simple parametric formula</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Please-Help-Building-simple-parametric-formula/m-p/126038#M14140</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;Please Help. Building simple parametric formula.&lt;BR /&gt;
&lt;BR /&gt;
Hi guys.&lt;BR /&gt;
I have a little challenge from my boss today.&lt;BR /&gt;
&lt;BR /&gt;
Using GLD in archicad, I have to create a simple table of contents with 3 columns under each other, taking parametric information from the project info... project name... number and issue date.&lt;BR /&gt;
but also, an option in the gdl, that I can turn off one or more of the parametric columns.&lt;BR /&gt;
&lt;BR /&gt;
I really want to do a absolute simple 3 line columns as test and I know a pro could do this in 20 seconds.&lt;BR /&gt;
&lt;BR /&gt;
But I would be very thankful if some one could show me how to do this or point me to a tutorial some where on the internet, where this is done.&lt;BR /&gt;
&lt;BR /&gt;
I would love to be able to show my boss this evening a finished parametric date formula... &lt;E&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/E&gt;&lt;BR /&gt;
&lt;BR /&gt;
Please help.&lt;BR /&gt;
Ian &lt;E&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/E&gt;&lt;/R&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 08 Mar 2013 08:53:23 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Please-Help-Building-simple-parametric-formula/m-p/126038#M14140</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-08T08:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: Please Help. Building simple parametric formula</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Please-Help-Building-simple-parametric-formula/m-p/126039#M14141</link>
      <description>Said that it is NOT SO easy, 'coz you need to define the font size, font stile, column width and so on, a little sketch of the desired result would be of help.&lt;BR /&gt;
&lt;BR /&gt;
You can start with this very basic 2D Script:&lt;BR /&gt;
&lt;BR /&gt;
TEXT2 0,   0,"&amp;lt;PROJECTNAME&amp;gt;"&lt;BR /&gt;
TEXT2 0, -.5,"&amp;lt;PROJECTNUMBER&amp;gt;"&lt;BR /&gt;
TEXT2 0,  -1,"&amp;lt;DATEOFISSUE&amp;gt;"</description>
      <pubDate>Fri, 08 Mar 2013 13:33:50 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Please-Help-Building-simple-parametric-formula/m-p/126039#M14141</guid>
      <dc:creator>rocorona</dc:creator>
      <dc:date>2013-03-08T13:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: Please Help. Building simple parametric formula</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Please-Help-Building-simple-parametric-formula/m-p/126040#M14142</link>
      <description>I would use the layers in 2d symbol (16 possible layers, means 16 different bits of text).&lt;BR /&gt;
&lt;BR /&gt;
Then set up some parameters with on/off button. For example: pinfo = projectinfo parameter&lt;BR /&gt;
&lt;BR /&gt;
With this:
&lt;PRE&gt;if pinfo = 1 then fragment2 5,1&lt;/PRE&gt;
you turn on layer 5&lt;BR /&gt;
&lt;BR /&gt;
Check the GDL reference guide for more help on the fragment2 code.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Easier would be to just draw the stamp with text, save the view in your template and link the views as needed on master layouts. But maybe that's just how we work in our office.</description>
      <pubDate>Fri, 08 Mar 2013 15:13:17 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Please-Help-Building-simple-parametric-formula/m-p/126040#M14142</guid>
      <dc:creator>Erwin Edel</dc:creator>
      <dc:date>2013-03-08T15:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: Please Help. Building simple parametric formula</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Please-Help-Building-simple-parametric-formula/m-p/126041#M14143</link>
      <description>thanks guys.&lt;BR /&gt;
&lt;BR /&gt;
I have tried to create a simple object on plan and then save it as a GDL object.&lt;BR /&gt;
&lt;BR /&gt;
I added the perimeter in the GDL editor for text.size and also text.content, gave the two perimerters the correct function setting.&lt;BR /&gt;
&lt;BR /&gt;
Then put the two function paremeters into the 2d code screen.&lt;BR /&gt;
saved it out and tested. Now when i go into the object settings, i can change the text content no problem, but when i try and change the text size, nothing happens with the text, but the full symbol lines jump up the screen.&lt;BR /&gt;
&lt;BR /&gt;
Here is the code.&lt;BR /&gt;
What am I doing wrong ??&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
!&lt;BR /&gt;
!   Name     : lego.gsm&lt;BR /&gt;
!   Datum    : Montag, 11. März 2013&lt;BR /&gt;
!   Version  : 15.00&lt;BR /&gt;
!   Geschrieben von ArchiCAD &lt;BR /&gt;
!&lt;BR /&gt;
&lt;BR /&gt;
mul2     A/4.517303, B/1.904131&lt;BR /&gt;
add2     -1.974573827986, 3.52979304251&lt;BR /&gt;
pen          1&lt;BR /&gt;
hotspot2 2.502204948105, -3.359909358017&lt;BR /&gt;
hotspot2 5.970700386989, -3.359909358017&lt;BR /&gt;
hotspot2 4.236452667547, -1.625661638576&lt;BR /&gt;
hotspot2 3.496560333429, -1.791415020666&lt;BR /&gt;
hotspot2 4.236452667547, -3.359909358017&lt;BR /&gt;
line_property       0&lt;BR /&gt;
line2    2.502204948105, -3.359909358017, 5.970700386989, -3.359909358017&lt;BR /&gt;
arc2     4.236452667547, -3.359909358017, 1.734247719442,            0,          180&lt;BR /&gt;
define style{2}    "AC_STYLE_1" "Arial",          text_size,      0&lt;BR /&gt;
&lt;BR /&gt;
paragraph		"AC_PRG_18"      2,            0,            0,            0,            1&lt;BR /&gt;
    set style "AC_STYLE_1"&lt;BR /&gt;
        text_content&lt;BR /&gt;
endparagraph&lt;BR /&gt;
paragraph		"AC_PRG_19"      2,            0,            0,            0,            1&lt;BR /&gt;
        ""&lt;BR /&gt;
endparagraph&lt;BR /&gt;
paragraph		"AC_PRG_20"      2,            0,            0,            0,            1&lt;BR /&gt;
        ""&lt;BR /&gt;
endparagraph&lt;BR /&gt;
textblock		"AC_TEXTBLOCK_12" 45.17302629029,      1,            0,            1,            1,            1, &lt;BR /&gt;
        "AC_PRG_18", "AC_PRG_19", "AC_PRG_20"&lt;BR /&gt;
richtext2		1.974573827986, -2.35121304251, "AC_TEXTBLOCK_12"</description>
      <pubDate>Mon, 11 Mar 2013 15:43:12 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Please-Help-Building-simple-parametric-formula/m-p/126041#M14143</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-11T15:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: Please Help. Building simple parametric formula</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Please-Help-Building-simple-parametric-formula/m-p/126042#M14144</link>
      <description>I wanted to create also a simple tabel with 3 polyogn boxes as cells.&lt;BR /&gt;
put text into the 3 cells and created the whole thing as 1 GDL object.&lt;BR /&gt;
I have given each text perimeters to be changes. Now I want to make the size of the cell boxes also parametric.. where in the 2d GLD code, can I do that ?&lt;BR /&gt;
&lt;BR /&gt;
Thanks.&lt;BR /&gt;
Ian&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
!&lt;BR /&gt;
!   Name     : croc.gsm&lt;BR /&gt;
!   Datum    : Montag, 11. März 2013&lt;BR /&gt;
!   Version  : 15.00&lt;BR /&gt;
!   Geschrieben von ArchiCAD &lt;BR /&gt;
!&lt;BR /&gt;
&lt;BR /&gt;
mul2     A/15.875092, B/1.140081&lt;BR /&gt;
add2     -1.15217286815, 10.40127483584&lt;BR /&gt;
pen          1&lt;BR /&gt;
hotspot2 1.15217286815, -9.26119369613&lt;BR /&gt;
hotspot2 6.443870233583, -9.26119369613&lt;BR /&gt;
hotspot2 11.73556759902, -9.26119369613&lt;BR /&gt;
hotspot2 17.02726496445, -9.26119369613&lt;BR /&gt;
hotspot2 17.02726496445, -10.40127483584&lt;BR /&gt;
hotspot2 11.73556759902, -10.40127483584&lt;BR /&gt;
hotspot2 6.443870233583, -10.40127483584&lt;BR /&gt;
hotspot2 1.15217286815, -10.40127483584&lt;BR /&gt;
set fill "Nur Hintergrund-Stift"&lt;BR /&gt;
poly2_b{5}       5,      3,      0,      3,      0,      0, &lt;BR /&gt;
                   0,            0,            1,            0,            0,            1,            0, &lt;BR /&gt;
        6.443870233583, -9.26119369613,      1, &lt;BR /&gt;
        11.73556759902, -9.26119369613,      1, &lt;BR /&gt;
        11.73556759902, -10.40127483584,      1, &lt;BR /&gt;
        6.443870233583, -10.40127483584,      1, &lt;BR /&gt;
        6.443870233583, -9.26119369613,      1&lt;BR /&gt;
set fill "Nur Hintergrund-Stift"&lt;BR /&gt;
poly2_b{5}       5,      3,      0,      3,      0,      0, &lt;BR /&gt;
                   0,            0,            1,            0,            0,            1,            0, &lt;BR /&gt;
        11.73556759902, -9.26119369613,      1, &lt;BR /&gt;
        17.02726496445, -9.26119369613,      1, &lt;BR /&gt;
        17.02726496445, -10.40127483584,      1, &lt;BR /&gt;
        11.73556759902, -10.40127483584,      1, &lt;BR /&gt;
        11.73556759902, -9.26119369613,      1&lt;BR /&gt;
set fill "Nur Hintergrund-Stift"&lt;BR /&gt;
poly2_b{5}       5,      3,      0,      3,      0,      0, &lt;BR /&gt;
                   0,            0,            1,            0,            0,            1,            0, &lt;BR /&gt;
        1.15217286815, -9.26119369613,      1, &lt;BR /&gt;
        6.443870233583, -9.26119369613,      1, &lt;BR /&gt;
        6.443870233583, -10.40127483584,      1, &lt;BR /&gt;
        1.15217286815, -10.40127483584,      1, &lt;BR /&gt;
        1.15217286815, -9.26119369613,      1&lt;BR /&gt;
define style{2}    "AC_STYLE_1" "ISOCPEUR",            2,      1&lt;BR /&gt;
&lt;BR /&gt;
paragraph		"AC_PRG_32"      2,            0,            0,            0,            1&lt;BR /&gt;
    set style "AC_STYLE_1"&lt;BR /&gt;
        project_name&lt;BR /&gt;
endparagraph&lt;BR /&gt;
textblock		"AC_TEXTBLOCK_24" 40.26852629305,      1,            0,            1,            1,            1, &lt;BR /&gt;
        "AC_PRG_32"&lt;BR /&gt;
richtext2		1.964248564834, -9.751709887674, "AC_TEXTBLOCK_24"&lt;BR /&gt;
&lt;BR /&gt;
paragraph		"AC_PRG_33"      2,            0,            0,            0,            1&lt;BR /&gt;
        project_number&lt;BR /&gt;
endparagraph&lt;BR /&gt;
textblock		"AC_TEXTBLOCK_25" 39.80388945121,      1,            0,            1,            1,            1, &lt;BR /&gt;
        "AC_PRG_33"&lt;BR /&gt;
richtext2		7.221169870345, -9.723745633303, "AC_TEXTBLOCK_25"&lt;BR /&gt;
&lt;BR /&gt;
paragraph		"AC_PRG_34"      2,            0,            0,            0,            1&lt;BR /&gt;
        locations&lt;BR /&gt;
endparagraph&lt;BR /&gt;
textblock		"AC_TEXTBLOCK_26" 34.53800524366,      1,            0,            1,            1,            1, &lt;BR /&gt;
        "AC_PRG_34"&lt;BR /&gt;
richtext2		12.98838613801, -9.746534088377, "AC_TEXTBLOCK_26"</description>
      <pubDate>Mon, 11 Mar 2013 16:23:30 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Please-Help-Building-simple-parametric-formula/m-p/126042#M14144</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-11T16:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: Please Help. Building simple parametric formula</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Please-Help-Building-simple-parametric-formula/m-p/126043#M14145</link>
      <description>&lt;BLOCKQUOTE&gt;pixpast wrote:&lt;BR /&gt; tried to create a simple object on plan and then save it as a GDL object.&lt;BR /&gt;
&lt;BR /&gt;
...&lt;BR /&gt;
&lt;BR /&gt;
Here is the code.&lt;BR /&gt;
What am I doing wrong ??&lt;/BLOCKQUOTE&gt;
I do not recommend using this procedure, because it results in a over-complex script. I can also see your text block has three rows (one with thew actual text and two empty)&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
So said, when I copied it and tested the object, it works almost as expected. Changing text_size parameter result in a increased or decreased text size. It don't stay centered in the frame, but this is normal.</description>
      <pubDate>Mon, 11 Mar 2013 20:07:30 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Please-Help-Building-simple-parametric-formula/m-p/126043#M14145</guid>
      <dc:creator>rocorona</dc:creator>
      <dc:date>2013-03-11T20:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: Please Help. Building simple parametric formula</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Please-Help-Building-simple-parametric-formula/m-p/126044#M14146</link>
      <description>Writing our own scripts is difficult, at the beginning, but is far more simple than trying to change autoscripted objects.&lt;BR /&gt;
&lt;BR /&gt;
Do a try to this code: &lt;BR /&gt;

&lt;PRE&gt;DEFINE STYLE "st1" font, text_size, 5, 0
SET STYLE st1

LINE2 -a/2, 0, a/2, 0
ARC2 0, 0, a/2, 0, 180

HOTSPOT2  0,   0, 1
HOTSPOT2 -a/2, 0, 2
HOTSPOT2  a/2, 0, 3
HOTSPOT2  0, a/2, 4

TEXT2 0, (a/2)*.4, text_content
&lt;/PRE&gt;

it uses 3 parameters: &lt;BR /&gt;
text_content, text_size, font</description>
      <pubDate>Mon, 11 Mar 2013 20:23:19 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Please-Help-Building-simple-parametric-formula/m-p/126044#M14146</guid>
      <dc:creator>rocorona</dc:creator>
      <dc:date>2013-03-11T20:23:19Z</dc:date>
    </item>
  </channel>
</rss>

