Eto appears to be part of Mac-Rhino and Win-Rhino WIP. It would be great if Eto will also be supported from Win Rhino V5 in future service releases. Then we could develop complex user interfaces which work cross-platform and cross-version without any hassle for the users.
It is possible, but Iām not sure how likely this is to happen. We are very late in the service release cycle for Rhino 5 and just ābundlingā Eto with V5 does not completely solve this issue. There is a small amount of Eto initialization that has to occur at start-up and I really donāt want to introduce more dependencies to V5 at this point in time.
The other way to solve this is to bundle Eto with your V5 plug-in or script and call the initialization code yourself.
I hope that Eto dialogs become popular and common soon! To make this come true all scripts should run cross-platform on Mac and Windows. Iād like to avoid that each Windows Python script which includes a dialog comes with a separate Eto bundle and/or needs a different script version.
Maybe this could be solved by a custom installation of Eto? So we can send the users to a Wiki-page with all the instructions to install it. Just some early thoughtsā¦ V5 on Windows will be the main Rhino for a loong timeā¦
Sure it would be better if Eto were supported āout of the boxā
Iām experimenting with an interface for custom user-data and Eto seems to be the perfect tool with itās table like structures. Iām far from anything useful (for the lack examples), but once that works Iām sure everyone wants to have it - and Iām also sure that everyone wants to customize it. Also great for Excel / csv filesā¦
I see a lot of new developments for Rhino, but only a few āinsidersā have the chance to really get into these. The developers do not have the time to document their work or write some examples which may help the āsemi-professionalsā to use all that beautiful stuff. Community on idleā¦ if everything is put into plug-ins.
Is there anyway to get an example of this? I have also been maintaining a custom user data plugin that uses the rhino panel and docking, however I cannot seem to initialize an Eto form as it does not follow win32 interfaces, it fails when I attempt to register it at plugin initialization.
Iām sorry but we donāt have a sample at the moment (we actually havenāt even attempted to create an Eto panel in V5, but we do know this would work). @curtisw may have some hints.
I donāt know that we need a full example but something to get us going would be greatly appreciated.We are utilizing DataGridView along with custom column drawing. If we want to port to OSx this will all need to be rewritten, having the same code working on both Windows(v5) and OSx(v5) would allow us to do this.
We have had the thought of simply opening a form and not attempting to dock with Rhino Tabs but this is plan B.
This might be a silly question but is Eto accessible from python script (canāt find Eto namespace in python editor) or only c#? Iām asking about Windows Serengeti
Yes, it is accessible from python script and we do plan on making this easier in general to work with from python. I believe @curtisw was looking into this last week.
@stevebaer, is there any news about using python + ETO in V5 ? I can use ETO in V6 but when i try below in V5, it seems to import the whole namespace properly:
import clr, sys
sys.path.append(r"C:\Program Files\Rhino WIP\System")
clr.AddReference("Eto.dll")
from Eto.Forms import *
from Eto.Drawing import *
ā¦but once i try to create a dialog or a form using:
form = Dialog()
I get this error:
Message: Platform instance is null. Have you created your application?