Hi everyone, do you guys know how to add material for your model when you use python to create a Karamba analysis model?
I already make some test, but none of them is right, also I didn’t find any API for examples for this, does anyone of you have any ideas?
Thanks in advance!
image|690x407
python.gh (19.3 KB)
Hello @Xiujin_Liu,
you can add materials on model assembly. Then the materials need to reference the elements they apply to via element identifier (e.g. materials[0].AddBeamId(“element identifier”)).
Alternatively materials can be supplied when creating a cross section.
C# examples can be found here.
Sorry we do not have python examples yet but we plan to add some in the future.
– Clemens