cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
2024 Technology Preview Program

2024 Technology Preview Program:
Master powerful new features and shape the latest BIM-enabled innovations

Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.
SOLVED!

Circular hole in circular PRISM

Bruce
Advisor
Can someone enlighten me on the trick to create a circular hole in a circular PRISM? The usual -1 status code doesn't seem to work.

E.g., by my reading of the GDL reference guide (page 27 for AC21) the code should be:
PRISM_ 5, height,
 0, 0, 913,
radius_outer, 360, 4000,
0, 0, -1,
radius_inner,  360, 4000,
radius_inner,  360, -1
OR
PRISM_ 6, height,
 0, 0, 913,
radius_outer, 360, 4000,
0, 0, -1,
0, 0, 913,
radius_inner,  360, 4000,
0, 0, -1
But both of these return a compiling error.
Bruce Walker
www.brucepwalker.com
Barking Dog BIM YouTube
Mindmeister Mindmap
-- since v8.1 --
AC27 5003 INT Full | Windows 11 64 Pro | 12th Gen Intel i7-12700H 2.30 GHz | 64 Gb RAM | NVIDIA GeForce RTX 3060 32 Gb
1 ACCEPTED SOLUTION

Accepted Solutions
Solution
Barry Kelly
Moderator
Try this.
I think the problem is you are needing to use the circle centre with the -1 mask which dosen't work with a full 360 degree circle.

Break it up into semi circles.

	PRISM_ 14, height,
		radius_outer,       0.0,      15+64, 
		0,       0.0,    900, 
		   0,          180,   4000, 
	   -radius_outer,       0.0,      15+64, 
		0,       0.0,    900, 
		   0,          180,   4000, 
		radius_outer,       0.0,     -1,

		radius_inner,       0.0,      15+64, 
		0,       0.0,    900, 
		   0,          180,   4000, 
	   -radius_inner,       0.0,      15+64, 
		0,       0.0,    900, 
		   0,          180,   4000, 
		radius_inner,       0.0,     -1
Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11

View solution in original post

4 REPLIES 4
Solution
Barry Kelly
Moderator
Try this.
I think the problem is you are needing to use the circle centre with the -1 mask which dosen't work with a full 360 degree circle.

Break it up into semi circles.

	PRISM_ 14, height,
		radius_outer,       0.0,      15+64, 
		0,       0.0,    900, 
		   0,          180,   4000, 
	   -radius_outer,       0.0,      15+64, 
		0,       0.0,    900, 
		   0,          180,   4000, 
		radius_outer,       0.0,     -1,

		radius_inner,       0.0,      15+64, 
		0,       0.0,    900, 
		   0,          180,   4000, 
	   -radius_inner,       0.0,      15+64, 
		0,       0.0,    900, 
		   0,          180,   4000, 
		radius_inner,       0.0,     -1
Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Bruce
Advisor
That's it Barry - thanks.
Bruce Walker
www.brucepwalker.com
Barking Dog BIM YouTube
Mindmeister Mindmap
-- since v8.1 --
AC27 5003 INT Full | Windows 11 64 Pro | 12th Gen Intel i7-12700H 2.30 GHz | 64 Gb RAM | NVIDIA GeForce RTX 3060 32 Gb
Jochen Suehlo
Advisor
Although logically it should not, the following simplified version works as well:
PRISM_ 3, 1,
0, 0,  979,
0.2, 360, 4079,
0.1, 360, 4049
Jochen Suehlo . AC12-27 . MAC OSX 14.4 . WIN11
GDL object creation: b-prisma.de
Bruce
Advisor
I like that one too!
Bruce Walker
www.brucepwalker.com
Barking Dog BIM YouTube
Mindmeister Mindmap
-- since v8.1 --
AC27 5003 INT Full | Windows 11 64 Pro | 12th Gen Intel i7-12700H 2.30 GHz | 64 Gb RAM | NVIDIA GeForce RTX 3060 32 Gb