Using script to realize automatic fixture change of robot

Hello, I hope to use scripts to realize the automatic fixture change of the robot and the work of grasping, or to use scripts to realize the PNP connection between the robot and the fixture.