<?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: GDL - Acquiring element attributes in custom labels in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/GDL-Acquiring-element-attributes-in-custom-labels/m-p/307935#M4331</link>
    <description>&lt;P&gt;&lt;SPAN class="UserName lia-user-name lia-user-rank-Booster lia-component-message-view-widget-author-username"&gt;&lt;SPAN class=""&gt;&lt;A href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/14571" target="_self"&gt;pedrocollares&lt;/A&gt;:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="UserName lia-user-name lia-user-rank-Booster lia-component-message-view-widget-author-username"&gt;&lt;SPAN class=""&gt;The second parameter in the Poly2 command is "frame_fill" which has 3 options. You are using 1, which is Draw Contour. Change this to 1+2 (or 3) to add Draw Fill to the options. See the Poly2 command in the GDL Reference Guide. If you want to use the Poly2_ command, you need to add a Status Value to each node.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You should add a Signature to your Profile (click the Profile button near the top of this page) with your Archicad version and operating system (see mine for an example) for more accurate help in this forum.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;</description>
    <pubDate>Thu, 30 Sep 2021 12:43:46 GMT</pubDate>
    <dc:creator>David Maudlin</dc:creator>
    <dc:date>2021-09-30T12:43:46Z</dc:date>
    <item>
      <title>GDL - Acquiring element attributes in custom labels</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/GDL-Acquiring-element-attributes-in-custom-labels/m-p/307439#M4322</link>
      <description>&lt;P&gt;Hi all!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm new to GDL and I'm attempting to do a custom label that is able to identify which type of element is being labeled and then is able to put out its surface information, according to the type identified.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example: if the labeled element is a floor, it puts out the "Top surface" of the element (Following eventual surface overrides). If it is a ceiling, puts out the "Bottom surface". If it's a wall, it puts out the "Inside finish surface" or the "Outside".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;------&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My questions are the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1 - How to 'Request' those surface names of the labeled object to use in the label object.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2 - How to condition the surface name used according to the type of element. (I'll use the same label to label walls, slabs, beams, so on)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3 - How to add a parameter to the label to choose Internal/External finish (In case it is a wall, or a beam)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;4 - Would it be possible to identify if the reference line of the wall is internal/external so I can "position" my label to the correct side of the wall? (Auto-adapt according to which side finish I chose to label)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;---&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't intend to use Archicad Properties for that, because I can't use "Hybrid" element types. It fails to return values if I use multiple element types at the same property. Also, the label symbol should have a custom shape depending on the type of element being labeled, so I'm heading to GDL to have that freedom.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That's it. If anyone can show me directions to solve any of those questions, I'd be very thankful &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2024 09:24:45 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/GDL-Acquiring-element-attributes-in-custom-labels/m-p/307439#M4322</guid>
      <dc:creator>pedrocollares</dc:creator>
      <dc:date>2024-09-09T09:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: GDL - Acquiring element attributes in custom labels</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/GDL-Acquiring-element-attributes-in-custom-labels/m-p/307459#M4323</link>
      <description>&lt;P&gt;Firstly, congratulations on delving into GDL! it is an endless source of opportunity.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is a GDL parameter to determine the type of element:&amp;nbsp;GLOB_ELEM_TYPE&lt;/P&gt;&lt;P&gt;You will find this parameter and the optional values in the GDL Reference Guide (via help menu). Typically we use it like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;!=======================================================================================
! Elem Types
!=======================================================================================

! --- values for GLOB_ELEM_TYPE ---
ELEM_TYPE_LABEL		= 0
ELEM_TYPE_OBJECT	= 1
ELEM_TYPE_LAMP		= 2
ELEM_TYPE_WINDOW	= 3
ELEM_TYPE_DOOR		= 4
ELEM_TYPE_WALL		= 5
ELEM_TYPE_COLUMN	= 6
ELEM_TYPE_SLAB		= 7
ELEM_TYPE_ROOF		= 8
ELEM_TYPE_FILL		= 9
ELEM_TYPE_MESH		= 10
ELEM_TYPE_ZONE		= 11
ELEM_TYPE_BEAM		= 12
ELEM_TYPE_CW		= 13
ELEM_TYPE_CWFRAME	= 14
ELEM_TYPE_CWPANEL	= 15
ELEM_TYPE_CWJUNCT	= 16
ELEM_TYPE_CWACC		= 17
ELEM_TYPE_SHELL		= 18
ELEM_TYPE_SKYLIGHT	= 19
ELEM_TYPE_MORPH		= 20
ELEM_TYPE_STAIR		= 21
ELEM_TYPE_STAIRTREAD		= 22
ELEM_TYPE_STAIRRISER		= 23
ELEM_TYPE_STAIRSTRUCTURE	= 24
ELEM_TYPE_RAILING		= 25

! - Offered Tools: All except Independent Label
_isEnabledContent	= 1
bDefaultElem		= (GLOB_INTGUID = "" | GLOB_INTGUID = "{00000000-0000-0000-0000-000000000000}")
if GLOB_ELEM_TYPE = ELEM_TYPE_LABEL and not(bDefaultElem) then
	_isEnabledContent = 0
endif

!!===============================================================&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this means you can then write your script using the local variables defined above (eg. ELEM_TYPE_WALL) instead of having to remember what the numbers refer.&lt;/P&gt;&lt;P&gt;eg.&lt;/P&gt;&lt;P&gt;if GLOB_ELEM_TYPE =&amp;nbsp;ELEM_TYPE_WALL&lt;/P&gt;&lt;P&gt;is easier to understand than&lt;/P&gt;&lt;P&gt;if GLOB_ELEM_TYPE = 5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With the element type determined you can then apply the other GDL parameters that are available to get the information you want. These parameters are all listed in the GDL Reference Guide in the same chapter as you find the GLOB_ELEM_TYPE parameter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;WALL_MAT_A , WALL_MAT_B, WALL_MAT_EDGE will give you the surfaces but you may also want to use&amp;nbsp;WALL_SKINS_PARAMS and&amp;nbsp;WALL_SKINS_BMAT_NAMES&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so for your questions;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;requests are done with the parameters listed in the GDL Reference Guide as described above&lt;/LI&gt;&lt;LI&gt;GLOB_ELEM_TYPE as described above&lt;/LI&gt;&lt;LI&gt;create a parameter (eg. pickSurface) set it as a string type then in the master/parameter script provide two variables (eg. values "pickSurface", "Outside", "Inside") then in you parameter that returns the response (eg iSurface (becasue the result will be the surface ID)) do (if pickSurface =&amp;nbsp;"Outside" then iSurface = WALL_MAT_A)&lt;/LI&gt;&lt;LI&gt;I cant actually remember the answer to this, I think you use the&amp;nbsp;WALL_DIRECTION parameter. Or maybe it was one of the "request" functions&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Mon, 27 Sep 2021 00:29:11 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/GDL-Acquiring-element-attributes-in-custom-labels/m-p/307459#M4323</guid>
      <dc:creator>Kristian Bursell</dc:creator>
      <dc:date>2021-09-27T00:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: GDL - Acquiring element attributes in custom labels</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/GDL-Acquiring-element-attributes-in-custom-labels/m-p/307465#M4324</link>
      <description>&lt;P&gt;Thank you Kristian! That pretty much solves the issue with the info. My labels are getting the Surface name, and using a small substring of it, which is the ID.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't really understand though how the origin of the label works..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pedrocollares_0-1632709758684.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/5325i1D3A8F20293D4217/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pedrocollares_0-1632709758684.png" alt="pedrocollares_0-1632709758684.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I placed my label at the point marked in red, but it flies away to the side.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pedrocollares_1-1632709803371.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/5326i7ECE48FCE9DAD3B1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pedrocollares_1-1632709803371.png" alt="pedrocollares_1-1632709803371.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is how it is coded so far. I'd like it's "zero" to be at the zero where I clicked. Then I can move and rotate depending on the category of label that was placed. The label doesn't use a pointer, and I built it from the ground up, so it doesn't have the "anchor" parameter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is that able to fix through the code itself?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Sep 2021 02:32:32 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/GDL-Acquiring-element-attributes-in-custom-labels/m-p/307465#M4324</guid>
      <dc:creator>pedrocollares</dc:creator>
      <dc:date>2021-09-27T02:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: GDL - Acquiring element attributes in custom labels</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/GDL-Acquiring-element-attributes-in-custom-labels/m-p/307466#M4325</link>
      <description>&lt;P&gt;Because it is a "label" so it assumes you have the "Pointer" line on.&lt;/P&gt;&lt;P&gt;To get the text to move to the origin when the pointer line is off you need this piece of code placed before your text2 command:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;if LABEL_CUSTOM_ARROW then
	add2 	LABEL_POSITION [2][1]	+LABEL_POSITION [3][1],
		LABEL_POSITION [2][2]	+LABEL_POSITION [3][2]
endif&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Sep 2021 02:23:06 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/GDL-Acquiring-element-attributes-in-custom-labels/m-p/307466#M4325</guid>
      <dc:creator>Kristian Bursell</dc:creator>
      <dc:date>2021-09-27T02:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: GDL - Acquiring element attributes in custom labels</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/GDL-Acquiring-element-attributes-in-custom-labels/m-p/307469#M4326</link>
      <description>&lt;P&gt;That worked just fine! Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Sep 2021 02:34:32 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/GDL-Acquiring-element-attributes-in-custom-labels/m-p/307469#M4326</guid>
      <dc:creator>pedrocollares</dc:creator>
      <dc:date>2021-09-27T02:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: GDL - Acquiring element attributes in custom labels</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/GDL-Acquiring-element-attributes-in-custom-labels/m-p/307471#M4327</link>
      <description>&lt;P&gt;you are welcome&lt;/P&gt;</description>
      <pubDate>Mon, 27 Sep 2021 02:56:12 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/GDL-Acquiring-element-attributes-in-custom-labels/m-p/307471#M4327</guid>
      <dc:creator>Kristian Bursell</dc:creator>
      <dc:date>2021-09-27T02:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: GDL - Acquiring element attributes in custom labels</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/GDL-Acquiring-element-attributes-in-custom-labels/m-p/307526#M4328</link>
      <description>&lt;P&gt;I'm still having an issue handling an 'Option' parameter in my label object.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically, I intend to have this parameter called "par_ref" which indicates which surface of the walls should appear at the label. (Code is in portuguese so my colleagues are able to collaborate)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pedrocollares_0-1632750872116.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/5342i70F5FAB3F664CE23/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pedrocollares_0-1632750872116.png" alt="pedrocollares_0-1632750872116.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To define it, I attempted to mimic another parameter I saw:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pedrocollares_1-1632751208931.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/5346i2008995FB9FA89E4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pedrocollares_1-1632751208931.png" alt="pedrocollares_1-1632751208931.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I can't use it at the Master Script, it gives me errors at this location:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pedrocollares_2-1632751258495.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/5348iE616B1ED46E09727/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pedrocollares_2-1632751258495.png" alt="pedrocollares_2-1632751258495.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anything I'm missing? Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Sep 2021 14:01:23 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/GDL-Acquiring-element-attributes-in-custom-labels/m-p/307526#M4328</guid>
      <dc:creator>pedrocollares</dc:creator>
      <dc:date>2021-09-27T14:01:23Z</dc:date>
    </item>
    <item>
      <title>Re: GDL - Acquiring element attributes in custom labels</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/GDL-Acquiring-element-attributes-in-custom-labels/m-p/307580#M4329</link>
      <description>&lt;P&gt;couple of small mistakes.&lt;/P&gt;&lt;P&gt;basically you are attempting to do is use an "integer" type parameter which applies a "text" dropdown menu.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="paramTypes.png" style="width: 444px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/5367i7B8EBE7323EAF59A/image-size/large?v=v2&amp;amp;px=999" role="button" title="paramTypes.png" alt="paramTypes.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;your first mistake is you have this parameter set to a "length" type instead of an "integer" type.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;your second mistake is you are trying to reference the "text" value applied to the "integer" value. This "text" value is purely for display; it is not the actual value of the parameter hence you cannot reference it in your last bit of code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your last bit of code should read like this:&amp;nbsp;if par_ref = 1 then&lt;/P&gt;&lt;P&gt;or like this: if par_ref = _parRefPoint[1]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, in general the way you are setting up this parameter is overly complex unless you plan on creating language variations (same object in multiple languages). The dropdown menu text references can change language but still refer to the same integer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Sep 2021 21:59:04 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/GDL-Acquiring-element-attributes-in-custom-labels/m-p/307580#M4329</guid>
      <dc:creator>Kristian Bursell</dc:creator>
      <dc:date>2021-09-27T21:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: GDL - Acquiring element attributes in custom labels</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/GDL-Acquiring-element-attributes-in-custom-labels/m-p/307876#M4330</link>
      <description>&lt;P&gt;The label worked just fine! Still only one question. I can't make my labels have a filled background.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here I'm using the POLY2 command, which is hollow:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pedrocollares_0-1632966515321.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/5451i8D0C3B95ECDF91FD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pedrocollares_0-1632966515321.png" alt="pedrocollares_0-1632966515321.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When I switch to the POLY2_B, it glitches, even if I follow the instructions in the reference guide, inputting the correct parameters.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pedrocollares_1-1632966577521.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/5452i2743AC703303C441/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pedrocollares_1-1632966577521.png" alt="pedrocollares_1-1632966577521.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any directions on how to turn those POLY2 into filled polygons (with white background, which could be pen number 19)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 10:37:27 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/GDL-Acquiring-element-attributes-in-custom-labels/m-p/307876#M4330</guid>
      <dc:creator>pedrocollares</dc:creator>
      <dc:date>2021-09-30T10:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: GDL - Acquiring element attributes in custom labels</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/GDL-Acquiring-element-attributes-in-custom-labels/m-p/307935#M4331</link>
      <description>&lt;P&gt;&lt;SPAN class="UserName lia-user-name lia-user-rank-Booster lia-component-message-view-widget-author-username"&gt;&lt;SPAN class=""&gt;&lt;A href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/14571" target="_self"&gt;pedrocollares&lt;/A&gt;:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="UserName lia-user-name lia-user-rank-Booster lia-component-message-view-widget-author-username"&gt;&lt;SPAN class=""&gt;The second parameter in the Poly2 command is "frame_fill" which has 3 options. You are using 1, which is Draw Contour. Change this to 1+2 (or 3) to add Draw Fill to the options. See the Poly2 command in the GDL Reference Guide. If you want to use the Poly2_ command, you need to add a Status Value to each node.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You should add a Signature to your Profile (click the Profile button near the top of this page) with your Archicad version and operating system (see mine for an example) for more accurate help in this forum.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 12:43:46 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/GDL-Acquiring-element-attributes-in-custom-labels/m-p/307935#M4331</guid>
      <dc:creator>David Maudlin</dc:creator>
      <dc:date>2021-09-30T12:43:46Z</dc:date>
    </item>
    <item>
      <title>Re: GDL - Acquiring element attributes in custom labels</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/GDL-Acquiring-element-attributes-in-custom-labels/m-p/307938#M4332</link>
      <description>&lt;P&gt;Thanks David! I did change the 2nd parameter to 3 but it didn't alter the fill.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pedrocollares_0-1633007384683.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/5470iEAC42F04627F3824/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pedrocollares_0-1633007384683.png" alt="pedrocollares_0-1633007384683.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Still hollow.. (The label is already at the top in the view order)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And thanks for the tip regarding the signature, I'll adjust it soon &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 13:10:47 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/GDL-Acquiring-element-attributes-in-custom-labels/m-p/307938#M4332</guid>
      <dc:creator>pedrocollares</dc:creator>
      <dc:date>2021-09-30T13:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: GDL - Acquiring element attributes in custom labels</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/GDL-Acquiring-element-attributes-in-custom-labels/m-p/307985#M4333</link>
      <description>&lt;P&gt;Have you SET the fill before the POLY2 command (SET FILL ...)?&lt;/P&gt;
&lt;P&gt;You need to tell it what fill you intend to use.&lt;/P&gt;
&lt;P&gt;If you have set an 'Empty' fill, the background pen will need to be coloured.&lt;/P&gt;
&lt;P&gt;If you have set a 'Solid' fill, the foreground pen will determine the colour.&lt;/P&gt;
&lt;P&gt;If you have set a 'Hatched' fill, you will need to set both foreground and background pens to the same colour.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Barry.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Oct 2021 00:54:36 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/GDL-Acquiring-element-attributes-in-custom-labels/m-p/307985#M4333</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2021-10-01T00:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: GDL - Acquiring element attributes in custom labels</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/GDL-Acquiring-element-attributes-in-custom-labels/m-p/308048#M4334</link>
      <description>&lt;P&gt;I was missing that!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_sweat:"&gt;😅&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now it worked! Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 01 Oct 2021 14:49:13 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/GDL-Acquiring-element-attributes-in-custom-labels/m-p/308048#M4334</guid>
      <dc:creator>pedrocollares</dc:creator>
      <dc:date>2021-10-01T14:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: GDL - Acquiring element attributes in custom labels</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/GDL-Acquiring-element-attributes-in-custom-labels/m-p/340425#M4335</link>
      <description>&lt;P&gt;cann you share the label?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2022 08:38:45 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/GDL-Acquiring-element-attributes-in-custom-labels/m-p/340425#M4335</guid>
      <dc:creator>JanisL</dc:creator>
      <dc:date>2022-06-07T08:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: GDL - Acquiring element attributes in custom labels</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/GDL-Acquiring-element-attributes-in-custom-labels/m-p/340458#M4336</link>
      <description>&lt;P&gt;Hi JanisL&lt;/P&gt;&lt;P&gt;It was developed further since this topic was created. If you're interested I could tinker it to your use, you may contact me (&lt;A href="mailto:pedro@ideia1.com.br" target="_blank"&gt;pedro@ideia1.com.br)&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2022 11:31:35 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/GDL-Acquiring-element-attributes-in-custom-labels/m-p/340458#M4336</guid>
      <dc:creator>pedrocollares</dc:creator>
      <dc:date>2022-06-07T11:31:35Z</dc:date>
    </item>
  </channel>
</rss>

