<?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: using repeat command in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/using-repeat-command/m-p/228149#M8922</link>
    <description>David&lt;BR /&gt;
&lt;BR /&gt;
there was a repeat in the sub codes which used i. Simply changing the this to J in the 'main' script resolved the issue.&lt;BR /&gt;
&lt;BR /&gt;
Lesson use a different letter for each Repeat.&lt;BR /&gt;
&lt;BR /&gt;
Many Thanks</description>
    <pubDate>Tue, 27 Oct 2015 13:07:10 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-10-27T13:07:10Z</dc:date>
    <item>
      <title>using repeat command</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/using-repeat-command/m-p/228145#M8918</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;First time using GDL (I was brave after a masters of archiCAD video)&lt;BR /&gt;
&lt;BR /&gt;
im trying to do a if and repeat command.&lt;BR /&gt;
&lt;BR /&gt;
if (no_pan_0-sla_pan_0)&amp;gt;0 then&lt;BR /&gt;
&lt;BR /&gt;
	i=1&lt;BR /&gt;
	repeat&lt;BR /&gt;
		gosub 20&lt;BR /&gt;
		add2 pan_m,0&lt;BR /&gt;
		i= i+1&lt;BR /&gt;
	until i&amp;gt;(no_pan_0-sla_pan_0)&lt;BR /&gt;
&lt;BR /&gt;
endif&lt;BR /&gt;
&lt;BR /&gt;
it works perfectly in 2D as left hand side of image shows but in 3D it doesn't. The object is for a kit of parts that the client has designed and so it can have a comination of panel types. Hence the if and repeat.&lt;BR /&gt;
&lt;BR /&gt;
the best the 3D gets is one of each panel type. &lt;BR /&gt;
&lt;BR /&gt;
Any assistance greatly welcomed.&lt;/T&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;IMG src="http://community.graphisoft.com/t5/image/serverpage/image-id/68717iBBFEE1BD0903F70A/image-size/large?v=v2&amp;amp;px=999" border="0" alt="Untitled-1.jpg" title="Untitled-1.jpg" /&gt;</description>
      <pubDate>Mon, 26 Oct 2015 17:24:25 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/using-repeat-command/m-p/228145#M8918</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-26T17:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: using repeat command</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/using-repeat-command/m-p/228146#M8919</link>
      <description>Hi.&lt;BR /&gt;
&lt;BR /&gt;
You are just showing the 2D script, right? (I only see ADD2)&lt;BR /&gt;
&lt;BR /&gt;
Remember that 2D script and 3D script are different things. You might get by with one REPEAT cycle in 2D, but in 3D you may need more to accomplish what you want. You may be missing some coordinate transformations to correctly position the panels in each iteration.&lt;BR /&gt;
&lt;BR /&gt;
Other than that, is difficult to know how you want the object to work.&lt;BR /&gt;
&lt;BR /&gt;
Best regards.</description>
      <pubDate>Mon, 26 Oct 2015 18:38:02 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/using-repeat-command/m-p/228146#M8919</guid>
      <dc:creator>sinceV6</dc:creator>
      <dc:date>2015-10-26T18:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: using repeat command</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/using-repeat-command/m-p/228147#M8920</link>
      <description>SinceV6&lt;BR /&gt;
&lt;BR /&gt;
code posted was 2d sorry. 3D repeat code is:&lt;BR /&gt;
&lt;BR /&gt;
if (no_pan_0-sla_pan_0)&amp;gt;0 then&lt;BR /&gt;
&lt;BR /&gt;
	i=1&lt;BR /&gt;
	repeat&lt;BR /&gt;
		gosub 20&lt;BR /&gt;
		addx pan_m&lt;BR /&gt;
		i= i+1&lt;BR /&gt;
	until i&amp;gt;(no_pan_0-sla_pan_0)&lt;BR /&gt;
&lt;BR /&gt;
endif&lt;BR /&gt;
&lt;BR /&gt;
the transformations to the next screen works otherwise the slatted panel would be over or further from the solid one.&lt;BR /&gt;
&lt;BR /&gt;
I have a sub set for each type (slatted or solid) and I want the script to be able to repeat that sub for however many times it needs. So if in the future we can have a 6 panel long leg then I just change one small bit of code.</description>
      <pubDate>Tue, 27 Oct 2015 09:04:13 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/using-repeat-command/m-p/228147#M8920</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-27T09:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: using repeat command</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/using-repeat-command/m-p/228148#M8921</link>
      <description>tlodge:&lt;BR /&gt;
&lt;BR /&gt;
One thing to check is the subroutine 20, to make sure it is not deleting the Add command or assigning "i" a different value.&lt;BR /&gt;
&lt;BR /&gt;
You can zip and then post the object here, debugging is much easier when the entire code and parameters can be seen.&lt;BR /&gt;
&lt;BR /&gt;
David</description>
      <pubDate>Tue, 27 Oct 2015 12:55:13 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/using-repeat-command/m-p/228148#M8921</guid>
      <dc:creator>David Maudlin</dc:creator>
      <dc:date>2015-10-27T12:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: using repeat command</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/using-repeat-command/m-p/228149#M8922</link>
      <description>David&lt;BR /&gt;
&lt;BR /&gt;
there was a repeat in the sub codes which used i. Simply changing the this to J in the 'main' script resolved the issue.&lt;BR /&gt;
&lt;BR /&gt;
Lesson use a different letter for each Repeat.&lt;BR /&gt;
&lt;BR /&gt;
Many Thanks</description>
      <pubDate>Tue, 27 Oct 2015 13:07:10 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/using-repeat-command/m-p/228149#M8922</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-27T13:07:10Z</dc:date>
    </item>
  </channel>
</rss>

