Esempio n. 1
0
 private static StbSecColumn_RC CreateTrapezoidColumn(int croSecId, int cNum, CroSec_Trapezoid trapezoid)
 {
     return(new StbSecColumn_RC
     {
         id = (croSecId + 1).ToString(),
         name = "C" + cNum,
         kind_column = StbSecColumn_RCKind_column.COLUMN,
         StbSecFigureColumn_RC = new StbSecFigureColumn_RC
         {
             Item = new StbSecColumn_RC_Rect {
                 width_X = trapezoid.maxWidth() * 1000, width_Y = trapezoid._height * 1000
             }
         },
     });
 }
Esempio n. 2
0
 private static StbSecBeam_RC CreateTrapezoidBeam(int croSecId, int gNum, CroSec_Trapezoid trapezoid)
 {
     return(new StbSecBeam_RC
     {
         id = (croSecId + 1).ToString(),
         name = "G" + gNum,
         kind_beam = StbSecBeam_RCKind_beam.GIRDER,
         StbSecFigureBeam_RC = new StbSecFigureBeam_RC
         {
             Items = new object[] { new StbSecBeam_RC_Straight
                                    {
                                        depth = trapezoid._height * 1000,
                                        width = trapezoid.maxWidth() * 1000
                                    } }
         },
     });
 }