Quantcast
Channel: Rhino Developer - McNeel Forum
Viewing all articles
Browse latest Browse all 8547

Get sub layer's object from rhino to grasshopper in c# visual studio

$
0
0

@shaunwu25 wrote:

Hi All,

I’m developing a plug-in using c# in the visual studio environment.
I tried to simply use the sub layer name to find my objects.

  private void RunScript(object x, object y, ref object A)
  {

    Rhino.DocObjects.RhinoObject[] myObjs = RhinoDoc.ActiveDoc.Objects.FindByLayer("subLayerName");
    
    A = myObjs;
  }

But it’s a no go, and the output is empty.
Any suggestion?

Regards,
Shaun

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 8547

Trending Articles