Using ETO forms to prompt Excel file path and then run the GH file

Dear fellow developers,

I am working on the Rhino Eto form plugin. Regarding this I have a few questions:
1)Can a Button in ETO form be used to ask a user to specify an excel file path and then feed it as an input of a GH scrip

2)The Dock Position for the ETO form should be the default properties panel. I could not find any resources. I know the modeless Form exists but its not helpful for me.

3)I want to package this Python file(ETO Form) as a Rhino Package manager. I could not find any resources for the same either

I appreciate it if someone can please share some resources on this problem

The truncated solution from my proposed solution is here:

    def OnTestRunGHButtonClick(self, sender, e):
        rGHfilename = rs.OpenFileName("Open", "GH File (*.gh)|*.gh||")
        if rGHfilename:
            self.PathTextBox3.Text = rGHfilename
            command = "-_GrasshopperPlayer \"{0}\" _Enter"
            instruction = command.format(rGHfilename)
            rs.Command(instruction)

@curtisw, @clement, @Will_Wang, @AndersDeleuran, @Trav, @Mahdiyar Can you please guide me in this

Hi @_AS,

some years ago i’ve posted this example which might be helpful for your task. It demonstrates how to open GH, load a definition and assign Data to component parameters using the GH PlugIn object.

Unfortunately there is currently no way to create dockable panels with Python.

Search for Yak. When you use the RhinoScript PlugIn Compiler, it creates a yak file which you can either upload to McNeels servers or drag and drop it onto an open Rhino instance to install the compiled PlugIn.

_
c.

2 Likes