# Type help("robodk.robolink") or help("robodk.robomath") for more information # Press F5 to run the script # Documentation: https://robodk.com/doc/en/RoboDK-API.html # Reference: https://robodk.com/doc/en/PythonAPI/robodk.html # Note: It is not required to keep a copy of this file, your Python script is saved with your RDK project from robodk import robolink # RoboDK API from robodk import robomath # Robot toolbox # The following 2 lines keep your code compatible with older versions or RoboDK: from robodk import * # RoboDK API from robolink import * # Robot toolbox # Link to RoboDK RDK = robolink.Robolink() object_item = RDK.ItemUserPick('Select an object',ITEM_TYPE_OBJECT) curve_item = RDK.ItemUserPick('Select a curve', ITEM_TYPE_CURVE) curve_item.getPoseWrt(object_item)