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: Barry Kelly, Karl Ottenstein, LaszloNagy, ejrolon, gkmethy, Gergely Feher

User avatar
By Barry Kelly
The number of CUTENDs needs to match the number of CUTs (CUTPLANE, CUTPOLY, CUTSHAPE, etc.).
If they don't match I am pretty sure you will get error messages.

If you are unsure of the number of cuts being performed because of looping in your script, then you can create a counting variable that increases by one every time you have a CUT command.
Code: Select all
cut_count = cut_count + 1
cut_count = cut_count + 1
Then at the end you can say ...
Code: Select all
for j = 1 to cut_count
next j
This will only work if you want to end the cuts at the end of your script.
Sometimes you need to a particular cut straight after a particular command and then carry on with the script.
I guess in this case you could do a CUTEND and then reduce the count by one and then end the rest at the end of your script.