<?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: DEFINE Attributes in a macro object in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/DEFINE-Attributes-in-a-macro-object/m-p/588277#M6318</link>
    <description>&lt;P&gt;Additional Question: How does the object subtype "Surface material definition" work?&lt;BR /&gt;Could this be a solution for my request?&lt;/P&gt;</description>
    <pubDate>Thu, 15 Feb 2024 09:36:45 GMT</pubDate>
    <dc:creator>Jochen Suehlo</dc:creator>
    <dc:date>2024-02-15T09:36:45Z</dc:date>
    <item>
      <title>DEFINE Attributes in a macro object</title>
      <link>https://community.graphisoft.com/t5/GDL/DEFINE-Attributes-in-a-macro-object/m-p/588206#M6315</link>
      <description>&lt;P&gt;I am having a great library of objects with Material-, Style-, Fill- Definitions that should be the same in all objects.&lt;BR /&gt;I have tested this with a macro, but more than one Material Definition does not work.&lt;BR /&gt;I do not want to define the materials in an Archicad template file, because out of the template the materials will be missing. I also do not want to use a master_gdl.gdl because I would like to prevent attribute pollution.&lt;BR /&gt;And having the same definition as an identical subroutine in 100 objects, is not an optimal solution.&lt;/P&gt;
&lt;P&gt;Here is the script of the definition macro:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;DEFINE MATERIAL "RA 7037" 4, 0.478, 0.478, 0.477
DEFINE MATERIAL "RAL 9022" 4, 0.522, 0.522, 0.513
mat_boden = IND(MATERIAL, "RAL 7037")
mat_korpus = IND(MATERIAL, "RAL 9022")
END mat_korpus, mat_boden&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here the Placing Object code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;CALL "DEFINE_MACRO" PARAMETERS RETURNED_PARAMETERS mat_boden, mat_korpus
ADDx 2
MATERIAL mat_korpus
BLOCK 1, 1, 1
DEL 1
CALL "AUSFUEHREN_MACRO" PARAMETERS mat_grau = mat_boden&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here the script of the external 3D Macro&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;MATERIAL mat_grau
BLOCK 1, 1, 1&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All 3 objects attached for AC 27&lt;BR /&gt;&lt;BR /&gt;Does anyone have a good solution?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2024 11:20:55 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/DEFINE-Attributes-in-a-macro-object/m-p/588206#M6315</guid>
      <dc:creator>Jochen Suehlo</dc:creator>
      <dc:date>2024-09-26T11:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: DEFINE Attributes in a macro object</title>
      <link>https://community.graphisoft.com/t5/GDL/DEFINE-Attributes-in-a-macro-object/m-p/588277#M6318</link>
      <description>&lt;P&gt;Additional Question: How does the object subtype "Surface material definition" work?&lt;BR /&gt;Could this be a solution for my request?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2024 09:36:45 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/DEFINE-Attributes-in-a-macro-object/m-p/588277#M6318</guid>
      <dc:creator>Jochen Suehlo</dc:creator>
      <dc:date>2024-02-15T09:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: DEFINE Attributes in a macro object</title>
      <link>https://community.graphisoft.com/t5/GDL/DEFINE-Attributes-in-a-macro-object/m-p/588764#M6332</link>
      <description>&lt;P&gt;Attributes defined in a macro can't be used in caller scripts, only called ones.&lt;/P&gt;
&lt;P&gt;"Surface definition" subtype is used in Surface Catalogs, the user has to import the materials he wants to use.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2024 10:53:17 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/DEFINE-Attributes-in-a-macro-object/m-p/588764#M6332</guid>
      <dc:creator>Peter Baksa</dc:creator>
      <dc:date>2024-02-19T10:53:17Z</dc:date>
    </item>
  </channel>
</rss>

