I saw in the API FemDesign.Core/Reinforcement/SurfaceReinforcement.cs that there are some functions to create surface reinforcement in Grasshopper and Dynamo. Is there an easy way to do it with C#?
I mean, it’s always possible to edit the xml file from C#, add new lines and create unique GUIDS somehow. But it is quite a complex process. The approach I normally follow is to create the basic reinforcement I want manually with the normal Fem Design user interface and then accessing the surface reinforcement in the following way:
Then I can create a for loop to edit those parameters. Is there any “easy” way to add reinforcement using C# without editing the main model and saving it as .struxml?
Theoretically, you can create a slab with reinforcement using c#.
There are method which should help you in creating a slab with several type of reinforcement.
As you are familiar with Grasshopper, the way to add reinforcements to a slab is basically the same in c#.
Maybe a stupid question but I’m already stuck in deconstructing the database variables. If I try to debug the code then it doesn’t have the location for filePath. I added a simple string and it reads in the locals but still gives an error.
In the locals it reads but it doesn’t solve the deserialize problem. And debugging step by step I really can’t tell what is wrong at the moment. Last working line is 29, where it tries to return the concrete class parameters.
One more comment. In the code the rebar cover is defined but in the calculation parameters it’s not. Is it possible in current API solution?
And probably there would be more similar questions coming, is there a documentation file to look up for these possibilities of different methods?
The starting point will be to dump an existing settings file which can be modified to better suite your needs.
Have a look at the explanation in the following documentation page
Loading the cfg.xml file will only require a simple: