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

Cut part way into an object??

JGoode
Advocate
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 17, 19, 21 and 23
Windows 8
4 REPLIES 4

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

AC24 USA • iMac 27" 4.0GHz Quad-core i7 | 24 gb ram • MacBook Pro 2.8GHz | 16 gb ram • OSX10.15.7

JGoode
Advocate
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 17, 19, 21 and 23
Windows 8

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 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 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

AC24 USA • iMac 27" 4.0GHz Quad-core i7 | 24 gb ram • MacBook Pro 2.8GHz | 16 gb ram • OSX10.15.7

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!