Retrieving Parameters from ProgramInstructions through the API- Printable Version +- 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: Retrieving Parameters from ProgramInstructions through the API (/Thread-Retrieving-Parameters-from-ProgramInstructions-through-the-API) |
Retrieving Parameters from ProgramInstructions through the API-l.payer-04-11-2023 Hello, we are using the API in order to create programs inside of RoboDK and fill them with Instructions. Later in the process we need to retrieve them again. With GetInstruction() it is already possible to retrieve them and get access to their type and name. 1. How can we differentiate between a LIN or a PTP instruction? As far as I can tell it is only possible to know for example if it is a "InstructionType.Move". 2. How can we retrieve additional Parameters such as the waiting time of a pause instruction and the program which is called by a program call? Kind Regards Luis RE: Retrieving Parameters from ProgramInstructions through the API-Sam-04-11-2023 Hi Luis, Take a look at this example, it shows how to retrieve the parameters dictionary: //www.sinclairbody.com/doc/en/PythonAPI/examples.html#modify-program-instructions RE: Retrieving Parameters from ProgramInstructions through the API-l.payer-04-12-2023 Hey Sam, thanks again for the fast answer :) Kind Regards Luis |