Definition of design groups via C# API

Is it possible to define design groups via C# API?

Either through adding CmdDesignGroup instance to model or through configuration xml file?

1 Like

Ehi @TheFishTankGuy :fishing_pole:

Looks like this part of the API is not really simple to use in c#.

The goal is be able to create a CmdDesignGroup as you said: :link: FdScript_DesignGroup

In c#, you can then apply the design group doing the following:

var designGroup = new FemDesign.Calculate.CmdDesignGroup("name", new List<FemDesign.GenericClasses.IStructureElement>(), DesignGroupType.SteelBars);

string logfilePath = OutputFileHelper.GetLogfilePath(connection.OutputDir);
var fdscript = new FemDesign.Calculate.FdScript(logfilePath, designGroup);

connection.RunScript(fdscript);

thanks for the feedback. We will generate a method called:
SetDesignGroup() to make user life easier :slight_smile:

1 Like

Thank you Marco for the solution.
It worked like a charm. :slight_smile: