08-30-2019, 11:08 AM
Using the "machining project" plugin in RoboDK it is possible to specify a rotation in the section "Path to tool offset". Now I'm creating the machining project using python, which works fine, except that I'm not able to set the tool offset orientation. Currently I have to do this manual, after the program is created. The code I'm use:
I guess the orientation needs to be set in the params section, but I can't find a solution in the python documentation. Using setPoseTool() did not work, since this just change the pose of the tool.
Does someone have a hint, how the tool offset can be modified?
Code:
path_settings = RDK.AddMachiningProject("milling")
prog, status = path_settings.setMachiningParameters(ncfile="Milling Bowl 3x.nc", part=RDK.Item('FrameTest'), params="RotZ_Range=45 RotZ_Step=5 rotz(90) NormalApproach=50 Optim_Turntable=Yes Offset_Turntable=90")
I guess the orientation needs to be set in the params section, but I can't find a solution in the python documentation. Using setPoseTool() did not work, since this just change the pose of the tool.
Does someone have a hint, how the tool offset can be modified?