Revit.SDK.Samples.Reinforcement.CS.ColumnFramReinMaker.FillVerticalBars C# (CSharp) Method

FillVerticalBars() private method

create the all the vertial rebar
private FillVerticalBars ( ) : bool
return bool
        private bool FillVerticalBars()
        {
            // create all kinds of vertical rebars according to the VerticalRebarLocation
             foreach (VerticalRebarLocation location in Enum.GetValues(
                                             typeof(VerticalRebarLocation)))
             {
            Rebar createdRebar = FillVerticalBar(location);
            //judge whether the vertical rebar creation is successful
            if (null == createdRebar)
            {
               return false;
            }
             }

             return true;
        }