Grasshopper

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? 

Views: 319

Replies to This Discussion

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?

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service