Managing the sequence of multiple nodes in a script

Hello everyone,
my name is Antonio and I am a modeler.
First of all a premise: what I know and have done through Dynamo is the result of self-taught knowledge, the advice I have found in this forum, on linkedin or youtube.

For this reason, thank you very much to all of you for the advice already given ( :wink: ) and those you will give!

Thanks to you, I have managed to create several very useful scripts for me and my colleagues.

Now I come to the reason why I finally ask my first question.

  1. I created a script that duplicates a view as a dependent, giving it a name that I predefined;
  2. With another script I can manage the visibility of the “crop View” in the dependent view;
  3. with the third one I can position the view on an existing sheet

The problem I encounter is that if I try to develop these nodes in a single process for some reason dynamo only performs the 1st and 3rd bypassing the second.
I tried clumsily with nodes like “wait for” / “Transaction End/Start” or “Passtrhough” but without success… I’m at my limit ;(

I hope I can figure out how to do it! Thank you in advance (Revit 2021 / Dynamo 2.6.2 15772)

You should be able to connect all three in sequence since they all create/modify the same view. The output of the first group is the new view. Use that as the input for the second group (rather than searching for the new view in the project). The output of the second group is also the view. Use it as the input for sheet placement.

The second and third group can actually be executed in parallel (their order doesn’t matter) since they have no effect on each other. The only requirement is that the first group executes first so the view exists - this will probably require a Transaction node.