<?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: ok - I need help on this simple command in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/ok-I-need-help-on-this-simple-command/m-p/26774#M35620</link>
    <description>ok - so I remove all the grouping work and I can see the top courses being extended.  But I need the grouping commands so that I can do the solid object operations.&lt;BR /&gt;
&lt;BR /&gt;
Is there another way I can do my 'cutting' without using the group commands?  I look through the ArchiCAD help GDL Reference sectiona nd I can't find anything.&lt;BR /&gt;
&lt;BR /&gt;
What is it, then, about the grouping that is not allowing a change of the clx variable?</description>
    <pubDate>Fri, 05 Aug 2005 15:51:53 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2005-08-05T15:51:53Z</dc:date>
    <item>
      <title>ok - I need help on this simple command</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/ok-I-need-help-on-this-simple-command/m-p/26772#M35618</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;I beat my head against the wall for too long yesterday (read: all day) so now I present it to yall to make me see my simple error that I can't seem to find.&lt;BR /&gt;
&lt;BR /&gt;
I am running a for loop and when the for loop reaches a certain point, I want to change the value of a variable for creation of a cylinder.  See the code:&lt;BR /&gt;
&lt;BR /&gt;
stopper = (courses - tcxn)     ! (turns out to be 6)&lt;BR /&gt;
FOR coursenum=1 TO courses STEP 1&lt;BR /&gt;
&lt;BR /&gt;
  IF coursenum &amp;gt; stopper THEN          ! why is this not working?&lt;BR /&gt;
    clx = 5&lt;BR /&gt;
  ELSE&lt;BR /&gt;
    clx = 1&lt;BR /&gt;
  ENDIF&lt;BR /&gt;
&lt;BR /&gt;
GROUP "keeper"&lt;BR /&gt;
CYLIND  clx, A/2&lt;BR /&gt;
ENDGROUP&lt;BR /&gt;
  GROUP "loser"&lt;BR /&gt;
   ADDy -stack&lt;BR /&gt;
     CYLIND  clx, A/2&lt;BR /&gt;
   DEL 1&lt;BR /&gt;
  ENDGROUP&lt;BR /&gt;
  finallog = SUBGROUP("keeper","loser")&lt;BR /&gt;
  PLACEGROUP finallog&lt;BR /&gt;
&lt;BR /&gt;
NEXT coursenum&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
SOOOOO why are the cylinders not being created at different hieghts?  when coursenum reaches 7 (&amp;gt;6) the cylinders should start being created at 5 instead of 1.  Is there something I don't know about the GROUPing command that could be causing the problem?  I KNOW it shouldn't be this difficult but I just can't seem to find where I am going wrong.&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 05 Aug 2005 14:51:08 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/ok-I-need-help-on-this-simple-command/m-p/26772#M35618</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-08-05T14:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: ok - I need help on this simple command</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/ok-I-need-help-on-this-simple-command/m-p/26773#M35619</link>
      <description>I tried a little with archicad 7: no group command, so I deleted all related lines. &lt;BR /&gt;
result: I saw only 2 cylinds, but different heights. I added the addx command at the end: it worked. so it seems not to be a problem of the line you marked but with placement of the parts or with group commands&lt;BR /&gt;
&lt;BR /&gt;
maybe this is what you need (?) or perhaps it helps (?) &lt;BR /&gt;
best regards, g</description>
      <pubDate>Fri, 05 Aug 2005 15:37:01 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/ok-I-need-help-on-this-simple-command/m-p/26773#M35619</guid>
      <dc:creator>gerd</dc:creator>
      <dc:date>2005-08-05T15:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: ok - I need help on this simple command</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/ok-I-need-help-on-this-simple-command/m-p/26774#M35620</link>
      <description>ok - so I remove all the grouping work and I can see the top courses being extended.  But I need the grouping commands so that I can do the solid object operations.&lt;BR /&gt;
&lt;BR /&gt;
Is there another way I can do my 'cutting' without using the group commands?  I look through the ArchiCAD help GDL Reference sectiona nd I can't find anything.&lt;BR /&gt;
&lt;BR /&gt;
What is it, then, about the grouping that is not allowing a change of the clx variable?</description>
      <pubDate>Fri, 05 Aug 2005 15:51:53 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/ok-I-need-help-on-this-simple-command/m-p/26774#M35620</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-08-05T15:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: ok - I need help on this simple command</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/ok-I-need-help-on-this-simple-command/m-p/26775#M35621</link>
      <description>well I'm working around the issue by multiplying my code but it is semi-working now.  It would sure be easier if I could modify that variable.  anyone else?</description>
      <pubDate>Fri, 05 Aug 2005 16:56:04 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/ok-I-need-help-on-this-simple-command/m-p/26775#M35621</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-08-05T16:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: ok - I need help on this simple command</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/ok-I-need-help-on-this-simple-command/m-p/26776#M35622</link>
      <description>With GROUP ENDGROUP you define something like a makro. With the additional statements SUBGROUP etc. you can operate between the groups and generate by this a new group. With PLACEGROUP it will be made visible. All other statements just declare the shape, but are not generating something to the model. All theory and not proofed by myself, but sounds simple and logical.&lt;BR /&gt;
&lt;BR /&gt;
What value has &lt;B&gt;stack&lt;/B&gt;? It sould be 0&amp;lt;stack&amp;lt;a/2.</description>
      <pubDate>Fri, 05 Aug 2005 18:13:53 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/ok-I-need-help-on-this-simple-command/m-p/26776#M35622</guid>
      <dc:creator>Frank Beister</dc:creator>
      <dc:date>2005-08-05T18:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: ok - I need help on this simple command</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/ok-I-need-help-on-this-simple-command/m-p/26777#M35623</link>
      <description>&lt;BLOCKQUOTE&gt;sirduncan wrote:&lt;BR /&gt; code:&lt;BR /&gt;
&lt;BR /&gt;
stopper = (courses - tcxn)     ! (turns out to be 6)&lt;BR /&gt;
FOR coursenum=1 TO courses STEP 1&lt;BR /&gt;
&lt;BR /&gt;
  IF coursenum &amp;gt; stopper THEN          ! why is this not working?&lt;BR /&gt;
    clx = 5&lt;BR /&gt;
  ELSE&lt;BR /&gt;
    clx = 1&lt;BR /&gt;
  ENDIF&lt;BR /&gt;

&lt;/BLOCKQUOTE&gt;
It is the end of the day here so I might be missing something but how can coursenum ever be larger than stopper unless tcxn is negative since the max value coursenum can ever have is courses.</description>
      <pubDate>Mon, 08 Aug 2005 09:35:18 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/ok-I-need-help-on-this-simple-command/m-p/26777#M35623</guid>
      <dc:creator>Aussie John</dc:creator>
      <dc:date>2005-08-08T09:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: ok - I need help on this simple command</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/ok-I-need-help-on-this-simple-command/m-p/26778#M35624</link>
      <description>Thanks, everyone, for your comments and thoughts.  I have it working now very close to what I am looking for.  I had to work around it and add a significant amount of code to the object, but it is working now.&lt;BR /&gt;
&lt;BR /&gt;
It wasn't the IF check on coursenum and stopper that wasn't working.  What wasn't working was that inside of the GROUP command, my variable wasn't taking on the new value.  Why?  I don't know.  And now I don't really care because instead, I made a second variable and adjusted that one as needed.  So now that works.&lt;BR /&gt;
&lt;BR /&gt;
Now onto the next stage.  It sure would be easier if I could get my hands on that GDL cookbook.  Anyone know where I can get one?&lt;BR /&gt;
&lt;BR /&gt;
Thanks again for your help.</description>
      <pubDate>Mon, 08 Aug 2005 15:48:21 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/ok-I-need-help-on-this-simple-command/m-p/26778#M35624</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-08-08T15:48:21Z</dc:date>
    </item>
  </channel>
</rss>

