mcneel / rhinocommon

RhinoCommon is the .NET SDK for Rhino5 / Grasshopper
http://wiki.mcneel.com/developer/rhinocommon
242 stars 93 forks source link

Nested Instance Definitions #103

Closed jmirtsch closed 11 years ago

jmirtsch commented 12 years ago

Hi, I've taken a look, it seems the only methods to generate a new instance definition takes only geometrybase objects. Would be great if it's possible to nest existing instance definitions into a new one.

Cheers,

Jon

sbaer commented 11 years ago

John, let's look at this together

johnmorse commented 11 years ago

Sounds good, I think this is probably there, you don't nest instance definitions, you include instance references in instance definitions to create a nested block definition.

johnmorse commented 11 years ago

It looks like CRhinoInstanceDefinitionTable_Add(...) did not support ON_InstanceRef geometry, I hooked it up and tested it using the RhinoCommon block example and was able to generate nested instance definitions. The changes are in SVN revision # 86156