Hello everyone

I am customizing a DimensionLineElement node in Visual Scripting Allplan and I am having trouble getting the results.
How to make the results "DimenionLineElement" always show in preview mode after the mouse cursor position leaves the Visual Scripting window.

Here is my code.
______________________________________________________

import NemAll_Python_Geometry as AllplanGeo
import NemAll_Python_BaseElements as AllplanBaseElements
import NemAll_Python_BasisElements as AllplanBasisElements

from NodeUtil import NodeBase, NodeStringUtil, NodeFunctionUtil

NodeBase.trace_node_name('NodeDimensionLineElement')

def create_node(init_data):
"""
Create the node

Args:
init_data: data for the node initialization
"""

return NodeDimensionLineElement(init_data)

class NodeDimensionLineElement(NodeBase):
"""
Definition of class NodeDimensionLineElement
"""

def _create_output(self):

self._set_init_node_output(self.build_ele.DimensionLineElement)

def create_dimension_line_ele(pnt):

pnt_3d_list = AllplanGeo.Point3DList()

pnt_3d_list.append(pnt)
pnt_3d_list.append(pnt.__add__(AllplanGeo.Vector3D(100, 0, 0)))
pnt_3d_list.append(pnt.__add__(AllplanGeo.Vector3D(200, 0, 0)))

dimensionPoints = AllplanGeo.Vector2D(0, 0)
placementPoint = AllplanGeo.Vector2D(1000, 0)

directionVector = AllplanBasisElements.DimensionProperties(self.coord_input.GetActiveViewDocument(),
AllplanBasisElements.Dimensioning.eDimensionLine)

return AllplanBasisElements.DimensionLineElement(pnt_3d_list, dimensionPoints, placementPoint,
directionVector)

self.build_ele.DimensionLineElement.value = NodeFunctionUtil.execute_for_lists_with_block(create_dimension_line_ele,
self.build_ele.Point3DList)