Select All Ducts and Set Each Shared Parameter

Select All Ducts and Set Each Shared Parameter

Anonymous
Not applicable
729 Views
1 Reply
Message 1 of 2

Select All Ducts and Set Each Shared Parameter

Anonymous
Not applicable

Hello,

 

I am new to Revit and the Revit API (as well as C# - though I have taken various OOP courses in Java). My goal for my first add-in is to  select all the ducts in a project and go through each one, modifying a shared parameter value based on connections. I currently have a working add-in that allows me to select one duct - modifying the shared parameter for that single duct. It would be nice if I could get this to work on a large scale. Run the add-in, the add-in selects all the ducts and updates all the shared parameter values one-at-a-time for each duct. Is there a way to accomplish this task?

 

Cam

0 Likes
Accepted solutions (1)
730 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
Accepted solution

I have actually gotten this to work using the filters (explained on this page http://wikihelp.autodesk.com/Revit/enu/2014/Help/3665-Developers/0039-Basic_In39/0040-Filterin40/004...) and a pair of nested 'foreach' loops. If anyone runs into a similar issue - as noobie as it is - feel free to shoot me a message and I can show you my code.

 

Cheers! Smiley Happy

0 Likes