public override void Calculate() { string mark = Block.GetPropValue <string>(propMark); int side1 = Block.GetPropValue <int>(propSide1); int side2 = Block.GetPropValue <int>(propSide2); string role = SlabService.GetRole(Block); string desc = Block.GetPropValue <string>(propDesc, false); opening = new SlabOpening(mark, side1, side2, role, desc, this); AddElement(opening); }
public override void Calculate() { string mark = Block.GetPropValue <string>(propMark); double diam = Block.GetPropValue <double>(propDiam); double depth = Block.GetPropValue <double>(propDepth); int length = Block.GetPropValue <int>(propLength); string role = SlabService.GetRole(Block); string desc = Block.GetPropValue <string>(propDesc, false); sleeve = new SlabSleeve(mark, diam, depth, length, role, desc, this); AddElement(sleeve); //double weightUnit = Block.GetPropValue<double>(propWeightUnit, isRequired:false); tube = new Tube(diam, depth, length, this); tube.Mark = mark; tube.Calc(); AddElement(tube); }