Class clsReferenceFilter.
Inheritance: ISelectionFilter
        /// <summary>
        ///   Gets the reference element.
        /// </summary>
        /// <exception cref="Exception">Selected Reference Element was found in Document</exception>
        private void GetReferenceElement()
        {
            clsReferenceFilter m_filter = new clsReferenceFilter(_Doc);

            Reference m_ref = _UiDoc.Selection.PickObject(
                ObjectType.Element,
                m_filter,
                "Select the Reference Element. [Wall,Lines]");

            RefElement = _Doc.GetElement(m_ref);

            if (RefElement == null)
            {
                throw new Exception("Selected Reference Element was found in Document");
            }
        }
        /// <summary>
        ///   Gets the reference element.
        /// </summary>
        /// <exception cref="Exception">Selected Reference Element was found in Document</exception>
        private void GetReferenceElement()
        {
            clsReferenceFilter m_filter = new clsReferenceFilter(_Doc);

              Reference m_ref = _UiDoc.Selection.PickObject(
            ObjectType.Element,
            m_filter,
            "Select the Reference Element. [Wall,Lines]");

              RefElement = _Doc.GetElement(m_ref);

              if (RefElement == null)
              {
            throw new Exception("Selected Reference Element was found in Document");
              }
        }