Error message using karamba library in c#

Hi everyone,

I try to create a cross section optimization workflow for mass timber. I developped one script using karamba library. But, when I start to compile the program with a certain amount of elements, I get this error message: “an external component has thrown an exception”.
You can find my grasshopper file in the description with the two csv data base for cross section. In this case, when you put more than 6 levels, the code is crashing.

test_erreur.gh (60.2 KB)
DataBaseForBeam.csv (24.5 KB)
DataBaseForColumn.csv (3.0 KB)

Thanks in advance for your help

@karamba3d
@Guillaume_Bédard-Bla

Hello @Augustin_L,

I am sorry I can not debug your code. There is a cross section optimization example script which you probably have already seen: https://scripting.karamba3d.com/2.-scripting/2.4-how-to-modify-structural-models/2.4.1-cross-section-optimization.

When I open your definition with Karamba3D version 2.2.0.17.1 I do not get an error. Try to apply the divide and conquer strategy to find out a which point the problem occurs.

– Clemens

Hi Clemens,

I used a calculated model instead of an assembled model as input for the cross section optimization. It looks better now but I don’t know why exactly, it may come from a side effect.

Augustin

Hi @Augustin_L,
thanks for the hint!
– Clemens