Adding multiple parameters to multiple categories in Revit Api
I am trying to create a plugin inside the Revit which supposed to search on some categories(the catgories i get from an Excel sheet according to the elements) and then add new shared paramters to them , but what i found out that when i run the code it only add those new paramters to the last element was in the Excel sheet, not all the elements, and if i remove this elements, the changes will get applied only on the last element not the previou elements in the last, i dunno if its about the transaction or what exactly.
this is where is my transaction happens: