Select Model Element "ConduitRun"

I’m trying to Selectively propagate shared parameters values from conduit to a conduit run. My script will propagate the parameters to connected conduits and fittings using the “Select Model Element” just fine. However, I can’t find a way to “SetParameterValuesByName” for a single ConduitRun. “Element Types” will get All the “ConnduitRun”(s) How can I get just a single ConduitRun so my parameters won’t populate all runs?


In this graph I am getting all the connected conduits with some nodes from the MEPover package. You could start with this method and modify it.
Select model element, get parameters from it, get connected, apply the parameters to the connected elements

Thank you so much for replying.

I actually have MEPover package loaded and I’m using the node “Elements in Connected Network”. However, The node uses conduit and fittings elements and is not the “ConduitRun”

On another post I found a Python Script Node that I renamed to Gets Conduit Run ID.

import clr

import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager
doc = DocumentManager.Instance.CurrentDBDocument

import Autodesk
from Autodesk.Revit.DB import *

import Revit

if isinstance(IN[0], list):
elements = UnwrapElement(IN[0])
elements = [UnwrapElement(IN[0])]

OUT = [doc.GetElement(x.RunId) for x in elements]

This allows me to select 1 conduit which then selects the connected network but also identifies the counduit run.