Dynamo Player Linked Categories

When running this script in the Dynamo Player the Category selection (input) seems to ignore my input and instead keeps defaulting to the category that was last saved in Dynamo. For instance, per the attached image, I’ve saved this script in Dynamo with Scope Boxes selected, when editing that input in player and setting that to Rooms, after clicking play, the Category input changes back to Scope Boxes. I believe I’ve narrowed the issue down to something with the link selection as when I reconfigure the script to work with spring nodes filter by selection to select the link everything works perfect through the player and dynamo. I’m sure I’m missing something simple, thanks in advance for the assistance!

What happens when you put the node into its’ first position and save it then run it? I believe the first position is blank.

Thanks for the inquiry dsmith. I get the same result but because nothing is in the category the script defaults back to nothing (and the script does nothing).

Below is a snipit of the script when utilizing spring filter by selection (which works perfectly). The failing workflow is causing the same issue in another script which is built very similarly. Also this issue is occurring in Dynamo 2.0.2

I just checked a couple other scripts and it appears that in all my scripts that have a link selection node and other selection type of node that the inputs end up clearing out back to the last saved state from Dynamo. The selection that is clearing out isn’t consistent across the different scripts though (in some scripts its the link selection and some it’s a phase or category selection).

In Dynamo 2.0, this seems related to this fix that @Aaron_Tang responded here, https://github.com/DynamoDS/Dynamo/issues/9495#issuecomment-465964028

and here is the pull request that will fix it in Dynamo 2.1.0,

Thanks for the response John but I’m not sure that I see a fix for this issue. Everything functions perfect inside of dynamo but when running these scripts in the dynamo player is when I’m experiencing the clearing out / defaulting back to the last saved state. Is there a fix listed in that post that I’m missing?

I am running into the same issue. It doesn’t matter if I use the “Links Selection” drop-down or the “Select Model Element” selection & then filter this with a ‘filter by bool’ against a list of RVT Links Category elements in the model. In either case it works with Dynamo, but not Dynamo Player.

While this is fine for my uses…the tools I am building for our teams need to be fully compatible with Dynamo Player since I want them to be working ‘directly’ within Revit

…And I just want to add, this is a different issue than Drop-Down resetting between Revit versions (i.e. the Categories drop-down). This is a case of Dynamo Player ONLY remembering the .dyn’s “saved” selection even when working in the same model/same Revit verison.

Have you tried Right Click On Node > Select "Is Input" ?

Yes, both of the those highlighted options are inputs & they show up as an option in Dynamo Player, but even with it selected it doesn’t find the elements of THAT link…just the link it was saved as.

I’ll send 2 screenshot of the same menu (same script) in Dynamo & then in Dynamo Player…

Inside Dynamo

The selected link contains NO light fixtures, but the file was saved with the another Arch model selected (the one from the screenshot above) which contains the fixtures. You can see in Data-Shapes that the light fixtures show up in the list even though they do not exist in the model selected from Dynamo Player (that drop-down is the same node as the one in the above screenshot)

Hmm, that is super odd. I haven’t experienced this issue with Dynamo player and custom dropdowns.

There must be some sequencing thing with the file running data shapes nodes before taking the new dropdown into effect.

Can you just use another data shapes window to achieve the dropdown first?

Hmm, that’s not a bad idea. Thanks for that potential solution. Let me try that - i’ll get back to you

1 Like

Just made it & while the 1st menu pops up & allows the user to select a link, and then from there segues into the next menu to find the elements in that link…it still reverts back to the link that set when the graph was saved.

That was a good idea though, but it still didn’t fix the issue for me.
Thank you for the help though!

Although I will add that i did not use the nodes for selecting element types…I used the one for categories & RVT Links & then from there connected the instance to get the document. Maybe i’ll try it with yours & see what happens

Yeah, let’s give that a try and check it out. Revit 19 + Dynamo 2.0.3 right?

Revit 2018 for what I’m testing…but the same version of Dynamo