09-25-2019, 12:56 PM
I would like to select two istruction from a program already created and convert them from Linear to Circular.
Is that possible?
Is that possible?
Select Istruction from Program and Add New Istruction |
09-25-2019, 12:56 PM
I would like to select two istruction from a program already created and convert them from Linear to Circular.
Is that possible?
09-25-2019, 05:37 PM
You can't convert 2 linear movements to one circular movement. However, you can retrieve the 2 targets of your linear movement and create a circular movement:
09-26-2019, 06:22 AM
(09-25-2019, 05:37 PM)Albert Wrote:You can't convert 2 linear movements to one circular movement. However, you can retrieve the 2 targets of your linear movement and create a circular movement: Fine. My main problem is to retrive the ID of the selected istruction and to add new istruction ( the circular one) in the right place and not at the end of the program.
You can then select the instruction you are currently using before you add the circular movement. Then, the circular movement will be added after that movement.
With the API you can do it the following way:
Code:
program.InstructionSelect (id)
More information here: //www.sinclairbody.com/doc/en/PythonAPI/robo...tionSelect
09-30-2019, 01:18 PM
(09-26-2019, 10:00 AM)Albert Wrote:You can then select the instruction you are currently using before you add the circular movement. Then, the circular movement will be added after that movement.
10-02-2019, 05:43 PM
Hi Stefano,
Yes, you can delete instructions given an instruction:
Code:
program.InstructionDelete(instruction_id)
More information here: //www.sinclairbody.com/doc/en/PythonAPI/robo...tionDelete This option was added recently so if you don't see this command you should update to the latest version of RoboDK. Albert |
Users browsing this thread: |
1 Guest(s) |