Exemplo n.º 1
0
 private static void SetBuildBoxSection(StbSections sections, FemMaterial material, CroSecFamilyName familyName, ICollection <CroSec> k3dCroSecList)
 {
     if (sections.StbSecSteel.StbSecBuildBOX != null)
     {
         foreach (StbSecBuildBOX buildBOX in sections.StbSecSteel.StbSecBuildBOX)
         {
             var k3dCroSec = new CroSec_Box(familyName.Box, buildBOX.name, null, null, material,
                                            buildBOX.A / 10d, buildBOX.B / 10d, buildBOX.B / 10d,
                                            buildBOX.t2 / 10d, buildBOX.t2 / 10d, buildBOX.t1 / 10d, 0, -1);
             SetK3dCroSecElemId(sections, k3dCroSec, buildBOX.name);
             k3dCroSecList.Add(k3dCroSec);
         }
     }
 }
Exemplo n.º 2
0
 private static void SetRollBoxSection(StbSections sections, FemMaterial material, CroSecFamilyName familyName, ICollection <CroSec> k3dCroSecList)
 {
     if (sections.StbSecSteel.StbSecRollBOX != null)
     {
         foreach (StbSecRollBOX rollBOX in sections.StbSecSteel.StbSecRollBOX)
         {
             var k3dCroSec = new CroSec_Box(familyName.Box, rollBOX.name, null, null, material,
                                            rollBOX.A / 10d, rollBOX.B / 10d, rollBOX.B / 10d,
                                            rollBOX.t / 10d, rollBOX.t / 10d, rollBOX.t / 10d, rollBOX.r / 10d, rollBOX.r / 10d);
             SetK3dCroSecElemId(sections, k3dCroSec, rollBOX.name);
             k3dCroSecList.Add(k3dCroSec);
         }
     }
 }