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

Cut part way into an object??

JGoode
Expert
I am trying to cut part way into my object in the GDL script but I can't seem to make it work. Everything I've tried/read makes the hole go the entire way through the object. How do I achieve this?

I know I could achieve it with a morph and SEO but I really don't want to use morphs to create it due to wanting to be able to adjust it easily as well as reducing the amount of lines in my script. I want to create the same effect as using an SEO but with code instead.

Thanks
ArchiCAD 23

Windows 10
4 REPLIES 4
David Maudlin
Rockstar
JGoode:

Take a look at the CUTFORM command, it can control the depth of the cut.

David
David Maudlin / Architect
www.davidmaudlin.com
Digital Architecture
AC28 USA • Mac mini M4 Pro OSX15 | 64 gb ram • MacBook Pro M3 Pro | 36 gb ram OSX14
JGoode
Expert
David wrote:
JGoode:

Take a look at the CUTFORM command, it can control the depth of the cut.

David
Just had a look, I was trying to use cutpoly before. I don't really understand cutform and how the direction part of the script works?
I keep getting an error saying too many parameters at line 1
CUTFORM 5, 1, 15,
        1, 1, 1, 0.5,
        0.2, 0.2, 15,
        0.8, 0.2, 15,
		0.8, 0.8, 15,
		0.2, 0.8, 15,
		0.2, 0.2, 15

BLOCK 1, 1, 1
ArchiCAD 23

Windows 10
Barry Kelly
Moderator
CUTPOLYA is probably easier.
CUTPOLYA n, status, d,
x1, y1, mask1, ..., xn, yn, maskn
d: the distance between the local origin and the end of the half-infinite tube.
0: means a cut with an infinite tube.

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
David Maudlin
Rockstar
JGoode wrote:
David wrote:
JGoode:

Take a look at the CUTFORM command, it can control the depth of the cut.

David
Just had a look, I was trying to use cutpoly before. I don't really understand cutform and how the direction part of the script works?
I keep getting an error saying too many parameters at line 1
CUTFORM 5, 1, 15,
        1, 1, 1, 0.5,
        0.2, 0.2, 15,
        0.8, 0.2, 15,
		0.8, 0.8, 15,
		0.2, 0.8, 15,
		0.2, 0.2, 15

BLOCK 1, 1, 1
The direction is set in the second line. For example 0, 0, 1, 0.5, will work in the z direction.

The status is set to 15, which is not a valid option:
status: Controls the extent of the cutting body and the treatment of the generated cut polygons and new edges.
status = j1 + 2*j2 + 8*j4 + 16*j5 + 32*j6 + 64*j7 + 128*j8 + 256*j9, where each j can be 0 or 1.
David
David Maudlin / Architect
www.davidmaudlin.com
Digital Architecture
AC28 USA • Mac mini M4 Pro OSX15 | 64 gb ram • MacBook Pro M3 Pro | 36 gb ram OSX14