<?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 Foreground &amp;amp; Background Fill Pens for Fragment2 in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/Foreground-amp-Background-Fill-Pens-for-Fragment2/m-p/269613#M4739</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;Hi there,&lt;BR /&gt;&lt;BR /&gt;Is their a way I can customise the Foreground &amp;amp; Background pens for a fill, to customise a symbol appearance with the use of Fragment2 ??&lt;BR /&gt;&lt;BR /&gt;PS: I have already seen this thread &lt;S&gt;&lt;/S&gt;&lt;A href="https://Archicad-talk.Graphisoft.com/viewtopic.php?t=32287" target="_blank"&gt;https://Archicad-talk.Graphisoft.com/viewtopic.php?t=32287&lt;/A&gt; and it is not suitable for my use case&lt;BR /&gt;&lt;BR /&gt;Thanks in advance&lt;/DIV&gt;</description>
    <pubDate>Mon, 26 Sep 2022 20:54:51 GMT</pubDate>
    <dc:creator>Nader Belal</dc:creator>
    <dc:date>2022-09-26T20:54:51Z</dc:date>
    <item>
      <title>Foreground &amp; Background Fill Pens for Fragment2</title>
      <link>https://community.graphisoft.com/t5/GDL/Foreground-amp-Background-Fill-Pens-for-Fragment2/m-p/269613#M4739</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Hi there,&lt;BR /&gt;&lt;BR /&gt;Is their a way I can customise the Foreground &amp;amp; Background pens for a fill, to customise a symbol appearance with the use of Fragment2 ??&lt;BR /&gt;&lt;BR /&gt;PS: I have already seen this thread &lt;S&gt;&lt;/S&gt;&lt;A href="https://Archicad-talk.Graphisoft.com/viewtopic.php?t=32287" target="_blank"&gt;https://Archicad-talk.Graphisoft.com/viewtopic.php?t=32287&lt;/A&gt; and it is not suitable for my use case&lt;BR /&gt;&lt;BR /&gt;Thanks in advance&lt;/DIV&gt;</description>
      <pubDate>Mon, 26 Sep 2022 20:54:51 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Foreground-amp-Background-Fill-Pens-for-Fragment2/m-p/269613#M4739</guid>
      <dc:creator>Nader Belal</dc:creator>
      <dc:date>2022-09-26T20:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: Foreground &amp; Background Fill Pens for Fragment2</title>
      <link>https://community.graphisoft.com/t5/GDL/Foreground-amp-Background-Fill-Pens-for-Fragment2/m-p/269614#M4740</link>
      <description>This is what the GDL Reference Guide says about the &lt;B&gt;FRAGMENT2 &lt;/B&gt;command:&lt;BR /&gt;

&lt;BLOCKQUOTE&gt;&lt;B&gt;&lt;FONT size="150"&gt;FRAGMENT2&lt;/FONT&gt;&lt;/B&gt;&lt;BR /&gt;
&lt;B&gt;FRAGMENT2&lt;/B&gt; fragment_index, use_current_attributes_flag &lt;BR /&gt;
&lt;B&gt;FRAGMENT2 &lt;/B&gt;ALL, use_current_attributes_flag&lt;BR /&gt;
The fragment with the given index is inserted into the 2D Full View with the current transformations. If ALL is specified, all fragments are inserted.&lt;BR /&gt;
&lt;B&gt;use_current_attributes_flag: &lt;/B&gt;defines whether or not the current attributes will be used.&lt;BR /&gt;
0: the fragment appears with the color, line type and fill type defined for it,&lt;BR /&gt;
1: the current settings of the script are used instead of the color, line type and fill type of the fragment.&lt;/BLOCKQUOTE&gt;

&lt;BR /&gt;
&lt;BR /&gt;
For example, you want to display the 2D geometry placed on Layer "3" of the 2D Symbol. You would use the following script:&lt;BR /&gt;
&lt;BR /&gt;

&lt;PRE&gt;FRAGMENT2 3, 1&lt;/PRE&gt;

&lt;BR /&gt;
The "1" used is what is important here, because it means that if you set the Pen, Line Type, and Fill Type using the PEN, LINE_TYPE, and FILL_TYPE commands, respectively, in your 2D Script before invoking this command, then the Fill will be displayed using the Pen, Line Type, and Fill Type you set in your 2D Script instead of the Pen, Line Type and Fill Type it is drawn using in the 2D Symbol. You can also create GDL parameters for the Pen, Line Type, and Fill Type, and the PEN, LINE_TYPE, and FILL_TYPE commands can use those parameters instead of attribute index numbers.&lt;BR /&gt;
&lt;BR /&gt;
If the code goes like this:&lt;BR /&gt;
&lt;BR /&gt;

&lt;PRE&gt;FRAGMENT2 3, 0&lt;/PRE&gt;

&lt;BR /&gt;
then the 2D geometry will be displayed the same way you see it in the 2D Symbol Window. &lt;BR /&gt;
&lt;BR /&gt;
I have not tried this just now, but based on the Guide, I think this is how it is supposed to work.</description>
      <pubDate>Sun, 09 Aug 2020 11:25:56 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Foreground-amp-Background-Fill-Pens-for-Fragment2/m-p/269614#M4740</guid>
      <dc:creator>Laszlo Nagy</dc:creator>
      <dc:date>2020-08-09T11:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: Foreground &amp; Background Fill Pens for Fragment2</title>
      <link>https://community.graphisoft.com/t5/GDL/Foreground-amp-Background-Fill-Pens-for-Fragment2/m-p/269615#M4741</link>
      <description>@LaszloNagy&lt;BR /&gt;
&lt;BR /&gt;
Thank you for the quick reply.&lt;BR /&gt;
&lt;BR /&gt;
What I was aiming is to be capable to change fills' pens (foreground and background) if I wanted to use Fragment2, without any other auxiliary 2D script to redraw the fill's area.</description>
      <pubDate>Sun, 09 Aug 2020 14:38:18 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Foreground-amp-Background-Fill-Pens-for-Fragment2/m-p/269615#M4741</guid>
      <dc:creator>Nader Belal</dc:creator>
      <dc:date>2020-08-09T14:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: Foreground &amp; Background Fill Pens for Fragment2</title>
      <link>https://community.graphisoft.com/t5/GDL/Foreground-amp-Background-Fill-Pens-for-Fragment2/m-p/269616#M4742</link>
      <description>&lt;FONT color="#000000"&gt;I´m marking this thread as solved, although it's unsolved since you can't really control Fills Foreground and Background pens with Fragment2 &lt;B&gt;&lt;U&gt;&lt;/U&gt;&lt;/B&gt;&lt;S&gt;&lt;B&gt;&lt;U&gt;&lt;U&gt;&lt;/U&gt;&lt;/U&gt;&lt;/B&gt;&lt;/S&gt;directly&lt;E&gt;&lt;/E&gt;&lt;BR /&gt;
&lt;BR /&gt;
So you either script the fills, or use elaborate methods (&lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;with varying degrees of success&lt;E&gt;&lt;/E&gt;)&lt;/FONT&gt;</description>
      <pubDate>Sun, 06 Sep 2020 17:03:28 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Foreground-amp-Background-Fill-Pens-for-Fragment2/m-p/269616#M4742</guid>
      <dc:creator>Nader Belal</dc:creator>
      <dc:date>2020-09-06T17:03:28Z</dc:date>
    </item>
  </channel>
</rss>

