Anchoring isofields has been added
This commit is contained in:
@@ -16,6 +16,7 @@ namespace StructureHelperLogics.Models.Materials
|
||||
{
|
||||
Concrete40,
|
||||
Reinforecement400,
|
||||
Reinforecement500,
|
||||
Elastic200
|
||||
}
|
||||
|
||||
@@ -30,10 +31,21 @@ namespace StructureHelperLogics.Models.Materials
|
||||
codeType = code;
|
||||
if (type == HeadmaterialType.Concrete40) { return GetConcrete40(); }
|
||||
if (type == HeadmaterialType.Reinforecement400) { return GetReinforcement400(); }
|
||||
if (type == HeadmaterialType.Reinforecement500) { return GetReinforcement500(); }
|
||||
if (type == HeadmaterialType.Elastic200) { return GetElastic200(); }
|
||||
else throw new StructureHelperException(ErrorStrings.ObjectTypeIsUnknown + nameof(type));
|
||||
}
|
||||
|
||||
private static IHeadMaterial GetReinforcement500()
|
||||
{
|
||||
var material = new HeadMaterial() { Name = "New reinforcement" };
|
||||
var libMaterial = LibReinforcementMaterials.Where(x => x.Name.Contains("500")).First();
|
||||
var libMat = new ReinforcementLibMaterial();
|
||||
libMat.MaterialEntity = libMaterial;
|
||||
material.HelperMaterial = libMat;
|
||||
return material;
|
||||
}
|
||||
|
||||
private static IHeadMaterial GetElastic200()
|
||||
{
|
||||
var material = new HeadMaterial();
|
||||
|
||||
Reference in New Issue
Block a user