algorithmic modeling for Rhino
I am currently working on an update to a series of excel to GH components, moving them to Rhino Common using the latest VB nodes. While a huge fan, Im still new to Rhino Common and familiarizing myself with the way its structured.
In an earlier implementation I was using the method outlined by Damien Alomar, see:
http://www.liquidtectonics.com/2009/01/grasshopper-excel-part-2.html
However, this used:
Dim rh, rhScript As Object
rh = CreateObject("Rhino4.Interface")
rhScript = rh.GetScriptObject
The end goal being to create a hidden point which triggers a rhino update using:
Call rhScript.Command("_-SelNone _-Point 0,0,0 Enter _SelLast")
refObj = rhScript.SelectedObjects()(0)
str = """" & CStr(refObj) & """"
rhScript.command("_Hide ")
The Object GUID was then passed into a macro in excel which would move the point anytime excel updated.
The issue I've run into in starting this is finding the equivalent to CreateObject("Rhino4.Interface"), in Rhino common.
I would greatly appreciate any help on how to establish access to Rhino using a similar method, or any other suggestions on methods to allow an event in an outside application to trigger an refresh of a component.
Tags:
The way I did this was to write a custom component to listen for changes in excel as a user changes data in the worksheet. You don't need to artificially create a point in rhino to trigger this. A video is here:
Steve,
Thank you, that is definitely a much cleaner approach and the way i'd like to go.
Could you point me to some resources about how to get started setting up a process like this.
Did you feed a GUID to excel and have the Workbook_SheetChange trigger an update of this components ExpireSolution?
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by