We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

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

Internal error in generator function

Anonymous
Not applicable
Hello,
I made a library part in AC 8.1 v2 that works fine in that version.
But in AC 9.0 it fails to process in 3D.
In the library part editing environment "Check Script" for the 3D script
returns "OK" but when I go to the 3D window the following
error message is displayed.
"Internal error in generator function at line.....(System Error -1)"
Only one part of the object is displayed in the 3D window.

When I click the stop button in the error dialogue and look at
the 3D script the "Body -1" statement is hi-lighted.
In my experience "Internal error in generator function" has most often
been associated with CUTPOLYA .
In this case the apparently innocuous "Body -1" is hi-lighted.
There is a CUTPOLYA command issued earlier in the script and three
lines after the "Body -1" are two CUTENDs. If I comment out
the "Body -1" then the first CUTEND is hi-lighted.
The part that does show in 3D also has a CUTPOLYA
but this one does not seem to cause a problem.

Does any one know what might be deduced about the script
when this error is displayed and what is a "(System Error -1)" ?

Thank you,
Peter Devlin
3 REPLIES 3
Rob
Graphisoft
Graphisoft
Peter,

I am pretty sure that the problem is in your parameter script, especially when you're using CUTPOLYA with calculated parametres or moveable hotspots etc. where incorrectly calculated values distort the cut plane. similar problem gave me a real grief lately.

the parameter script is a bit tricky (it seems to be run twice along with the master script) so be careful and test it properly.

Actually my wish would be (and I am going to put in GDL wishlist) if we could get reasonable explanation/description how's that bl**dy thingy (meaning the parameter script) actually work from GS.
::rk
Anonymous
Not applicable
Rob,
Thank you for your reply.
Fortunately, there is nothing in the Parameters script,
there are no moveable hotspots, it works fine in AC 8.1,
and the two CUTPOLYA commands are quite simple one having
only one ROTx transformation (this confused AC 8.0),
so this would seem to simplify the problem.

Your information about the parameters script is valuable
and I will remember it.
You say "(it seems to be run twice along with the master script)".
I did not know that the master script was run twice.

Thank you,
Peter Devlin
Anonymous
Not applicable
Rob,
As you and I suspected it is a problem with CUTPOLYA.
The strange thing is that I issue four identical CUTPOLYA commands,
with identical transformations, working on identical bodies.
I commented out each one separately and find that
only one of them causes the error.

I'm stumped.
Thanks,
Peter Devlin