Populating shared/project parameters in conduit run schedules

Here’s our original bit of script, slightly modified from a post from that other thread.

I think it follows the method you’re recommending…

However our Revit model is quite large, and this script takes upwards of 40 minutes to run. Which I why I tried to change to a user selection.

Is it possible to use something like this to get the ID’s of the respective conduit runs based off the selected elements and apply the parameter values accordingly?