strusoft / femdesign-api

FEM-Design API
https://femdesign-api-docs.onstrusoft.com/
Apache License 2.0
41 stars 20 forks source link

Material/Sections default database reading from local resource #301

Open andosca opened 2 years ago

andosca commented 2 years ago

Material/Sections default database reading from local resource

Originally posted by @andosca in https://github.com/strusoft/femdesign-api/issues/296#issuecomment-1092544839

andosca commented 2 years ago

Will wait for BP response on possibility to automatically dump materials.

xRadne commented 2 years ago
  • Because if we upload an example C# script we want it to work out of the box. This requires us to either provide an example material (of each type) or we tell the user save the materials once, and then we can find it automatically

  • Unit tests. To be able to test methods that require a material or section it would be good if there were some available to choose from.

https://github.com/strusoft/femdesign-api/issues/296#issuecomment-1092507044

For Unit tests to work we can't rely on a locally added .struxml file (at least not without some path wizardry ✨)

andosca commented 2 years ago

This works fine:

https://github.com/strusoft/femdesign-api/blob/ddd094d97d75db3fe95babc6c5727b9ba7afe705/FemDesign.Tests/Model/ModelTests.cs#L114-L119

Not sure if I fully understand the problem.

xRadne commented 2 years ago

This works fine:

https://github.com/strusoft/femdesign-api/blob/ddd094d97d75db3fe95babc6c5727b9ba7afe705/FemDesign.Tests/Model/ModelTests.cs#L114-L119

OK. Perfect!

andosca commented 2 years ago

@andosca Follow up on internal case.

andosca commented 2 years ago

https://strusoft.fogbugz.com/f/cases/119403/FEM-Design-to-dump-materials-sections-in-local-folder