Grasshopper

algorithmic modeling for Rhino

Hi all,

I am just starting out at digging through the Karamba namespace/api.

And i am running into an issue i cannot solve:

My goal is to generate groups of elements using a c# component, that I can then assemble in the GH canvas a modular fashion.  I am looking specifically for a hybrid of the C# and GH method. So i do not want to assemble my model in c# using k3d.Model.AssembleModel();

So my c# code should export a list of elements including their cross section.

I have been able to generate a simple cross section via CroSec_Box() and prevented from it being read as Goo using Karamba.GHopper.CrossSections.GH_CrossSection()

Now I tried to do something similar for the elements using:

var k3d = new KarambaCommon.Toolkit();

k3d.Part.LineToBeam()

but I have not found a way to convert the resulting element into a proper GH element that works on the canvas (results in Goo).

Any tips would be greatly appreciated.

Views: 86

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service