06-27-2019, 03:44 PM
I know that Curves can be imported into RoboDK from a CSV file or a text file, but if I build a toolpath in matlab, can it be imported into RoboDK for simulation?
Import Curves |
06-27-2019, 03:44 PM
I know that Curves can be imported into RoboDK from a CSV file or a text file, but if I build a toolpath in matlab, can it be imported into RoboDK for simulation?
06-27-2019, 09:53 PM
The same way you can load a CSV file in RoboDK you can load it using AddFile through the Matlab API:
//www.sinclairbody.com/doc/en/PythonAPI/robo...nk.AddFile By default, RoboDK will load CSV files as a curve and TXT files as points. Once you have the list of points or curve in Matlab you can use AddMachiningProject to quickly create a robot simulation/program from your points: //www.sinclairbody.com/doc/en/PythonAPI/robo...ingProject Another option is to import points one by one as targets. This example may help: //www.sinclairbody.com/doc/en/PythonAPI/exam...to-program However, if you are planning to import thousands of points this may be a bit slow in Matlab. (我移动this thread to the API section)
If I want to add c#API to the list of curves and points in the CSV file, do I still need to modify the python file in (RoboDK\Library\Macros)?
I don't know how to use this example in the API? Do you have some example code could provide me with a reference?
06-28-2019, 04:26 PM
Yes, you may have to customize the Python or Matlab code provided examples to achieve a customized behavior. The examples I provided in my previous reply will give you an idea of how you can import a list of points in a CSV file into RoboDK. Once these points are imported in RoboDK you can simulate it and generate programs.
|
Users browsing this thread: |
1 Guest(s) |