k2Eng not working - solver error

I am working on a relatively simple structure, with cables, gravity, and a bit of pretension. This is my first time trying to get k2Eng to work. I admit, in the past I’ve given up when I see any sort of compatibility error, but I really want to use this as it would streamline my workflow.

I have supports, cables, and some gravity, and the normal K2 solver gives me this error:

  1. Solution exception:Unable to cast object of type ‘Grasshopper.Kernel.Types.GH_Vector’ to type ‘Grasshopper.Kernel.Types.GH_ObjectWrapper’.

I know the units don’t match yet - I will have to figure that out eventually. Right now I just want to know why it doesn’t run at all… can anyone help?

File here
internalize test.gh (77.6 KB)

to my knowledge I have the latest of k2Eng and Kangaroo.


It is because of the gravity load, see attached screenshot:

The load components are divided into several smaller functions so they can be used with or without K2E (I use it sometimes to calculate loads as input to Karamba for example). I hope it makes sense.

1 Like

aha great! I will give this a try, thank you!

by the way, I tried to download the example files and simply open them in GH, but I got this error, and the files do not open. So I didn’t have a way of checking the workflow - I just guessed.