예제 #1
0
        /// <summary>
        /// Override method to create reinforcement on the selected column
        /// </summary>
        /// <returns>true if the creation is successful, otherwise false.</returns>
        protected override bool FillWithBars()
        {
            //create Rebar Container
            ElementId conTypeId = RebarContainerType.CreateDefaultRebarContainerType(m_revitDoc);
            ElementId hostId    = m_hostObject.Id;
            Element   host      = m_revitDoc.GetElement(hostId);

            if (null != host)
            {
                RebarContainer cont = RebarContainer.Create(m_revitDoc, host, conTypeId);
                bool           flag = FillTransverseItems(cont);
                flag = flag && FillVerticalItems(cont);
            }

            return(base.FillWithBars());
        }
예제 #2
0
        /// <summary>
        /// Override method to create rebar on the selected beam
        /// </summary>
        /// <returns>true if the creation is successful, otherwise false</returns>
        protected override bool FillWithBars()
        {
            //create Rebar Container
            ElementId      conTypeId = RebarContainerType.CreateDefaultRebarContainerType(m_revitDoc);
            RebarContainer cont      = RebarContainer.Create(m_revitDoc, m_hostObject, conTypeId);

            // create the top items
            bool flag = FillTopItems(cont);

            // create the bottom items
            flag = flag && FillBottomItems(cont);

            // create the transverse items
            flag = flag && FillTransverseItems(cont);

            return(base.FillWithBars());
        }