Put Python eto in a python file

Hi everyone,
I am trying to put everything of eto script in a python file so that i can call them back as a module when needed
However, rhino is terminated when i am changing the value of sliders on the eto form. Seem the problem is from ghenv.Component.ExpireSolution(True), but i can’t tell why

My goal is to create GUI and put everything insides a module

any suggestions to this?

thanks in advance

Here are my codes

image

image

1 Like

it may have been an uncaught Exception
if you think that’s where it may have gone wrong, wrap it in a try except block, and output the error message somewhere.

however, I really want that line of code running. not sure where the problem comes
/ ___ \

right. you need to find what’s causing it first. the try except block would give you info on the error and the forum can help you better…

1 Like