Scripting Beams Python

I’m trying to create a loop for topological optimization in Python using Karamba library. I have the rough design area. Since Karamba does not do FE for solids, I turned to object into bunch of small beams. But now on the python end it seems there is no strain or stress on these beams. Even though it shows they do on the Karamba component. What am I doing wrong? (102.6 KB)

Hello Idilgumruk,
I can not run your definition because ‘VoxClass’ is missing.
Use ‘response.updateMemberForces()’ to get the displacements and stresses. Do not forget to call ‘Touch()’ on ‘Model’ to outdate the model after applying changes.