Hi!
Is it possible to assign project settings data using the API?
I have entered it manually as shown below but would be nice if it wasn’t needed.
I’m gonna be using it for an automated design report.
Best regards
Kristian
Hi!
Is it possible to assign project settings data using the API?
I have entered it manually as shown below but would be nice if it wasn’t needed.
I’m gonna be using it for an automated design report.
Best regards
Kristian
Hi @Kristiandl !
It is possible using the following method:
Your code might look something like the following
using (var femDesign = new FemDesignConnection(outputDir: "My analyzed model", keepOpen: true))
{
// Run analysis and red some results
femDesign.Open(struxmlPath);
femDesign.SetProDescription();
}
Let me know if it works well for you!
Can’t quite get it to work.
It might be the way i have set it up. I can see that i have the same issue with the ConcreteDesignConfig trying to turn on ‘Reopening cracks’.
My code looks like this:
using (var femDesign = new FemDesign.FemDesignConnection($@"C:\Program Files\StruSoft\FEM-Design 23\", _FEMInBg))
{
model.Entities.Slabs[0].SlabPart.MeshSize = thickness;
femDesign.Open(model);
var config = new FemDesign.Calculate.ConcreteDesignConfig(new ConcreteDesignConfig.CalculationMethod(), reopeningCracks: true);
femDesign.SetConfig(config);
femDesign.SetProjDescription("project", "", "KDL", "", "");
}
Are you using the latest build version of FEM-Design (the main software)?
23.00.005 or higher is required
I’m using 23.00.003. I’ll try and update and see if it helps.
That did the trick!
Thanks again @MarcoPelle for the fast and helpful support!