<?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: Stretch vs. parameters script in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Stretch-vs-parameters-script/m-p/190138#M16429</link>
    <description>&lt;BLOCKQUOTE&gt;piton wrote:&lt;BR /&gt;Hi all, I hope someone can help me out.&lt;BR /&gt;
Is this a bug or is something wrong with my understanding of the GDL program flow?&lt;/BLOCKQUOTE&gt;

With the help of GS it turned out to be a GDL programming error.&lt;BR /&gt;
&lt;BR /&gt;
The calculations need to be placed in the Master Script (parameters script isn't executed after resize).&lt;BR /&gt;
The tricky part is to set the parameters for the GDL and for the USER too.
&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;B = something  !for GDL
PARAMETERS B=B !for USER
&lt;/PRE&gt;</description>
    <pubDate>Sat, 21 Apr 2012 07:24:44 GMT</pubDate>
    <dc:creator>piton</dc:creator>
    <dc:date>2012-04-21T07:24:44Z</dc:date>
    <item>
      <title>Stretch vs. parameters script</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Stretch-vs-parameters-script/m-p/190136#M16427</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Hi all, I hope someone can help me out.&lt;BR /&gt;
&lt;BR /&gt;
I made a script for a 2D geometric problem.&lt;BR /&gt;
It has parameters computed from the bounding box's A, B size. The calculation is done in the Parameters script.&lt;BR /&gt;
I want to make it stretchy, but with the Edit-&amp;gt;...-&amp;gt;Resize command this strange thing happens: the bounding box resizes, in the info box the A, B parameters are updated, but the 2D is not redrawn. Only bringing up properties and OK-ing it redraws the 2D correctly.&lt;BR /&gt;
When I resize with dragging with the mouse, everything is perfect.&lt;BR /&gt;
&lt;BR /&gt;
Is this a bug or is something wrong with my understanding of the GDL program flow? Is there a resource that clarifies it?&lt;BR /&gt;
I'm using Archicad 14 4044.&lt;BR /&gt;
&lt;BR /&gt;
Thanks: piton&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 11 Oct 2011 15:27:06 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Stretch-vs-parameters-script/m-p/190136#M16427</guid>
      <dc:creator>piton</dc:creator>
      <dc:date>2011-10-11T15:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: Stretch vs. parameters script</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Stretch-vs-parameters-script/m-p/190137#M16428</link>
      <description>This seems related to this:&lt;BR /&gt;
&lt;A href="http://archicad-talk.graphisoft.com/viewtopic.php?p=196439#196439" target="_blank"&gt;&lt;LINK_TEXT text="http://archicad-talk.graphisoft.com/vie ... 439#196439"&gt;http://archicad-talk.graphisoft.com/viewtopic.php?p=196439#196439&lt;/LINK_TEXT&gt;&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Apparently, 15 has a problem updating the 2D display for objects after an Edit &amp;gt; Resize&lt;BR /&gt;
&lt;BR /&gt;
Karl</description>
      <pubDate>Tue, 11 Oct 2011 17:30:28 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Stretch-vs-parameters-script/m-p/190137#M16428</guid>
      <dc:creator>Karl Ottenstein</dc:creator>
      <dc:date>2011-10-11T17:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: Stretch vs. parameters script</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Stretch-vs-parameters-script/m-p/190138#M16429</link>
      <description>&lt;BLOCKQUOTE&gt;piton wrote:&lt;BR /&gt;Hi all, I hope someone can help me out.&lt;BR /&gt;
Is this a bug or is something wrong with my understanding of the GDL program flow?&lt;/BLOCKQUOTE&gt;

With the help of GS it turned out to be a GDL programming error.&lt;BR /&gt;
&lt;BR /&gt;
The calculations need to be placed in the Master Script (parameters script isn't executed after resize).&lt;BR /&gt;
The tricky part is to set the parameters for the GDL and for the USER too.
&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;B = something  !for GDL
PARAMETERS B=B !for USER
&lt;/PRE&gt;</description>
      <pubDate>Sat, 21 Apr 2012 07:24:44 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Stretch-vs-parameters-script/m-p/190138#M16429</guid>
      <dc:creator>piton</dc:creator>
      <dc:date>2012-04-21T07:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: Stretch vs. parameters script</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Stretch-vs-parameters-script/m-p/190139#M16430</link>
      <description>I am attaching the modified object based on the brief comment below.&lt;BR /&gt;
The total solution involves that I change only the parameters that need to be changed: in a very complicated way PARAMETERS A=&lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;a&lt;E&gt;&lt;/E&gt; when A already was equal to &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;a&lt;E&gt;&lt;/E&gt; caused another strange behaviour, drawing and displaying the parameters correctly, but incorrectly during hotspot editing.&lt;BR /&gt;
So it is good practice, that when you have parameters dependent on eachother, the way of the dependence selected by GLOB_MODPAR_NAME, to change as few parameters as needed.&lt;BR /&gt;
&lt;BR /&gt;
An interesting thing is that GLOB_MODPAR_NAME is valid in the master script too.</description>
      <pubDate>Thu, 26 Apr 2012 08:44:54 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Stretch-vs-parameters-script/m-p/190139#M16430</guid>
      <dc:creator>piton</dc:creator>
      <dc:date>2012-04-26T08:44:54Z</dc:date>
    </item>
  </channel>
</rss>

