Simulation of 3D Printing Path and Its Integration with the Welding Process Using Script Code