public void Add(ESRI.ArcGIS.Schematic.ISchematicInMemoryFeature value)
        {
            if (m_listElements == null)
            {
                m_listElements = new System.Collections.Generic.List <ESRI.ArcGIS.Schematic.ISchematicInMemoryFeature>();
            }

            if (m_listElements.Count < m_maxElements)
            {
                m_listElements.Add(value);
            }
        }
        public void Initialize(ref ESRI.ArcGIS.Schematic.IEnumSchematicInMemoryFeature relatedElements)
        {
            m_currentIndex = 0;
            m_listElements = new System.Collections.Generic.List <ESRI.ArcGIS.Schematic.ISchematicInMemoryFeature>();

            relatedElements.Reset();
            ESRI.ArcGIS.Schematic.ISchematicInMemoryFeature schemElement = relatedElements.Next();

            // add all Schematic feature to the list
            while ((schemElement != null) && (m_listElements.Count < m_maxElements))
            {
                m_listElements.Add(schemElement);
                schemElement = relatedElements.Next();
            }
        }
        public bool Evaluate(ESRI.ArcGIS.Schematic.ISchematicInMemoryFeature schematicFeature)
        {
            // if not the right class do nothing
            if (schematicFeature.SchematicElementClass.Name != "cables")
            {
                return(false);
            }

            // Remove specific schematic elements
            if ((schematicFeature.Name == "5-7-0") || (schematicFeature.Name == "5-4-0"))
            {
                return(true);
            }

            return(false);
        }