Open Revit Sheets in Bulk

Any idea how can I make the active view the last sheet that opens up?. I tried doing this after your python code buy it didn’t work, until I toggle it manually.

Thank you for your help!

Hmm, it should be making the active view the last in the list already.

Yeah… Somehow it is not doing that. The sheet is open in Revit but dynamo doesn’t recognized it as the active view. Weird.

Hmm. Unfortunately, we might be hitting a limitation with Dynamo at this specific point. View switching requires the current document to be in a “ready state” and dynamo requires Revit to be in that same state. So there is some sequencing that just isn’t happening right.

I would say to use the input view sheet downstream for your further interactions.

1 Like

Thank you very much for your explanation John.

1 Like

Would a transaction help?

It might. But with Dynamo severely relying on the idling event it gets weird. My preference would be to return the expected view as an output from the python node.

1 Like

so i copied your script and graph and its not functioning I saw that it needs to be a list and tried a few different nodes and i cant get your script to work. i am not very familiar with python so i am lost as to where the python script node is failing.

what does the error say when you hover?

image

i am trying this currently
sorry have been looking for awhile i will let you know if this works

It is the “def” in the python. It is all one indent too deep.

2 Likes

i think that worked my computer is thinking anyway. 438 sheets is a bit to handle😂

1 Like

I was seeking a solution to the same problem. I found a node that does exactly what you are after that can be used on Views or Sheets.

Get the Orchid Package and use the OpenView node. I used it in conjunction with a contains filter as an example.

1 Like