Geni
1 March 2024 13:48
1
Hello there,
I am trying to use C# for some automatizion in concrete shell design, but I’m struggling to find examples to guide me. Specifically, I’m unsure about how to input reinforcement parameters for a slab I’m constructing in my code.
Would anyone be able to offer some assistance or guidance on this?"
Ehy @Geni
have a look at the following method/constructor that should help you in getting to achieve what you are looking for!
FemDesign.Reinforcement.SurfaceReinforcement obj = FemDesign.Reinforcement.SurfaceReinforcement.DefineStraightSurfaceReinforcement(region, straight, wire);
FemDesign.Reinforcement.Straight obj = new FemDesign.Reinforcement.Straight(_direction, space, _face, cover);
FemDesign.Shells.Slab obj = FemDesign.Reinforcement.SurfaceReinforcement.AddReinforcementToSlab(slab, surfaceReinforcement, xDir, yDir);
If you want to learn more, have a look at the “reinforcement” folder within femdesign.core repository
public static SurfaceReinforcement DefineStraightSurfaceReinforcement(Geometry.Region region, Straight straight, Wire wire)
{
// set straight (e.g. centric == null)
Centric centric = null;
// new surfaceReinforcement
SurfaceReinforcement obj = new SurfaceReinforcement(region, straight, centric, wire);
// return
return obj;
}
/// <summary>
/// Add SurfaceReinforcement to slab.
/// Internal method use by GH components and Dynamo nodes.
/// </summary>
public static Shells.Slab AddReinforcementToSlab(Shells.Slab slab, List<SurfaceReinforcement> srfReinfs, Geometry.Vector3d xDir = null, Geometry.Vector3d yDir = null)
{
// deep clone. downstreams objs will contain changes made in this method, upstream objs will not.
// downstream and uppstream objs will share guid.
This file has been truncated. show original
Let me know how it goes and we can further help you
Geni
4 March 2024 14:17
3
Thanks a lot for the fast answer!
Now, I was able to accomplish it.