I don’t know why this Document.ActiveView is not working in my script. But when I am running this same set of node individually it’s working fine. Can anyone please tell me why I am getting this error and how to get over this.
Do you have a valid view open in the active document which this Dynamo session is pointing to (ie: you haven’t changed documents)?
Does the issue persist after a restart?
Does the issue persist in a new file?
If all of the above are ‘yes’ post your Revit journal and your Dynamo log file from a failing session where you start Revit, start a new file, open Dynamo, reproduce the issue, and quit Revit without saving anything.
1 Like
Sorry for the late reply Jacob. Restarting the Revit Session solved the issue. Thanks
2 Likes