/// <summary> /// Определение количества хомутов в колонне, с учетом усиленной части /// </summary> /// <returns></returns> protected int GetCountShackle(int rows) { int resCount = 0; var addLength = Block.GetPropValue <int>(PropNameAddLength); int step = Block.GetPropValue <int>(PropNameShackleStep); if (addLength > 0) { // Кол в усиленной части int addStep = Block.GetPropValue <int>(PropNameAddStep); var addCount = Bar.CalcCountByStep((addLength - 50), addStep); // Кол в верхней части int topCount = Bar.CalcCountByStep((Height - addLength - 50 - step), step); resCount = addCount + topCount; } else { // Без усиления resCount = Bar.CalcCountByStep(Height - 100, step); } return(resCount * rows); }