Populating shared/project parameters in conduit run schedules

I’m trying to use Dynamo to populate shared/project parameters I’m using for spooling conduit runs. Here’s what I have that seems to almost work.

It seems to populate the conduit run schedule parameters, but the length and comments are being grabbed from a different run of conduit than my two shared parameters.

I’m a new user so I can only post one image at a time. I’ll include a few more below

Any ideas?

This appears to be a similar issue to this thread:

However it doesn’t appear to ever have been actually solved. The final post shows copying the comments parameter to the shared parameter which isn’t quite what I’m aiming for.

Here’s the Identity Data for my selection

Here’s what the schedule looks like


If you run the graph, does it give an error?
What does it say?
It will give us a clue

Do you mean running the Dynamo script? If so, everything runs without errors. I can even get my two “SPOOL” parameters to update in the schedule, but they’re showing next to the wrong conduit runs.

If I highlight, let’s say row two, in my schedule an click highlight in model, it highlights a different conduit run, which doesn’t have those two parameters filled out in the properties window.

Is it possible Dynamo is taking my selected elements, and applying those parameter values to the top of the conduit runs list, so to speak? Instead of matching up those elements to their respective conduit run.
I’m not sure if that made sense. Let me know if I need to clarify.

Ah now i see
Your element selection method is off
It produces lists in a different order if you have two or three mixed methods
use one selection node at the time and make multiple connectors
i’d go for the Element Types one :slight_smile:

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?

i can see why it is taking too long now,
you are getting the parameter value and setting it back to the same object

What I find interesting, is this script didn’t appear to have this issue yesterday. I ran it a few times, and it did take some time, maybe around five minutes or so. However, today I had to force close Revit after about 40 minutes of the script trying to run.

way better than any dynamo method is to take you schedule and use sorting and grouping, don’t forget to untick the itemize all button after sorting, and fill in the empty cells.

Then read the Dynamo Primer, we all did

Unfortunately, that’s the problem.
The only parameter that links between a Conduit Run and it’s children is the comments, which we don’t want to use for this purpose. So when creating the schedule, those values appear blank even if the individual elements have them filled out.

Hence the purpose of this dynamo script.

Been trying to find time to read the primer, as I’m admittedly not well versed in Dynamo. Unfortunately I’m in a bit of a time crunch with this project.

i’m sure someone else here can help you better, i’m sorry, and you have been very polite

1 Like

No problem. I appreciate the effort!

1 Like

Sounds like an element binding issue… post a Revit model and the dyn here it to another file sharing service and I will look into that. If I’m right I’ll return with instructions on how to fix it and will take the time to explain what it is and why it happens.