Design forum
cancel
Showing results for 
Search instead for 
Did you mean: 

Can I merge my cprism_{4}'s?

JGoode
Enthusiast
Hi,

I have created a hatch in 3D using for i=1 to and cprisms...

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?
	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
Thanks
ArchiCAD 17, 19, 21 and 23
Windows 8
4 REPLIES 4

Lingwisyer
Virtuoso
Could you take your cprism out of the loop and put it into a GROUP. Then within your loop, have:
shape[i+1] = ADDGROUP ( shape_cprism, shape )

Then after your loop have:
PLACEGROUP shape
FOR ii = 1 to 40
KILLGROUP shape[ii]
NEXT ii



Ling.
AC18-23 AUS 7000
Self-taught, bend it till it breaks.
Win10 | E5620 x 2 | 24GB | K2200

Barry Kelly
Moderator
Or instead of placing the prism slats, place one big slab and then cut holes from it using your loop.

Barry.

One of the forum moderators.
Versions 6.5 to 25
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Dell Precision 3510 - i7 6820HQ @ 2.70GHz, 16GB RAM, AMD FirePro W5130M, Windows 10

JGoode
Enthusiast
Lingwisyer wrote:
Could you take your cprism out of the loop and put it into a GROUP. Then within your loop, have:
shape[i+1] = ADDGROUP ( shape_cprism, shape )

Then after your loop have:
PLACEGROUP shape
FOR ii = 1 to 40
KILLGROUP shape[ii]
NEXT ii
I tried this but I get a "Group name or group expression required at line..." error.

This is my code:
		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)
				addy hatching_space
			next i
						
			DEL 40
			DEL 2

			PLACEGROUP shape
			for ii=1 to 40
			KILLGROUP shape[ii]
			next ii
ArchiCAD 17, 19, 21 and 23
Windows 8

Lingwisyer
Virtuoso
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...



Ling.
AC18-23 AUS 7000
Self-taught, bend it till it breaks.
Win10 | E5620 x 2 | 24GB | K2200

Didn't find the answer? Start a new discussion

Labels

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!