<?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: Label_Marker_Form &amp;amp; bmat_ID in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/GDL-Multi-Use-Code-Label/m-p/706326#M8542</link>
    <description>&lt;P&gt;I found out where those values are coming into the label. They are brought in from the&amp;nbsp;&lt;STRONG&gt;label_content_macro&lt;/STRONG&gt; and written into the&amp;nbsp;&lt;STRONG&gt;_sRowsOfLabel&lt;/STRONG&gt; array. To resolve my issue when it comes to the building materials of beams or columns, I just uniformly overrode the array under the relevant circumstances.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;		returned_parameters  _nRowLabel, tempsRowsOfLabel

		! making from one dimensioned array to two dimensioned
		idx = 0
		dim _sRowsOfLabel[][]
			_sRowsOfLabel[1][1] = ""
		for i = 1 to 1!_nRowLabel
			for j = 1 to 48
				IF bSurface = 0 &amp;amp; GLOB_ELEM_TYPE = 6 | bSurface = 0 &amp;amp; GLOB_ELEM_TYPE = 12 then					!Beam or Column Building Material		
						_sRowsOfLabel[i][j] = ""
					ELSE
						_sRowsOfLabel[i][j] = tempsRowsOfLabel[idx + j]
				endIF
			next j
			idx = idx + 48
		next i&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ling.&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="Lingwisyer_0-1782283961224.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/102555i5F506959F14F3042/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Lingwisyer_0-1782283961224.png" alt="Lingwisyer_0-1782283961224.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 24 Jun 2026 06:52:45 GMT</pubDate>
    <dc:creator>Lingwisyer</dc:creator>
    <dc:date>2026-06-24T06:52:45Z</dc:date>
    <item>
      <title>GDL: Multi Use Code Label</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-Multi-Use-Code-Label/m-p/706119#M8533</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.graphisoft.com/t5/GDL/Hack-the-Surface-Label/m-p/621379" target="_blank" rel="noopener"&gt;https://community.graphisoft.com/t5/GDL/Hack-the-Surface-Label/m-p/621379&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;*Fixed and updated attached. Working in AC22+&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Display the building material, surface, composite or complex profile for most building elements. For building materials, it displays the building material ID of the chosen outside face. For the rest, it splits out the part of the attribute name set by a delimiter. For composites, this allows you to put something like a core code in one part of the name and a unique code in another.&lt;/SPAN&gt;&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="Lingwisyer_0-1782287156708.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/102558iD849706A411C3278/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Lingwisyer_0-1782287156708.png" alt="Lingwisyer_0-1782287156708.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRIKE&gt;Following on from this thread about splitting &lt;EM&gt;Surface&lt;/EM&gt; names, I got it working with &lt;EM&gt;Composite&lt;/EM&gt; and &lt;EM&gt;CP&lt;/EM&gt; names, but have run into an issue with&amp;nbsp;&lt;EM&gt;Building Materials&lt;/EM&gt; when it comes to beams and columns... For all situations I have it working, I just replaced the &lt;STRONG&gt;_sContentStringsHead[1][5]&lt;/STRONG&gt;&amp;nbsp;parameter with the value that I wanted displayed to then be passed on into the&amp;nbsp;&lt;STRONG&gt;label_marker_form &lt;/STRONG&gt;stock&amp;nbsp;macro to be displayed. For what ever reason though, the value that I am inserting is getting placed between a pair of numbers followed by a &lt;STRONG&gt;bmat_ID&amp;nbsp;&lt;/STRONG&gt;from the element. For beams, this is the number Zero. For columns it is Zero/One for the core, else One. The extra bmat_ID for columns seems to always be the core. If I do not insert anything in the the&amp;nbsp;&lt;STRONG&gt;_sContentStringsHead[1][5]&lt;/STRONG&gt;&amp;nbsp;parameter these numbers bound a "x" usually. The veneer bmat shows if there is one though...&lt;/STRIKE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[old image]&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;_sContentStringsHead[1][5]&lt;/STRONG&gt;&amp;nbsp;= bmat_id&lt;/P&gt;
&lt;P&gt;[old image]&lt;/P&gt;
&lt;P&gt;Default &lt;STRONG&gt;_sContentStringsHead[1][5]&lt;/STRONG&gt;&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;
&lt;P&gt;Ling.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" color="grey"&gt;Operating system used: &lt;EM&gt;Windows &lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jun 2026 07:47:35 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-Multi-Use-Code-Label/m-p/706119#M8533</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2026-06-24T07:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: GDL: Label_Marker_Form &amp; bmat_ID</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-Multi-Use-Code-Label/m-p/706326#M8542</link>
      <description>&lt;P&gt;I found out where those values are coming into the label. They are brought in from the&amp;nbsp;&lt;STRONG&gt;label_content_macro&lt;/STRONG&gt; and written into the&amp;nbsp;&lt;STRONG&gt;_sRowsOfLabel&lt;/STRONG&gt; array. To resolve my issue when it comes to the building materials of beams or columns, I just uniformly overrode the array under the relevant circumstances.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;		returned_parameters  _nRowLabel, tempsRowsOfLabel

		! making from one dimensioned array to two dimensioned
		idx = 0
		dim _sRowsOfLabel[][]
			_sRowsOfLabel[1][1] = ""
		for i = 1 to 1!_nRowLabel
			for j = 1 to 48
				IF bSurface = 0 &amp;amp; GLOB_ELEM_TYPE = 6 | bSurface = 0 &amp;amp; GLOB_ELEM_TYPE = 12 then					!Beam or Column Building Material		
						_sRowsOfLabel[i][j] = ""
					ELSE
						_sRowsOfLabel[i][j] = tempsRowsOfLabel[idx + j]
				endIF
			next j
			idx = idx + 48
		next i&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ling.&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="Lingwisyer_0-1782283961224.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/102555i5F506959F14F3042/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Lingwisyer_0-1782283961224.png" alt="Lingwisyer_0-1782283961224.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jun 2026 06:52:45 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-Multi-Use-Code-Label/m-p/706326#M8542</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2026-06-24T06:52:45Z</dc:date>
    </item>
  </channel>
</rss>

