<?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: Groups &amp;amp; SOE within Loops in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Groups-amp-SOE-within-Loops/m-p/124747#M14134</link>
    <description>Group names can't be reused in the same script. not even if previously killed. &lt;BR /&gt;
 &lt;BR /&gt;
This one works for me: 
&lt;PRE&gt;DIM subtractedFooting [] 
DIM finished[] 
 
GROUP 'Pile' !!!!Group for Solid operation  
BLOCK pileSize, pileSize, pileFootingDeptht  
ENDGROUP  
 
GROUP 'Footing'  
BLOCK footingSize, footingSize, footingDepth  
ENDGROUP  
 
FOR k = 0 TO A STEP pileCentres  
ADDX k  
GOSUB 100:  
NEXT k  
KILLGROUP 'Footing'  
KILLGROUP 'Pile'  
 
END  
 
100: ! Piles  
 
subtractedFooting[k+1] = SUBGROUP('Footing', 'Pile')  
finished[k+1] = SUBGROUP(subtractedFooting[k+1], 'Pile')  
PLACEGROUP finished [k+1] 
 
KILLGROUP finished [k+1] 
 
RETURN  
 &lt;/PRE&gt; &lt;BR /&gt;
 &lt;BR /&gt;
But, if elements are all the same, why not simply repeat the placement? &lt;BR /&gt;
i.e., after defining the groups: &lt;BR /&gt;
 
&lt;PRE&gt;FOR k = 0 TO A STEP pileCentres 
PLACEGROUP finished 
ADDx k 
NEXT k&lt;/PRE&gt;</description>
    <pubDate>Mon, 04 Mar 2013 07:27:38 GMT</pubDate>
    <dc:creator>rocorona</dc:creator>
    <dc:date>2013-03-04T07:27:38Z</dc:date>
    <item>
      <title>Groups &amp; SOE within Loops</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Groups-amp-SOE-within-Loops/m-p/124746#M14133</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Hi there, &lt;BR /&gt;
&lt;BR /&gt;
I am creating a pile layout &amp;amp; want the piles to cut away the footings.&lt;BR /&gt;
I can do this easily within the script using groups, &amp;amp; a operation but it doesnt work within the loop:&lt;BR /&gt;
&lt;BR /&gt;
The Solid Operation works fine on the first pile but none of the others show up. Do I need to put the group/ Subgroup elsewhere?&lt;BR /&gt;
 &lt;BR /&gt;
ie:&lt;BR /&gt;
&lt;BR /&gt;
FOR k = 0 TO A  STEP pileCentres&lt;BR /&gt;
ADDX k&lt;BR /&gt;
GOSUB 100:&lt;BR /&gt;
NEXT k&lt;BR /&gt;
&lt;BR /&gt;
END&lt;BR /&gt;
&lt;BR /&gt;
100: ! Piles&lt;BR /&gt;
GROUP 'Pile'  !!!!Group for Solid operation&lt;BR /&gt;
BLOCK 	pileSize, pileSize, pileFootingDeptht&lt;BR /&gt;
ENDGROUP&lt;BR /&gt;
&lt;BR /&gt;
GROUP 'Footing'&lt;BR /&gt;
BLOCK 	footingSize, footingSize, footingDepth &lt;BR /&gt;
ENDGROUP&lt;BR /&gt;
&lt;BR /&gt;
subtractedFooting = SUBGROUP('Footing', 'Pile')&lt;BR /&gt;
finished = SUBGROUP(subtractedFooting, 'Pile')&lt;BR /&gt;
PLACEGROUP finished&lt;BR /&gt;
&lt;BR /&gt;
KILLGROUP 'Footing'&lt;BR /&gt;
KILLGROUP 'Pile'&lt;BR /&gt;
KILLGROUP finished&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
RETURN&lt;BR /&gt;
&lt;BR /&gt;
Please Help!! thanks!!&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 04 Mar 2013 04:37:18 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Groups-amp-SOE-within-Loops/m-p/124746#M14133</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-04T04:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: Groups &amp; SOE within Loops</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Groups-amp-SOE-within-Loops/m-p/124747#M14134</link>
      <description>Group names can't be reused in the same script. not even if previously killed. &lt;BR /&gt;
 &lt;BR /&gt;
This one works for me: 
&lt;PRE&gt;DIM subtractedFooting [] 
DIM finished[] 
 
GROUP 'Pile' !!!!Group for Solid operation  
BLOCK pileSize, pileSize, pileFootingDeptht  
ENDGROUP  
 
GROUP 'Footing'  
BLOCK footingSize, footingSize, footingDepth  
ENDGROUP  
 
FOR k = 0 TO A STEP pileCentres  
ADDX k  
GOSUB 100:  
NEXT k  
KILLGROUP 'Footing'  
KILLGROUP 'Pile'  
 
END  
 
100: ! Piles  
 
subtractedFooting[k+1] = SUBGROUP('Footing', 'Pile')  
finished[k+1] = SUBGROUP(subtractedFooting[k+1], 'Pile')  
PLACEGROUP finished [k+1] 
 
KILLGROUP finished [k+1] 
 
RETURN  
 &lt;/PRE&gt; &lt;BR /&gt;
 &lt;BR /&gt;
But, if elements are all the same, why not simply repeat the placement? &lt;BR /&gt;
i.e., after defining the groups: &lt;BR /&gt;
 
&lt;PRE&gt;FOR k = 0 TO A STEP pileCentres 
PLACEGROUP finished 
ADDx k 
NEXT k&lt;/PRE&gt;</description>
      <pubDate>Mon, 04 Mar 2013 07:27:38 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Groups-amp-SOE-within-Loops/m-p/124747#M14134</guid>
      <dc:creator>rocorona</dc:creator>
      <dc:date>2013-03-04T07:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: Groups &amp; SOE within Loops</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Groups-amp-SOE-within-Loops/m-p/124748#M14135</link>
      <description>Hello Roberto&lt;BR /&gt;
&lt;BR /&gt;
Thank you very much for your advice &amp;amp; help, &lt;BR /&gt;
&lt;BR /&gt;
after a bit of playing around I got the second method to work!!&lt;BR /&gt;
&lt;BR /&gt;
I dont think the code is 100% efficient right nowm, but its working &amp;amp; i will fine tune.&lt;BR /&gt;
&lt;BR /&gt;
thanks again!</description>
      <pubDate>Mon, 04 Mar 2013 11:15:37 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Groups-amp-SOE-within-Loops/m-p/124748#M14135</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-04T11:15:37Z</dc:date>
    </item>
  </channel>
</rss>

