-
Rhino quits after running script
Hi Everyone!
I am relatively new to python and ironpython. I have just begun to experiment with implementing GUI through Windows.System.Forms. I developed my script in Eclipse IDE and everything works perfectly for me. Once finished I created a button in Rhino to automatically run the script (and it does!) However, after the script has completed Rhino quits on me ( the Rhino window just disappears as if I pressed the close button)
Does anyone know why this is happening? I am happy to provide a copy of my script if it will help (it is 1,000+ lines, so I will not be posting it in the form) Please PM me if you would like a copy.
Regards,
Andrew
-
Try using this set of commands:
gui = UserInterface.MainForm()
#Show our dialog in a semi-modal way.
Rhino.UI.Dialogs.ShowSemiModal(gui)
with UserInterface being the class of your interface for example
Cheers.
Lukas
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules