In this case material must be saved to database also
(corrections in red , below)
materiau.Type = IRobotMaterialType.I_MT_STEEL
materiau.E = tabMat(i, 2)
materiau.NU = 0.3
materiau.RO = tabMat(i, 1)
materiau.Kirchoff = materiau.E / (2 * (1 + materiau.NU))
By adding 'materiau.SaveToDBase()', the new material now appears in the material manager, under "Others". But I still have a problem because the material is not assigned to the section, ie the 'section.MaterialName = tabMat(tabElts(i, 4) - 1, 3)' command does not have any effect...
I found my error. I still used materiau.Type = IRobotMaterialType.I_MT_OTHER instead of materiau.Type = IRobotMaterialType.I_MT_STEEL
Now it works.
Hi every one ,
I have a to calculate the cost of different rectangular steel frames and see the effect of geometry and loads on the total cost of the frame . I've got 60 possible geometric configuartions and 20 load cases it makes 1200 file to create, calculate and get result (steel profile ex HEAXX) into a excel sheet to calculate the cost . Any Help to create VBA connection , thank you guys a lot
We can help you but you have to ask precise question.
My answer is : yes, I guess it is possible to do it by API.
First thanks for the replay, the inputs are :
-Geomertry : Length L vary [2,32] m , witdh l of the frame for the slenderness ratios as a parameter ex : l/L=1 ---> l/L=0,25
-Load : linear dead load ex: 20t/ml
-profile range : HHEA,
-Optimisation criterea : stell mass
Outputs to excel :
- results in the same line as the inputs to calculate the cost
And thank you again for your time