05-04-2020, 01:42 PM
Hi Leo,
If you want to generate a generic program you can use a neutral post processor such as the CSV post or a Gcode post. This will generate a generic program with all the information needed. We'll soon add a post that automatically creates a Python script that can be run in simulation.
你可以改变指令parameters as shown in this example:
//www.sinclairbody.com/doc/en/PythonAPI/exam...structions
We just added support for this so make sure to upload RoboDK. Also, the Python API uses a dictionary to get/set values, with the C++ API you'll need to use a JSON string instead.
InstructionList is a bit outdated but should work. It will provide a large array describing the program as a 2D matrix.
Albert
If you want to generate a generic program you can use a neutral post processor such as the CSV post or a Gcode post. This will generate a generic program with all the information needed. We'll soon add a post that automatically creates a Python script that can be run in simulation.
你可以改变指令parameters as shown in this example:
//www.sinclairbody.com/doc/en/PythonAPI/exam...structions
We just added support for this so make sure to upload RoboDK. Also, the Python API uses a dictionary to get/set values, with the C++ API you'll need to use a JSON string instead.
InstructionList is a bit outdated but should work. It will provide a large array describing the program as a 2D matrix.
Albert