<?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: Can I merge my cprism_{4}'s? in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Can-I-merge-my-cprism-4-s/m-p/256928#M1766</link>
    <description>&lt;BLOCKQUOTE&gt;Lingwisyer wrote:&lt;BR /&gt;
Could you take your cprism out of the loop and put it into a GROUP. Then within your loop, have:
&lt;PRE&gt;shape[i+1] = ADDGROUP ( shape_cprism, shape&lt;I&gt; )&lt;/I&gt;&lt;/PRE&gt;

&lt;BR /&gt;
Then after your loop have:
&lt;PRE&gt;PLACEGROUP shape&lt;I&gt;
FOR ii = 1 to 40
KILLGROUP shape[ii]
NEXT ii&lt;/I&gt;&lt;/PRE&gt;

&lt;/BLOCKQUOTE&gt;

I tried this but I get a "Group name or group expression required at line..." error.&lt;BR /&gt;
&lt;BR /&gt;
This is my code:&lt;BR /&gt;

&lt;PRE&gt;		group "shape_cprism1"
			cprism_{4} mat_hatching, mat_hatching, mat_hatching, 7,
					5,          line_height,
						   0,            0,            0,     15, mat_hatching,
						 10,            0,            0,     15, mat_hatching,
						 10,          hatching_width,            0,     15, mat_hatching,
						   0,          hatching_width,            0,     15, mat_hatching,
						   0,            0,            0,     -1, mat_hatching
		        endgroup

			dim shape[]
						
			for i=1 to 40
				shape[i+1] = ADDGROUP (shape_cprism1, shape&lt;I&gt;)
				addy hatching_space
			next i
						
			DEL 40
			DEL 2

			PLACEGROUP shape&lt;I&gt;
			for ii=1 to 40
			KILLGROUP shape[ii]
			next ii
&lt;/I&gt;&lt;/I&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 24 Sep 2019 08:42:53 GMT</pubDate>
    <dc:creator>JGoode</dc:creator>
    <dc:date>2019-09-24T08:42:53Z</dc:date>
    <item>
      <title>Can I merge my cprism_{4}'s?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Can-I-merge-my-cprism-4-s/m-p/256925#M1763</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;Hi,&lt;BR /&gt;
&lt;BR /&gt;
I have created a hatch in 3D using for i=1 to and cprisms...&lt;BR /&gt;
&lt;BR /&gt;
Is there anyway that I can get them to merge so that their lines in a project2 are continuous and don't create diamonds at each crossing point?&lt;BR /&gt;

&lt;PRE&gt;	for i=1 to 40
		cprism_{4} mat_hatching, mat_hatching, mat_hatching, 7,
				5,          line_height,
				          0,            0,            0,     15, mat_hatching,
					10,            0,            0,     15, mat_hatching,
					 10,          hatching_width,            0,     15, mat_hatching,
					   0,          hatching_width,            0,     15, mat_hatching,
				           0,            0,            0,     -1, mat_hatching

		addy hatching_space
		next i
						
		DEL 40
		DEL 2

		addy 10
		rotz -45

		for i=1 to 40
		cprism_{4} mat_hatching, mat_hatching, mat_hatching, 7,
				5,          line_height,
						  0,            0,            0,     15, mat_hatching,
						10,            0,            0,     15, mat_hatching,
						10,          hatching_width,            0,     15, mat_hatching,
						  0,          hatching_width,            0,     15, mat_hatching,
						  0,            0,            0,     -1, mat_hatching
		addy -hatching_space
		next i&lt;/PRE&gt;

Thanks&lt;/R&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 23 Sep 2019 12:45:06 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Can-I-merge-my-cprism-4-s/m-p/256925#M1763</guid>
      <dc:creator>JGoode</dc:creator>
      <dc:date>2019-09-23T12:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: Can I merge my cprism_{4}'s?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Can-I-merge-my-cprism-4-s/m-p/256926#M1764</link>
      <description>Could you take your cprism out of the loop and put it into a GROUP. Then within your loop, have:
&lt;PRE&gt;shape[i+1] = ADDGROUP ( shape_cprism, shape&lt;I&gt; )&lt;/I&gt;&lt;/PRE&gt;

&lt;BR /&gt;
Then after your loop have:
&lt;PRE&gt;PLACEGROUP shape&lt;I&gt;
FOR ii = 1 to 40
KILLGROUP shape[ii]
NEXT ii&lt;/I&gt;&lt;/PRE&gt;

&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ling.</description>
      <pubDate>Tue, 24 Sep 2019 01:45:42 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Can-I-merge-my-cprism-4-s/m-p/256926#M1764</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2019-09-24T01:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: Can I merge my cprism_{4}'s?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Can-I-merge-my-cprism-4-s/m-p/256927#M1765</link>
      <description>Or instead of placing the prism slats, place one big slab and then cut holes from it using your loop.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Tue, 24 Sep 2019 01:53:49 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Can-I-merge-my-cprism-4-s/m-p/256927#M1765</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2019-09-24T01:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: Can I merge my cprism_{4}'s?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Can-I-merge-my-cprism-4-s/m-p/256928#M1766</link>
      <description>&lt;BLOCKQUOTE&gt;Lingwisyer wrote:&lt;BR /&gt;
Could you take your cprism out of the loop and put it into a GROUP. Then within your loop, have:
&lt;PRE&gt;shape[i+1] = ADDGROUP ( shape_cprism, shape&lt;I&gt; )&lt;/I&gt;&lt;/PRE&gt;

&lt;BR /&gt;
Then after your loop have:
&lt;PRE&gt;PLACEGROUP shape&lt;I&gt;
FOR ii = 1 to 40
KILLGROUP shape[ii]
NEXT ii&lt;/I&gt;&lt;/PRE&gt;

&lt;/BLOCKQUOTE&gt;

I tried this but I get a "Group name or group expression required at line..." error.&lt;BR /&gt;
&lt;BR /&gt;
This is my code:&lt;BR /&gt;

&lt;PRE&gt;		group "shape_cprism1"
			cprism_{4} mat_hatching, mat_hatching, mat_hatching, 7,
					5,          line_height,
						   0,            0,            0,     15, mat_hatching,
						 10,            0,            0,     15, mat_hatching,
						 10,          hatching_width,            0,     15, mat_hatching,
						   0,          hatching_width,            0,     15, mat_hatching,
						   0,            0,            0,     -1, mat_hatching
		        endgroup

			dim shape[]
						
			for i=1 to 40
				shape[i+1] = ADDGROUP (shape_cprism1, shape&lt;I&gt;)
				addy hatching_space
			next i
						
			DEL 40
			DEL 2

			PLACEGROUP shape&lt;I&gt;
			for ii=1 to 40
			KILLGROUP shape[ii]
			next ii
&lt;/I&gt;&lt;/I&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 24 Sep 2019 08:42:53 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Can-I-merge-my-cprism-4-s/m-p/256928#M1766</guid>
      <dc:creator>JGoode</dc:creator>
      <dc:date>2019-09-24T08:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: Can I merge my cprism_{4}'s?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Can-I-merge-my-cprism-4-s/m-p/256929#M1767</link>
      <description>Oh, that is due to bad syntax in the SOE. Groups need to be defined in "..." or be a variable. My bad... Not sure how to work that with an array though...&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ling.</description>
      <pubDate>Tue, 24 Sep 2019 09:23:47 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Can-I-merge-my-cprism-4-s/m-p/256929#M1767</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2019-09-24T09:23:47Z</dc:date>
    </item>
  </channel>
</rss>

