<?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 ADDGROUP in loops in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/ADDGROUP-in-loops/m-p/650321#M7409</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am trying to merge my geometry into one, i found this:&lt;BR /&gt;&lt;A href="https://community.graphisoft.com/t5/GDL/add-several-GROUPs-without-additional-lines/m-p/274202" target="_blank"&gt;https://community.graphisoft.com/t5/GDL/add-several-GROUPs-without-additional-lines/m-p/274202&lt;/A&gt;&lt;/P&gt;&lt;P&gt;However is ti possible to not have an error in the code ("Identical operands in group operation").&lt;/P&gt;&lt;P&gt;I need something like this for my code:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;pen 1
material 1

group "object":
	gosub "Fixed geomety"

	gosub "Looped geometry"
endgroup

res = addgroup ("object", "object")
placegroup res 


end:!=====================================================

"Fixed geomety":
	block 1,1,1
return

"Looped geometry":
	for i=1 to 5
		addx 1/2
		block 1,1/2,1
	next i
return&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to add an empty group but no result, any solutions?&lt;/P&gt;</description>
    <pubDate>Tue, 04 Feb 2025 09:21:38 GMT</pubDate>
    <dc:creator>Domagoj Lukinic</dc:creator>
    <dc:date>2025-02-04T09:21:38Z</dc:date>
    <item>
      <title>ADDGROUP in loops</title>
      <link>https://community.graphisoft.com/t5/GDL/ADDGROUP-in-loops/m-p/650321#M7409</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am trying to merge my geometry into one, i found this:&lt;BR /&gt;&lt;A href="https://community.graphisoft.com/t5/GDL/add-several-GROUPs-without-additional-lines/m-p/274202" target="_blank"&gt;https://community.graphisoft.com/t5/GDL/add-several-GROUPs-without-additional-lines/m-p/274202&lt;/A&gt;&lt;/P&gt;&lt;P&gt;However is ti possible to not have an error in the code ("Identical operands in group operation").&lt;/P&gt;&lt;P&gt;I need something like this for my code:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;pen 1
material 1

group "object":
	gosub "Fixed geomety"

	gosub "Looped geometry"
endgroup

res = addgroup ("object", "object")
placegroup res 


end:!=====================================================

"Fixed geomety":
	block 1,1,1
return

"Looped geometry":
	for i=1 to 5
		addx 1/2
		block 1,1/2,1
	next i
return&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to add an empty group but no result, any solutions?&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2025 09:21:38 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/ADDGROUP-in-loops/m-p/650321#M7409</guid>
      <dc:creator>Domagoj Lukinic</dc:creator>
      <dc:date>2025-02-04T09:21:38Z</dc:date>
    </item>
    <item>
      <title>Betreff: ADDGROUP in loops</title>
      <link>https://community.graphisoft.com/t5/GDL/ADDGROUP-in-loops/m-p/650325#M7410</link>
      <description>&lt;P&gt;I think the problem is the Addgroup with 2 identical Group Names. Try this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;pen 1
material 1


	group "object1"
		gosub "Fixed geomety"
		gosub "Looped geometry"
	endgroup

	group "object2"
		gosub "Fixed geomety"
		gosub "Looped geometry"
	endgroup

res = addgroup ("object1", "object2")
placegroup res 


end:!=====================================================

"Fixed geomety":
	block 1,1,1
return

"Looped geometry":
	for i=1 to 5
		addx 1/2
		block 1,1/2,1
	next i
return&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2025 10:25:12 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/ADDGROUP-in-loops/m-p/650325#M7410</guid>
      <dc:creator>Jochen Suehlo</dc:creator>
      <dc:date>2025-02-04T10:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: ADDGROUP in loops</title>
      <link>https://community.graphisoft.com/t5/GDL/ADDGROUP-in-loops/m-p/650370#M7413</link>
      <description>&lt;P&gt;I wrote a number that gets 1 added each loop but is converted to a string for the group name. That way there is never a duplicate group name&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2025 14:29:26 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/ADDGROUP-in-loops/m-p/650370#M7413</guid>
      <dc:creator>SenecaDesignLLC</dc:creator>
      <dc:date>2025-02-04T14:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: ADDGROUP in loops</title>
      <link>https://community.graphisoft.com/t5/GDL/ADDGROUP-in-loops/m-p/650399#M7414</link>
      <description>&lt;P&gt;I use this:&lt;/P&gt;
&lt;DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;LI-CODE lang="markup"&gt;val_a=1
val_b=2
val_z=1

group "mygroup"
block val_a,val_b,val_z
endgroup

mygroup="mygroup"

for i= 1 to 3
   
group "mygroup"+str("%.0m",i)
add i*.2,i*.3,i*.1  
block val_a,val_b,val_z
del 1
endgroup

mygroup=addgroup(mygroup,"mygroup"+str("%.0m",i))
killgroup "mygroup"+str("%.0m",i)
next i

placegroup mygroup
killgroup mygroup&lt;/LI-CODE&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 06 Feb 2025 21:33:16 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/ADDGROUP-in-loops/m-p/650399#M7414</guid>
      <dc:creator>Pertti Paasky</dc:creator>
      <dc:date>2025-02-06T21:33:16Z</dc:date>
    </item>
  </channel>
</rss>

