Ejemplo n.º 1
0
        public void ShowCircuit(int index)
        {
            ElectricalSystemItem esi = m_electricalSystemItems[index] as ElectricalSystemItem;
            ElementId            ei  = esi.Id;

            uiDocument.ShowElements(ei);
        }
Ejemplo n.º 2
0
        public void SelectCircuit(int index)
        {
            // Locate ElectricalSystemItem by index
            ElectricalSystemItem esi = m_electricalSystemItems[index] as ElectricalSystemItem;
            ElementId            ei  = esi.Id;

            // Locate expected electrical system
            m_selectedElectricalSystem = uiDocument.Document.GetElement(ei) as ElectricalSystem;
            // Select the electrical system
            SelectCurrentCircuit();
        }