Hi Everyone,
I am running into some problems with my Dynamo Application.
Everytime I open an existing graph in which I have used Code Blocks, My Dynamo throws an Error in the console (see below) and all the Groups, Notes, NodePositions are deleted. All nodes are stacked upon each other, see Image 1.
When this happends I have to restart Dynamo. The weird thing is, that this only happends when I open an existing graph with Code blocks. If I start a new Graph and I create a code block everything works fine.
Has anyone encountered this before?
Dynamo 2.6.1.8855
Revit 2021.1.2
Image1
This is what a Code block looks like after I opened a Graph with codeblocks
Error from the Console.
Active view is now RHD_start page_Template_Revisions
Failed to apply NodeViewCustomization for CodeBlockNodeModel
System.NullReferenceException:
Object reference not set to an instance of an object.
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)
Failed to apply NodeViewCustomization for CodeBlockNodeModel
System.NullReferenceException:
Object reference not set to an instance of an object.
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)