Is there any way to get the currently active or selected row for a schedule? More specifically, what about for a panel schedule?
I would like the user to be able to make a field in a row active on a panel schedule, then press a button and be able to do something to the circuit they selected.
Using the ActiveView I can get the panel name, but I can't figure out if I can get the row.
Solved! Go to Solution.
Solved by Aaron.Lu. Go to Solution.
You're right--good tip. I ran a few tests, and UIDocument.Selection returns the elements that correspond to the currently selected schedule row.
I tested a standard schedule of ElectricalEquipment. The UIDocument.Selection list contained a single element with the ElectricalEquipment for the currently selected row.
I tested a panel schedule with a circuit selected. The UIDocument.Selection list contained more items. It appeared to have the ElectricalSystem and all the connected FamilyInstances in it.
Can't find what you're looking for? Ask the community or share your knowledge.