I have just had exactly the same thing happen to Dynamo (Revit 2021). Each file I now open opens in the same way with all of the nodes ontop of each other and unuseable, and the code blocks blank.
Did you find a way to resolve this?
Please find attached my log file and the project I was working on when I re-opened the dynamo file with this issue.
I dont think I have any view extensions installed.
Thank you for your help. My work around at this time is to use another PC which seems to work. I have tried uninstalling/re-installing Revit 2021 with no luck on the PC I as using, so I am assuming it is something on this PC in the background? I am considering resetting my PC to try and make this work.
You have Data-Shapes ViewExtensions loaded. I’m not sure if this is causing the issue, might be worth removing it temporarily in case there is a conflict. From the errors though it looks like there is a null reference and the CodeBlockNodeModels fail to build just after the Extensions Tab is added (hence why you are seeing blank codeblocks in the same spot)…
2020-09-12 16:01:01Z : Failed to apply NodeViewCustomization for CodeBlockNodeModel
2020-09-12 16:01:01Z : System.NullReferenceException:
2020-09-12 16:01:01Z : Object reference not set to an instance of an object.
2020-09-12 16:01:01Z : at Dynamo.Wpf.Views.CodeHighlightingRuleFactory.CreateClassHighlightRule(EngineController engineController)
at Dynamo.Wpf.Views.CodeHighlightingRuleFactory.CreateHighlightingRules(TextEditor editor, EngineController controller)
at Dynamo.UI.Controls.CodeBlockEditor..ctor(NodeView nodeView)
at Dynamo.Wpf.CodeBlockNodeViewCustomization.CustomizeView(CodeBlockNodeModel model, NodeView nodeView)
at lambda_method(Closure , NodeModel , NodeView )
at Dynamo.Wpf.NodeViewCustomizationLibrary.TryApplyCustomization(NodeModel model, NodeView view, InternalNodeViewCustomization customization)
And, one other thing I saw in the log is this line…
PackageManagerViewExtension: Method not found: 'Void DotNetEnv.Env.Load(System.String, LoadOptions)'.
Not sure of the significance of this, I don’t have Dynamo 2.6 yet so can’t confirm if I also get this, but in 2.5 this isn’t present…
The Void DotNetEnv.Env.Load(System.String, LoadOptions) indicates that there is a something up with .NET components on the system, which explains the graph functioning on other machines too. I’ll flag with dev and see if there are any ideas there.
Thank you Daniel, you are right I do have Data-Shapes loaded, apologies. I will try removing and seeing if this works. The extension is important for some of my graphs so I hope I can use it.
No worries @TimGreatrex, I think it’s more likely the DotNetEnv error as Jacob elaborates on (we’ll see what devs say), but could be that the view extension, good to try removing the package temporarily in any case as it eliminates one possibility, just move it to your desktop for now. Let us know if that fixes the issue or not.
Also, you said you were using the graph fine on another machine, is this also in Dynamo 2.6?
Hi Daniel. Can I ask what you mean by move the package to my desktop for now, instead of its location on the C:?
The graph opens up fine on the other machine, but I do not have the view extensions loaded on that machine. I will try installing them to see what happens.
Yeah, the package is in the app data directory (C:\Users%USERNAME%\AppData\Roaming\Dynamo\Dynamo Revit\2.6\packages), simply move it to another location like your desktop, open revit/dynamo and see if this fixes it, if not then move it back and let us know this was not the issue.
I uninstalled the Data Shapes package this morning and it did not fix the issue. I also removed the other packages I have (Clockwork, spring nodes, Orchid, and DYN_SharedParamTesting) and this did not work either. Do you think it is the .NET components file that is damaged/altered on this PC?
With 2021 being less than a year old this feels like a potential cause. Pyrevit has also had its fair share of issues in the past.
Can you disable all the add-ins and try to reproduce? If it doesn’t reoccur try reinstalling the custom one and test Dynamo again. Then do PyRevit, test. Xrev, test. Enscape, test.
Post the Revit journal from any which reproduce the failure.
I have disabled all of the addins, removed my custom addin, and removed Enscape, but the problem is still occuring with any Dynamo file I try to open on this PC.
Please see attached. I have attached todays date, and the journal of the date before this problem started, just in case. journal.0078.txt (213.8 KB) journal.0059.txt (1.4 MB)