Grasshopper

algorithmic modeling for Rhino

Hi everyone.

I would like to ask kindly someone for creating of component that loads and explodes hatches.

I believe I can load hatches into GH using Horster Reference component (see image attached), but exploding them is impossible.

[On the other hand I'm not sure if component mentioned above loads or reads only by giving it's id].

Anyone willing to help?

Thanks is advance

Piotr

Views: 1367

Replies to This Discussion

This seems to work in a c# component with a GUID input named ID.  Just right click the GUID component and select the hatch to reference it.

private void RunScript(Guid id, ref object A)
  {
    Rhino.DocObjects.ObjRef obj = new Rhino.DocObjects.ObjRef(id);
    A = obj.Hatch().Explode();
  }

Attachments:

Hi Luis

Thank you very much for your effort. I will test it later this afternoon.

Regards

Piotr

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service