Grasshopper

algorithmic modeling for Rhino

I made a vierendeel truss and I want to extract the vertical beams (''Posts'') from the list of meshes that can be found in de BeamView output.

In the Element(karamba) component a list that consist out of classes can be found. The list in this component defines which elements are ''Posts''.

In the Python component i made loop that filters out the meshes that are ''Posts''. But this is not working since the list in the Element(karamba) component consist out of ''GrassBeam'' objects and is not a list in a list.

Can someone help me with defining the right code in order to sort out the ''Posts'' Meshes from the list of meshes.

The grasshoppercode can be found in de appendix.

Views: 393

Attachments:

Replies to This Discussion

Dear Rayaan,

I could not run your definition since I do not have all the necessary plug-ins installed.

The meshes which come out of the 'ModelView'-component contain geometric information only.

In order to filter out the elements which are posts, you need to disassemble the model and iterate through the elements.

Did you have a look a the Karamba3d scripting manual (see https://www.karamba3d.com/download/hackers-essentials-2/?wpdmdl=434...)?

Best,

Clemens

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2025   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service