Create Statements with loop


why do this not work?

If I create one single statement everything is fine!

Thank you

Code with Errorprint

VC Crashes... :(

That’s just a generic message for an internal error that was caused by some Python API call.
Could be due to any number of reasons, but since you are clearing the routine I suspect you are trying to use a deleted object e.g a statement.

Hey TSy,

you were right. Clear the main routine in the loop was the mistake. The day was already too long. :slight_smile:

Thank you