<?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: How to run a macro's parameter script from a main object without code duplication? in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/How-to-run-a-macro-s-parameter-script-from-a-main-object-without/m-p/703936#M8472</link>
    <description>&lt;P&gt;If you have the same parameters in the list of your main object that you use in the macro,&amp;nbsp;you should then be able to call the macro from the parameter script in the main object.&lt;/P&gt;
&lt;P&gt;You can hide the parameters in the main object if you don't want the user to see them.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Barry.&lt;/P&gt;</description>
    <pubDate>Fri, 29 May 2026 04:35:29 GMT</pubDate>
    <dc:creator>Barry Kelly</dc:creator>
    <dc:date>2026-05-29T04:35:29Z</dc:date>
    <item>
      <title>How to run a macro's parameter script from a main object without code duplication?</title>
      <link>https://community.graphisoft.com/t5/GDL/How-to-run-a-macro-s-parameter-script-from-a-main-object-without/m-p/703873#M8470</link>
      <description>&lt;DIV class="n6owBd awi2gc" data-copy-service-computed-style="font-family: &amp;quot;Google Sans&amp;quot;, Arial, sans-serif; font-size: 16px; font-weight: 400; margin: 12px 0px 16px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);" data-processed="true" data-complete="true" data-hveid="CAAICBAA" data-sfc-cb="" data-sfc-root="c" data-sfc-cp=""&gt;Hi Everyone,&lt;/DIV&gt;
&lt;DIV class="n6owBd awi2gc" data-copy-service-computed-style="font-family: &amp;quot;Google Sans&amp;quot;, Arial, sans-serif; font-size: 16px; font-weight: 400; margin: 12px 0px 16px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);" data-processed="true" data-complete="true" data-hveid="CAAICRAA" data-sfc-cb="" data-sfc-root="c" data-sfc-cp=""&gt;I have created a modular sub-object (macro) that includes its own &lt;STRONG class="Yjhzub" data-copy-service-computed-style="font-family: &amp;quot;Google Sans&amp;quot;, Arial, sans-serif; font-size: 16px; font-weight: 700; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);" data-processed="true" data-complete="true" data-sfc-cb="" data-sfc-root="c"&gt;Parameter Script&lt;/STRONG&gt; to handle dynamic value lists (&lt;CODE class="KDcb0c" dir="ltr" data-copy-service-computed-style="font-family: monospace; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0.727273px solid rgb(44, 46, 53);" data-sae="" data-complete="true" data-sfc-cb="" data-sfc-root="c"&gt;values&lt;/CODE&gt; commands) and parameter constraints.&lt;/DIV&gt;
&lt;DIV class="n6owBd awi2gc" data-copy-service-computed-style="font-family: &amp;quot;Google Sans&amp;quot;, Arial, sans-serif; font-size: 16px; font-weight: 400; margin: 12px 0px 16px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);" data-processed="true" data-complete="true" data-hveid="CAAIChAA" data-sfc-cb="" data-sfc-root="c" data-sfc-cp=""&gt;I want to call this macro from a Main (controller) object. Currently, it only works if I completely copy-paste the macro's Parameter Script into the Main object's Parameter Script. If I don't copy the code, the dynamic drop-down lists do not appear or work in the Main object's default parameter list.&lt;/DIV&gt;
&lt;DIV class="n6owBd awi2gc" data-copy-service-computed-style="font-family: &amp;quot;Google Sans&amp;quot;, Arial, sans-serif; font-size: 16px; font-weight: 400; margin: 12px 0px 16px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);" data-processed="true" data-complete="true" data-hveid="CAAICxAA" data-sfc-cb="" data-sfc-root="c" data-sfc-cp=""&gt;&lt;STRONG class="Yjhzub" data-copy-service-computed-style="font-family: &amp;quot;Google Sans&amp;quot;, Arial, sans-serif; font-size: 16px; font-weight: 700; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);" data-processed="true" data-complete="true" data-sfc-cb="" data-sfc-root="c"&gt;My question is:&lt;/STRONG&gt;&lt;BR data-copy-service-computed-style="font-family: &amp;quot;Google Sans&amp;quot;, Arial, sans-serif; font-size: 16px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);" data-processed="true" data-complete="true" data-sfc-cb="" data-sfc-pl="|[]" data-sfc-root="c" /&gt;Is there a clean, simple way to trigger or execute a macro's Parameter Script from a Main object &lt;EM class="eujQNb" data-copy-service-computed-style="font-family: &amp;quot;Google Sans&amp;quot;, Arial, sans-serif; font-size: 16px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);" data-processed="true" data-complete="true" data-sfc-cb="" data-sfc-root="c"&gt;without&lt;/EM&gt; duplicating/copying the code into the Main object?&lt;/DIV&gt;
&lt;DIV class="n6owBd awi2gc" data-copy-service-computed-style="font-family: &amp;quot;Google Sans&amp;quot;, Arial, sans-serif; font-size: 16px; font-weight: 400; margin: 12px 0px 16px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);" data-processed="true" data-complete="true" data-hveid="CAAIDBAA" data-sfc-cb="" data-sfc-root="c" data-sfc-cp=""&gt;I want to use the &lt;STRONG class="Yjhzub" data-copy-service-computed-style="font-family: &amp;quot;Google Sans&amp;quot;, Arial, sans-serif; font-size: 16px; font-weight: 700; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);" data-processed="true" data-complete="true" data-sfc-cb="" data-sfc-root="c"&gt;standard default parameter list&lt;/STRONG&gt; of the Main object, and I would like to avoid building a custom Interface Script if possible.&lt;/DIV&gt;
&lt;DIV class="n6owBd awi2gc" data-copy-service-computed-style="font-family: &amp;quot;Google Sans&amp;quot;, Arial, sans-serif; font-size: 16px; font-weight: 400; margin: 12px 0px 16px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);" data-processed="true" data-complete="true" data-hveid="CAAIDRAA" data-sfc-cb="" data-sfc-root="c" data-sfc-cp=""&gt;Thank you!&lt;/DIV&gt;
&lt;DIV class="Fsg96" data-copy-service-computed-style="font-family: &amp;quot;Google Sans&amp;quot;, Arial, sans-serif; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);" data-processed="true" data-complete="true" data-sfc-cb="" data-sfc-root="c" data-sfc-cp=""&gt;Gábor&lt;/DIV&gt;
&lt;HR data-copy-service-computed-style="font-family: &amp;quot;Google Sans&amp;quot;, Arial, sans-serif; font-size: 14px; font-weight: 400; margin: 32px 0px; text-decoration: none; border-bottom: 0px rgb(128, 128, 128);" data-sae="" data-processed="true" data-complete="true" data-sfc-cb="" data-sfc-pl="|[]" data-sfc-root="c" /&gt;
&lt;DIV class="n6owBd awi2gc" data-copy-service-computed-style="font-family: &amp;quot;Google Sans&amp;quot;, Arial, sans-serif; font-size: 16px; font-weight: 400; margin: 12px 0px 16px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);" aria-owns="action-menu-parent-container" data-processed="true" data-complete="true" data-hveid="CAAIDxAA" data-sfc-cb="" data-sfc-root="c" data-sfc-cp=""&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 10&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 28 May 2026 16:37:36 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/How-to-run-a-macro-s-parameter-script-from-a-main-object-without/m-p/703873#M8470</guid>
      <dc:creator>Gabor Szelei</dc:creator>
      <dc:date>2026-05-28T16:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to run a macro's parameter script from a main object without code duplication?</title>
      <link>https://community.graphisoft.com/t5/GDL/How-to-run-a-macro-s-parameter-script-from-a-main-object-without/m-p/703936#M8472</link>
      <description>&lt;P&gt;If you have the same parameters in the list of your main object that you use in the macro,&amp;nbsp;you should then be able to call the macro from the parameter script in the main object.&lt;/P&gt;
&lt;P&gt;You can hide the parameters in the main object if you don't want the user to see them.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Barry.&lt;/P&gt;</description>
      <pubDate>Fri, 29 May 2026 04:35:29 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/How-to-run-a-macro-s-parameter-script-from-a-main-object-without/m-p/703936#M8472</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2026-05-29T04:35:29Z</dc:date>
    </item>
  </channel>
</rss>

