DynamoRevit icon indicating copy to clipboard operation
DynamoRevit copied to clipboard

Changing Revit document throws exception in Views selection node (null document / singleton not updated)

Open ThomasMahon opened this issue 3 years ago • 1 comments

If this issue is not a bug report or improvement request, please check the Dynamo forum, and start a thread there to discuss your issue.

Dynamo version

2.12

Revit version

21

Operating system

W10

What did you do?

Used the Views node. Opened document A, ran graph. Opened doc B and closed doc A so Dynamo attaches to doc B. Ran same graph and the node throws an exception.

What did you expect to see?

The node to go yellow, e.g. the previously selected view doesn't exist in the active document, or if a view with the same name exists, for the node to auto-refresh and return the view from the active document Dynamo is attached to.

What did you see instead?

The document singleton isn't updated when Dynamo reattaches to a new document so the views node throws a null exception and has to be deleted and replaced. image

ThomasMahon avatar Oct 04 '21 10:10 ThomasMahon

Hi @ThomasMahon , I don't reproduce this issue on my side. My step is:

  1. New a Revit project, and open Dynamo, create a "Views" node and select "South".
  2. New another Revit project, and close the old one. Look at my picture, the node doesn't turn red and can run. CloseOldRevitDoc OpenNewRevitDoc

ZiyunShang avatar Dec 22 '21 03:12 ZiyunShang