Set tool using Python

Hi!

Does anyone know of a way to set the tool of the robot using Python? It seems so simple, but I couldn’t find anything, except the ActiveTool method from vcHelpers.Robot2, which didn’t help me.

Thanks

I’m guessing “Active tool” is just a UI-side concept to help with creating the program from UI. I think each motion statement defines what tool is used separately.

Looking at the Robot2 helper code (it is a Python script file under VC installation files) it just has its own local “Active tool” definition which is then used within that class, so it applies only to things you do through that Robot2 object.

edit: In .NET API there is IRobotController.CurrentTool, but I couldn’t find equivalent in Python API.