The Global ARCHICAD Community

Stay informed. Get help. Share your knowledge.

Everything about GDL - Doors/Windows/Objects/Stairs etc. (Example: I created an object that prints an error message in 3D all the time, please help!)

Moderators: ejrolon, Barry Kelly, Karl Ottenstein, LaszloNagy, gkmethy, Gergely Feher

By JGoode
#273318
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
By JGoode
#273323
David Maudlin 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

Code: Select allCUTFORM 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
User avatar
By Barry Kelly
#273361
CUTPOLYA is probably easier.

Code: Select allCUTPOLYA 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.
User avatar
By David Maudlin
#273390
JGoode wrote:
David Maudlin 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

Code: Select allCUTFORM 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:
Code: Select allstatus: 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