<?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 Archicad 29: poly2_b{5} outline missing (covered by fill?) despite separate calls in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/Archicad-29-poly2-b-5-outline-missing-covered-by-fill-despite/m-p/694169#M8331</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I’m working on a 2D furniture object in Archicad 29 that changes its representation based on a custom Model View Option (MVO).&lt;/P&gt;&lt;P&gt;The Problem: The fills render correctly (Solid, Dashed, Colored), but the outlines (contours) are invisible in regular view. However, when I select the object in the floor plan, the dashed/solid outlines appear as part of the selection highlight. It seems like the fill is overlapping the outline, even though they are called separately.&lt;/P&gt;&lt;P&gt;I am using the &lt;CODE&gt;poly2_b{5}&lt;/CODE&gt; command and I’ve already tried adding explicit &lt;CODE&gt;pen&lt;/CODE&gt; resets before each call.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;! ---- Standard Initialization ----
pen gs_cont_pen
fill gs_fill_type

! ---- Constants ----
DISPLAY_HIDDEN  = 1
DISPLAY_SOLID   = 2
DISPLAY_DASHED  = 3
DISPLAY_COLORED = 4

! ---- Read MVO Settings ----
_mode = 2
_ok = LIBRARYGLOBAL("ModelViewSettings", "iDisplayMode", _mode)

! Mode 1 = Hidden: draw nothing
IF _mode = DISPLAY_HIDDEN THEN GOTO 999

! ---- Determine Pen Color ----
_pen = 19
IF _mode = DISPLAY_COLORED THEN
    _pen = 85
    IF iResponsibility = 2 THEN _pen = 104
    IF iResponsibility = 3 THEN _pen = 114
ENDIF

! ---- Set Line Style ----
IF _mode = DISPLAY_DASHED THEN
    set line_type 25
ELSE
    set line_type 1
ENDIF

pen _pen

! ---- Main Body ----
IF _mode &amp;lt;&amp;gt; DISPLAY_DASHED THEN
    ! (1) Fill (Solid/Colored only)
    fill fillAttribute_1
    poly2_b{5} 5, 2, 0, 3, _pen, 0,
        0, 0, 1, 0, 0, 1, 0,
        0, 0, 1,
        A, 0, 1,
        A, B, 1,
        0, B, 1,
        0, 0, 1
ENDIF

! (2) Contour (all modes except Hidden)
pen _pen
poly2_b{5} 5, 1, 0, 3, 1, 0,
    0, 0, 1, 0, 0, 1, 0,
    0, 0, 1,
    A, 0, 1,
    A, B, 1,
    0, B, 1,
    0, 0, 1

! ---- Top Elements----
IF isVitrine = 1 THEN
    _vx = A / 8
    _vy = B / 12
    IF _mode &amp;lt;&amp;gt; DISPLAY_DASHED THEN
        ! (1) Fill
        fill fillAttribute_1
        poly2_b{5} 5, 2, 0, 3, _pen, 0,
            0, 0, 1, 0, 0, 1, 0,
            _vx,   _vy,   1,
            A-_vx, _vy,   1,
            A-_vx, B-_vy, 1,
            _vx,   B-_vy, 1,
            _vx,   _vy,   1
    ENDIF
    ! (2) Contour
    pen _pen
    poly2_b{5} 5, 1, 0, 3, 1, 0,
        0, 0, 1, 0, 0, 1, 0,
        _vx,   _vy,   1,
        A-_vx, _vy,   1,
        A-_vx, B-_vy, 1,
        _vx,   B-_vy, 1,
        _vx,   _vy,   1
ENDIF

999:
end&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone encountered this behavior with &lt;CODE&gt;poly2_b{5}&lt;/CODE&gt;? Is there a specific draw order or &lt;CODE&gt;distortion_flag&lt;/CODE&gt; I might be missing to ensure the contour stays on top?&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 26 Feb 2026 07:54:00 GMT</pubDate>
    <dc:creator>til0byte</dc:creator>
    <dc:date>2026-02-26T07:54:00Z</dc:date>
    <item>
      <title>Archicad 29: poly2_b{5} outline missing (covered by fill?) despite separate calls</title>
      <link>https://community.graphisoft.com/t5/GDL/Archicad-29-poly2-b-5-outline-missing-covered-by-fill-despite/m-p/694169#M8331</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I’m working on a 2D furniture object in Archicad 29 that changes its representation based on a custom Model View Option (MVO).&lt;/P&gt;&lt;P&gt;The Problem: The fills render correctly (Solid, Dashed, Colored), but the outlines (contours) are invisible in regular view. However, when I select the object in the floor plan, the dashed/solid outlines appear as part of the selection highlight. It seems like the fill is overlapping the outline, even though they are called separately.&lt;/P&gt;&lt;P&gt;I am using the &lt;CODE&gt;poly2_b{5}&lt;/CODE&gt; command and I’ve already tried adding explicit &lt;CODE&gt;pen&lt;/CODE&gt; resets before each call.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;! ---- Standard Initialization ----
pen gs_cont_pen
fill gs_fill_type

! ---- Constants ----
DISPLAY_HIDDEN  = 1
DISPLAY_SOLID   = 2
DISPLAY_DASHED  = 3
DISPLAY_COLORED = 4

! ---- Read MVO Settings ----
_mode = 2
_ok = LIBRARYGLOBAL("ModelViewSettings", "iDisplayMode", _mode)

! Mode 1 = Hidden: draw nothing
IF _mode = DISPLAY_HIDDEN THEN GOTO 999

! ---- Determine Pen Color ----
_pen = 19
IF _mode = DISPLAY_COLORED THEN
    _pen = 85
    IF iResponsibility = 2 THEN _pen = 104
    IF iResponsibility = 3 THEN _pen = 114
ENDIF

! ---- Set Line Style ----
IF _mode = DISPLAY_DASHED THEN
    set line_type 25
ELSE
    set line_type 1
ENDIF

pen _pen

! ---- Main Body ----
IF _mode &amp;lt;&amp;gt; DISPLAY_DASHED THEN
    ! (1) Fill (Solid/Colored only)
    fill fillAttribute_1
    poly2_b{5} 5, 2, 0, 3, _pen, 0,
        0, 0, 1, 0, 0, 1, 0,
        0, 0, 1,
        A, 0, 1,
        A, B, 1,
        0, B, 1,
        0, 0, 1
ENDIF

! (2) Contour (all modes except Hidden)
pen _pen
poly2_b{5} 5, 1, 0, 3, 1, 0,
    0, 0, 1, 0, 0, 1, 0,
    0, 0, 1,
    A, 0, 1,
    A, B, 1,
    0, B, 1,
    0, 0, 1

! ---- Top Elements----
IF isVitrine = 1 THEN
    _vx = A / 8
    _vy = B / 12
    IF _mode &amp;lt;&amp;gt; DISPLAY_DASHED THEN
        ! (1) Fill
        fill fillAttribute_1
        poly2_b{5} 5, 2, 0, 3, _pen, 0,
            0, 0, 1, 0, 0, 1, 0,
            _vx,   _vy,   1,
            A-_vx, _vy,   1,
            A-_vx, B-_vy, 1,
            _vx,   B-_vy, 1,
            _vx,   _vy,   1
    ENDIF
    ! (2) Contour
    pen _pen
    poly2_b{5} 5, 1, 0, 3, 1, 0,
        0, 0, 1, 0, 0, 1, 0,
        _vx,   _vy,   1,
        A-_vx, _vy,   1,
        A-_vx, B-_vy, 1,
        _vx,   B-_vy, 1,
        _vx,   _vy,   1
ENDIF

999:
end&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone encountered this behavior with &lt;CODE&gt;poly2_b{5}&lt;/CODE&gt;? Is there a specific draw order or &lt;CODE&gt;distortion_flag&lt;/CODE&gt; I might be missing to ensure the contour stays on top?&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Feb 2026 07:54:00 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Archicad-29-poly2-b-5-outline-missing-covered-by-fill-despite/m-p/694169#M8331</guid>
      <dc:creator>til0byte</dc:creator>
      <dc:date>2026-02-26T07:54:00Z</dc:date>
    </item>
    <item>
      <title>Betreff: Archicad 29: poly2_b{5} outline missing (covered by fill?) despite separate calls</title>
      <link>https://community.graphisoft.com/t5/GDL/Archicad-29-poly2-b-5-outline-missing-covered-by-fill-despite/m-p/694186#M8332</link>
      <description>&lt;P&gt;Have you tried to let the object create the script. Here the outer lines are visible. Please compare it with your script. (AC 29 , MAC OS)&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;pen         24
fill "Misch-Schraffur 50 %"
poly2_b{5}       5,      2,      1,      3,     24,     91, 
                   0,            0,            1,            0,            0,            1,            0, 
                   0,            0,     33, 
                   0, -1.598563264691,     33, 
        2.258005550405, -1.598563264691,     33, 
        2.258005550405,            0,     33, 
                   0,            0,     33
pen          1
set line_type "Volllinie"
poly2_b{5}       5,      1,      0,      3,      1,      0, 
                   0,            0,            1,            0,            0,            1,            0, 
                   0,            0,     33, 
        2.258005550405,            0,     33, 
        2.258005550405, -1.598563264691,     33, 
                   0, -1.598563264691,     33, 
                   0,            0,     33&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Feb 2026 09:14:00 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Archicad-29-poly2-b-5-outline-missing-covered-by-fill-despite/m-p/694186#M8332</guid>
      <dc:creator>Jochen Suehlo</dc:creator>
      <dc:date>2026-02-26T09:14:00Z</dc:date>
    </item>
    <item>
      <title>Betreff: Archicad 29: poly2_b{5} outline missing (covered by fill?) despite separate calls</title>
      <link>https://community.graphisoft.com/t5/GDL/Archicad-29-poly2-b-5-outline-missing-covered-by-fill-despite/m-p/694193#M8333</link>
      <description>&lt;P&gt;Any particular reason you are not using inline conditionals to flip the bits?&lt;/P&gt;
&lt;P&gt;In my opinion keeping it DRY is a better style.&lt;/P&gt;
&lt;P&gt;So I'd do it like this:&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;pen mypen
fill myfill
has_outline = not(_mode = display_hidden)
has_fill = (_mode = display_solid) | (_mode = display_colored)

poly_2b 4, has_outline+2*has_fill+4, pen_fg, pen_bg,
    0, 0, 1,
    ... etc.&lt;/LI-CODE&gt;
&lt;P&gt;Not sure what you'd need version {5} for in your code, but there it's the same.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Feb 2026 10:03:01 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Archicad-29-poly2-b-5-outline-missing-covered-by-fill-despite/m-p/694193#M8333</guid>
      <dc:creator>runxel</dc:creator>
      <dc:date>2026-02-26T10:03:01Z</dc:date>
    </item>
  </channel>
</rss>

