RoboDK Forum
Change Preferred Tool Orientation via API可打印版本

+- RoboDK Forum (//www.sinclairbody.com/forum)
+-- Forum: RoboDK (EN) (//www.sinclairbody.com/forum/Forum-RoboDK-EN)
+--- Forum: RoboDK API (//www.sinclairbody.com/forum/Forum-RoboDK-API)
+--- Thread: Change Preferred Tool Orientation via API (/Thread-Change-Preferred-Tool-Orientation-via-API)



Change Preferred Tool Orientation via API-Oxbown-02-01-2023

Hello again!
¿Is there any way to change these parameters via API?
Thanks


RE: Change Preferred Tool Orientation via API-Sam-02-01-2023

Take a look at this example:
//www.sinclairbody.com/doc/en/PythonAPI/examples.html#robot-machining-settings

You can find all available parameters using:
machining_settings = machining_project.setParam("Machining")


RE: Change Preferred Tool Orientation via API-Oxbown-02-01-2023

(02-01-2023, 01:32 PM)山姆Wrote:Take a look at this example:
//www.sinclairbody.com/doc/en/PythonAPI/examples.html#robot-machining-settings

You can find all available parameters using:
machining_settings = machining_project.setParam("Machining")

Thank you for the response.


Code:
'OrientXaxis2_X': 0.5820855000871991, 'OrientXaxis2_Y': -0.6790997501017323, 'OrientXaxis2_Z': 1.4472135954999579, 'OrientXaxis_X': 0.5820855000871991, 'OrientXaxis_Y': -0.6790997501017323, 'OrientXaxis_Z': 0.4472135954999579,



How I can convert those units to degrees? Not radians


RE: Change Preferred Tool Orientation via API-Albert-02-01-2023

Good question... the XYZ values describe a vector.

What you see in RoboDK are polar coordinates to represent these unit vectors.