algorithmic modeling for Rhino
I have a script that works great in Rhino 4 and 5 - but I can't seem to adapt it to a custom component. It relies on the function Rhino.DocObjects.InstanceObject.Explode(), but Visual studio tells me:
'Rhino.DocObjects.InstanceObject' does not contain a definition for 'Explode' and no extension method 'Explode' accepting a first argument of type 'Rhino.DocObjects.InstanceObject' could be found
Is there a reason for this?
Tags:
solved my own problem - had the wrong rhinocommon reference in my project. I'm using the GHA template for Visual Studio Giulio made - its default rhinocommon assembly seems to reference the one in the Rhino 5.0 folder rather than the one in the Grasshopper folder - perhaps this ought to be changed?
Welcome to
Grasshopper
© 2024 Created by Scott Davidson. Powered by