Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Take program instructions parameters with C# API

#1
Hi,


I'm working on an application with C# API of RoboDK and I'm trying to obtain the parameters of the different types of instructions of the program. As u can see in the attached images, RoboDK has many menus for the different types of instructions (set speed and move, in this case):

On the other hand, I have found a type named "ProgramInstruction", but does not have a "Parameters" member or something like that. From my point of view, is very weird that RoboDK has the possibility of change the menu (and its appearence) depending on the type of instruction, and that It's not possible to do it by API.

Is there any way to take those parameters with the C# API?

Thank you very much for your help.


Attached Files Thumbnail(s)
       
#2
It is possible to modify any program instruction by using Json strings and setParam.

This link shows an example:
https://robodk.com/doc/en/PythonAPI/exam...structions
#3
(03-23-2021, 05:50 PM)Albert Wrote: It is possible to modify any program instruction by using Json strings and setParam.

This link shows an example:
https://robodk.com/doc/en/PythonAPI/exam...structions

Thank you so much, this worked for me.
  




Users browsing this thread:
1 Guest(s)