<?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: Set Background Pen in GDL in Documentation</title>
    <link>https://community.graphisoft.com/t5/Documentation/Set-Background-Pen-in-GDL/m-p/136443#M21083</link>
    <description>Another way to do it would be to have the linework on say layer 1 of the symbol, and the fill on layer 2.  When the fill is needed you need to issue 2 fragment2 commands.  First set the fill to either Solid Fill or %100 and the pen for the fill to the background pen and issue the fragment2 command.  Then set the fill and pen to the user selected fill and foreground pen and issue the fragment2 command.</description>
    <pubDate>Thu, 06 May 2010 13:54:27 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-05-06T13:54:27Z</dc:date>
    <item>
      <title>Set Background Pen in GDL</title>
      <link>https://community.graphisoft.com/t5/Documentation/Set-Background-Pen-in-GDL/m-p/136437#M21077</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Can anyone tell me if it's possible to draw a fill in the 2d SYMBOL portion of a library part then use the script to adjust the background pen?&lt;BR /&gt;&lt;BR /&gt;I really like the feature that manipulate the BACKGROUND PEN in MODEL OPTIONS... so I can produce COLOR DESIGN PLANS using the background pens and turn them off for CD's... &lt;BR /&gt;&lt;BR /&gt;But I can't figure out how to have control over a fill's background pen from a gdl parameter..&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks in advance,&lt;/DIV&gt;</description>
      <pubDate>Fri, 07 Feb 2025 13:43:13 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Documentation/Set-Background-Pen-in-GDL/m-p/136437#M21077</guid>
      <dc:creator>vfrontiers</dc:creator>
      <dc:date>2025-02-07T13:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: Set Background Pen in GDL</title>
      <link>https://community.graphisoft.com/t5/Documentation/Set-Background-Pen-in-GDL/m-p/136438#M21078</link>
      <description>The GDL reference says...&lt;BR /&gt;
&lt;BR /&gt;
POLY_2B n, frame_fill, fill_pen, fill_background_pen, x1, y1, s1, ..., xn, yn, sn&lt;BR /&gt;
&lt;BR /&gt;
Does that help? I assume you know how to create a pen color parameter, and the background fill can be assigned here, so I'm assuming it will work.</description>
      <pubDate>Wed, 05 May 2010 17:37:28 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Documentation/Set-Background-Pen-in-GDL/m-p/136438#M21078</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-05-05T17:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: Set Background Pen in GDL</title>
      <link>https://community.graphisoft.com/t5/Documentation/Set-Background-Pen-in-GDL/m-p/136439#M21079</link>
      <description>&lt;BLOCKQUOTE&gt;GDL wrote:&lt;BR /&gt;FRAGMENT2 fragment_index,&lt;BR /&gt;
use_current_attributes_flag&lt;BR /&gt;
The fragment with the given index is inserted into the 2D Full View with the current transformations.&lt;BR /&gt;
use_current_attributes_flag: 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;

The use_current_attributes_flag &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;might&lt;E&gt;&lt;/E&gt; do what you want. I don't know if it includes the background pen.</description>
      <pubDate>Wed, 05 May 2010 18:35:07 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Documentation/Set-Background-Pen-in-GDL/m-p/136439#M21079</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-05-05T18:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: Set Background Pen in GDL</title>
      <link>https://community.graphisoft.com/t5/Documentation/Set-Background-Pen-in-GDL/m-p/136440#M21080</link>
      <description>&lt;BLOCKQUOTE&gt;Matthew wrote:&lt;BR /&gt;&lt;BLOCKQUOTE&gt;GDL wrote:&lt;BR /&gt;FRAGMENT2 fragment_index,&lt;BR /&gt;
use_current_attributes_flag&lt;BR /&gt;
The fragment with the given index is inserted into the 2D Full View with the current transformations.&lt;BR /&gt;
use_current_attributes_flag: 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;

The use_current_attributes_flag &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;might&lt;E&gt;&lt;/E&gt; do what you want. I don't know if it includes the background pen.&lt;/BLOCKQUOTE&gt;

&lt;BR /&gt;
This is more along the lines I was after as the fills are "hand drawn" in the 2d symbol... But it doesn't work.&lt;BR /&gt;
&lt;BR /&gt;
Just think it's funny that you can put a PEN statement or FILL statement in front of the FRAGMENT2 to control fills / pens but not background pen...&lt;BR /&gt;
&lt;BR /&gt;
*wishlist*</description>
      <pubDate>Wed, 05 May 2010 19:14:48 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Documentation/Set-Background-Pen-in-GDL/m-p/136440#M21080</guid>
      <dc:creator>vfrontiers</dc:creator>
      <dc:date>2010-05-05T19:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: Set Background Pen in GDL</title>
      <link>https://community.graphisoft.com/t5/Documentation/Set-Background-Pen-in-GDL/m-p/136441#M21081</link>
      <description>&lt;BLOCKQUOTE&gt;vfrontiers wrote:&lt;BR /&gt;Just think it's funny that you can put a PEN statement or FILL statement in front of the FRAGMENT2 to control fills / pens but not background pen...&lt;BR /&gt;
&lt;BR /&gt;
*wishlist*&lt;/BLOCKQUOTE&gt;

The FRAGMENT2 statement antedates the background pen function and it seems it hasn't been revised to accommodate it.</description>
      <pubDate>Wed, 05 May 2010 22:54:07 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Documentation/Set-Background-Pen-in-GDL/m-p/136441#M21081</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-05-05T22:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: Set Background Pen in GDL</title>
      <link>https://community.graphisoft.com/t5/Documentation/Set-Background-Pen-in-GDL/m-p/136442#M21082</link>
      <description>&lt;BLOCKQUOTE&gt;vfrontiers wrote:&lt;BR /&gt;Can anyone tell me if it's possible to draw a fill in the 2d SYMBOL portion of a library part then use the script to adjust the background pen?&lt;/BLOCKQUOTE&gt;

Duane:&lt;BR /&gt;
&lt;BR /&gt;
You can drag the fill from the 2D Symbol window into the 2D Script window, this will convert the fill to code using the &lt;FONT color="blue"&gt;POLY2_B{5}&lt;/FONT&gt; command that has &lt;FONT color="green"&gt;fill_background_pen&lt;/FONT&gt; as one of its variables.&lt;BR /&gt;
&lt;BR /&gt;
David</description>
      <pubDate>Thu, 06 May 2010 13:09:17 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Documentation/Set-Background-Pen-in-GDL/m-p/136442#M21082</guid>
      <dc:creator>David Maudlin</dc:creator>
      <dc:date>2010-05-06T13:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: Set Background Pen in GDL</title>
      <link>https://community.graphisoft.com/t5/Documentation/Set-Background-Pen-in-GDL/m-p/136443#M21083</link>
      <description>Another way to do it would be to have the linework on say layer 1 of the symbol, and the fill on layer 2.  When the fill is needed you need to issue 2 fragment2 commands.  First set the fill to either Solid Fill or %100 and the pen for the fill to the background pen and issue the fragment2 command.  Then set the fill and pen to the user selected fill and foreground pen and issue the fragment2 command.</description>
      <pubDate>Thu, 06 May 2010 13:54:27 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Documentation/Set-Background-Pen-in-GDL/m-p/136443#M21083</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-05-06T13:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: Set Background Pen in GDL</title>
      <link>https://community.graphisoft.com/t5/Documentation/Set-Background-Pen-in-GDL/m-p/136444#M21084</link>
      <description>&lt;BLOCKQUOTE&gt;Michael wrote:&lt;BR /&gt;Another way to do it would be to have the linework on say layer 1 of the symbol, and the fill on layer 2.  When the fill is needed you need to issue 2 fragment2 commands.  First set the fill to either Solid Fill or %100 and the pen for the fill to the background pen and issue the fragment2 command.  Then set the fill and pen to the user selected fill and foreground pen and issue the fragment2 command.&lt;/BLOCKQUOTE&gt;

Right... but then I won't have MODEL VIEW control over the fill as described in the original post...&lt;BR /&gt;
&lt;BR /&gt;
What I'm after is the ability to have PRESENTATION plans with color (using the BACKGROUND of the fill) then be able to "turn off" the background using the MODEL View Options when producing CD's...&lt;BR /&gt;
&lt;BR /&gt;
I know I can do this with another LAYER of PRESENTATION FILLS, which is what I have to do now.  But it's a bummer every time furniture changes to have to make sure the fills follow along with the objects.&lt;BR /&gt;
&lt;BR /&gt;
I can ALSO simply PRESET the fills of the objects with the proper BACKGROUND FILL PEN, but then if I want a GREY TABLE and a PURPLE same TABLE, I'm screwed.&lt;BR /&gt;
&lt;BR /&gt;
Not a huge deal, but seems like GDL could handle a BCKGD_PEN override for the 2d symbol...</description>
      <pubDate>Thu, 06 May 2010 14:22:14 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Documentation/Set-Background-Pen-in-GDL/m-p/136444#M21084</guid>
      <dc:creator>vfrontiers</dc:creator>
      <dc:date>2010-05-06T14:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: Set Background Pen in GDL</title>
      <link>https://community.graphisoft.com/t5/Documentation/Set-Background-Pen-in-GDL/m-p/136445#M21085</link>
      <description>&lt;BLOCKQUOTE&gt;David wrote:&lt;BR /&gt;&lt;BLOCKQUOTE&gt;vfrontiers wrote:&lt;BR /&gt;Can anyone tell me if it's possible to draw a fill in the 2d SYMBOL portion of a library part then use the script to adjust the background pen?&lt;/BLOCKQUOTE&gt;

Duane:&lt;BR /&gt;
&lt;BR /&gt;
You can drag the fill from the 2D Symbol window into the 2D Script window, this will convert the fill to code using the &lt;FONT color="blue"&gt;POLY2_B{5}&lt;/FONT&gt; command that has &lt;FONT color="green"&gt;fill_background_pen&lt;/FONT&gt; as one of its variables.&lt;BR /&gt;
&lt;BR /&gt;
David&lt;/BLOCKQUOTE&gt;

I've done this before (many, many years ago) and am going to try this again.&lt;BR /&gt;
&lt;BR /&gt;
Ultimately this will get me where I need to be.  These were furniture pieces that were converted from .3ds....  So they had SCRIPTED 2d representations which were SLOWWW...&lt;BR /&gt;
&lt;BR /&gt;
So... I just did a top view and ECONOMIZED the linework.  I guess I can take it that one more step and drag back to the script window to add this additional control.&lt;BR /&gt;
&lt;BR /&gt;
Thanks EVERYONE for the exploration of this topic.  &lt;BR /&gt;
&lt;BR /&gt;
BTW... I want to give a shameless plug for ArchiBASE planet (&lt;A href="http://www.archibaseplanet.com" target="_blank"&gt;http://www.archibaseplanet.com&lt;/A&gt;) .  I use it mostly to get furniture for ArtLANTIS, but most objects come as .gsm as well (though they are clearly just .3ds conversions)...  But they're a hole different level of look for models.  Admittedly, 90% of the stuff I'll never use, but the other 10% is fantastic....  Can be directly imported into ArtLantis and converted to ArtLantis objects.</description>
      <pubDate>Thu, 06 May 2010 14:32:30 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Documentation/Set-Background-Pen-in-GDL/m-p/136445#M21085</guid>
      <dc:creator>vfrontiers</dc:creator>
      <dc:date>2010-05-06T14:32:30Z</dc:date>
    </item>
  </channel>
</rss>

