<?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: Parameter script default value in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Parameter-script-default-value/m-p/308584#M4371</link>
    <description>&lt;P&gt;Only the parameter script can set parameters, so no.&lt;/P&gt;
&lt;P&gt;You can manually trigger a parameter script run on all placed objects with the Library Developer menu command Run Parameter Script on Placed Library Parts.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The parameter script is also run after forward migration.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Copy the GUID of the object in the libpart editor (Edit / Insert Own GUID)&lt;/LI&gt;
&lt;LI&gt;Paste it into a new MIgration table entry
&lt;OL&gt;
&lt;LI&gt;check AutoMigration if the migration scripts are empty&lt;/LI&gt;
&lt;LI&gt;or add an empty migration step if there is existing migration code&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;LI&gt;Save the object as a new one (Create New Library Part in the Save As dialog).&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;This way the old placed objects will be migrated to the new when loading the new library part. You don't have to open each file, but the users have to manually add the new library part in library manager.&lt;/P&gt;</description>
    <pubDate>Thu, 07 Oct 2021 12:29:54 GMT</pubDate>
    <dc:creator>Peter Baksa</dc:creator>
    <dc:date>2021-10-07T12:29:54Z</dc:date>
    <item>
      <title>Parameter script default value</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Parameter-script-default-value/m-p/308414#M4368</link>
      <description>&lt;P&gt;Hallo all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I creat a new Parameter (para1) inside an existing object it has a default value. Let's say the value is "".&lt;/P&gt;
&lt;P&gt;now I change the value of the parameter in the Masterscript, then write in the Parameter script (Parameters&amp;nbsp;para1&amp;nbsp; =&amp;nbsp;&amp;nbsp;Parameters&amp;nbsp;para1)&lt;/P&gt;
&lt;P&gt;the value doesn't change unless I run the Parameter script for all the objects so that the value changes.&lt;/P&gt;
&lt;P&gt;Is there a way to avoid runing the Parameter script when I creat a new Parameter in an existing object with a value calculated from the master script?&lt;/P&gt;
&lt;P&gt;Because there are thausends of objects and hundreds of files. when I run the parameter script it works, but it takes a lot of time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;best regards&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2024 09:13:22 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Parameter-script-default-value/m-p/308414#M4368</guid>
      <dc:creator>Ady84a</dc:creator>
      <dc:date>2024-09-09T09:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter script default value</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Parameter-script-default-value/m-p/308415#M4369</link>
      <description>&lt;P&gt;If the objects are placed then if You update the object and add some parameter, after relading libraries in the project they will get the default value as You edited. The problem is with existing parameter and if the default is changed...&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2021 14:00:03 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Parameter-script-default-value/m-p/308415#M4369</guid>
      <dc:creator>Piotr Dobrowolski</dc:creator>
      <dc:date>2021-10-06T14:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter script default value</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Parameter-script-default-value/m-p/308497#M4370</link>
      <description>&lt;P&gt;Change the name of the parameter, probably breaking the object. Propagate the change. Fix the name with the new default value. Propagate the fix? Though now you are spending all the time reloading libraries which you could have spent selecting all and manually changing the values...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Though, if the value is calculated in the Master Script, what the parameters list shows is not relevant anyway and has no effect on the output?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2021 01:37:42 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Parameter-script-default-value/m-p/308497#M4370</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2021-10-07T01:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter script default value</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Parameter-script-default-value/m-p/308584#M4371</link>
      <description>&lt;P&gt;Only the parameter script can set parameters, so no.&lt;/P&gt;
&lt;P&gt;You can manually trigger a parameter script run on all placed objects with the Library Developer menu command Run Parameter Script on Placed Library Parts.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The parameter script is also run after forward migration.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Copy the GUID of the object in the libpart editor (Edit / Insert Own GUID)&lt;/LI&gt;
&lt;LI&gt;Paste it into a new MIgration table entry
&lt;OL&gt;
&lt;LI&gt;check AutoMigration if the migration scripts are empty&lt;/LI&gt;
&lt;LI&gt;or add an empty migration step if there is existing migration code&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;LI&gt;Save the object as a new one (Create New Library Part in the Save As dialog).&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;This way the old placed objects will be migrated to the new when loading the new library part. You don't have to open each file, but the users have to manually add the new library part in library manager.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2021 12:29:54 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Parameter-script-default-value/m-p/308584#M4371</guid>
      <dc:creator>Peter Baksa</dc:creator>
      <dc:date>2021-10-07T12:29:54Z</dc:date>
    </item>
  </channel>
</rss>

