Grasshopper

algorithmic modeling for Rhino

Hi all,

I'm working on assessing the sustainability of structural elements. I need the mass per element used (each group of elements can have a different material) to assess this. 

I use a cross-section-optimiser which gives the total mass of the structure, however I cannot figure out how to get this per structural element. Any idea?

Thank in advance.

Niels

Views: 650

Replies to This Discussion

Dear Niels,

you could write a script: iterate over the elements of interest in the model and use the method Model_Element.weight(List<Node> nodes) to get the weight of each of them. 'nodes' is the list of the nodes in the model which you get via 'model.nodes'. The model elements are available via 'model.elems'.

Best,

Clemens

Hi Clemens,

Thanks for your suggestions. I figured out a workaround: I extract the material data per element group, get the amount of elements, length and area in each group with 'Disassemble cross-section', and then multiple everything.

If I want to make a script, should it be in VB, python or #C? And is there any documentation on Karamba for that? (besides the available manual)

Thanks!

Niels

Hi Niels,

your script can be in VB, Iron Python or C# or even F# since all of these are based on the .NET Framework.

There is a scripting manual for Karamba called 'karamba 1.1.0 Hacker's Essentials' available at https://www.karamba3d.com/download/hackers-essentials-2/?wpdmdl=434....

Compared to version 1.1.0 there have been small changes in the interface definitions in Karamba 1.2.2. With the help of IlSpy this should however be no big problem.

Best,

Clemens

Thanks for your input and documentation Clemens!

Very elegant script right now and easy to make in Python!

Added the file for people that are interested.

Cheers,

Niels

Attachments:

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service