Help simplify model

Hello
I build the following dynamo script to help me create the a truss structure that I use many times.
My problem is that I sort of hard coded it and wondered if anybody had some good ideas how to create the bodies with line of python code or smarter use of nodes?

Regards

Anders

Hey Anders ;)…could you share the graph ?? then i gues its easier, to come with advice how you could optimise maybe…

Not sure what you mean by graph?

Do you mean how the truss looks like?

all the nodes you show…just as a dyn as its really hard to see whats goin on in the image…but you could export as here…How to export a graph image [Correctly]

I hope this helps

You could do with a lot less nodes i think by leveraging levels and lacings more.

So there is no need to do all this

1 Like

I have tried to do it, but I couldnt get it to work like I wanted to, so I did the hard way first

Did you try it on a small sample size?

If not, then i would suggest doing that next time.

Where or how did you get stuck?

The more i look at it the more i think i get what you are trying to do and the more i wonder why this isn’t working? Hard to tell without a data set and / or preview bubbles pinnend.

1 Like

Thanks for help. I will try it out in a smaller version and see if I can get it to work.