Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Current schedule row?

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
Anonymous
736 Views, 4 Replies

Current schedule row?

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.

4 REPLIES 4
Message 2 of 5
Aaron.Lu
in reply to: Anonymous

Dear david,

I believe there is no such API, new wish is filed:
CF-3867 - API ability to get the currently active or selected row for a schedule


Aaron Lu
Developer Technical Services
Autodesk Developer Network
Message 3 of 5
Anonymous
in reply to: Anonymous

I'm pretty sure the currently active row in the schedule appears in the UIDocument Selection object.

Message 4 of 5
David_Robison
in reply to: Anonymous

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.

Message 5 of 5
Anonymous
in reply to: David_Robison

Great, glad it helped.
And thanks for the Kudos!

Eric Rudisaile | Solutions Specialist | MEP

MICRODESK, INC.
main: 800.336.3375
www.microdesk.com
facebook | twitter | linkedin | youtube

Vision. Tools. Talent.
Perfecting project delivery for over 20 years. Learn More

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report