DrawLine path by custom code

I want to drawLine the optimal path from the origin to the destination according to the link below
But it does not work and writes the path was found with 0 points!

https://arongranberg.com/astar/docs/editormode.html

After finding the path, I want the robot to move towards the destination with the push of a button

Hi

This page might help you Error messages - A* Pathfinding Project