ur10_robot_arm:drawing_with_the_ur10

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
ur10_robot_arm:drawing_with_the_ur10 [2021/03/03 00:28] – [Troubleshooting] formlabur10_robot_arm:drawing_with_the_ur10 [2021/03/03 01:15] (current) – [Troubleshooting] formlab
Line 34: Line 34:
  
   - Right click the python script and choose ''Edit Python Script''. The VSCodium text editor starts up and opens the python script.   - Right click the python script and choose ''Edit Python Script''. The VSCodium text editor starts up and opens the python script.
-  - Change the variable ''SIZE_BOARD'' to the size you would like the drawing to be (in millimeters). +  - Change the variable ''SIZE_BOARD'' to the size you would like the drawing to be (in millimeters). <code python> SIZE_BOARD = [460, 310] #Set the size of the canvas (in mm) </code> 
-  - Change the variable ''IMAGE_FILE'' to the name of the SVG image. (for example: test-image.svg)+  - Change the variable ''IMAGE_FILE'' to the filename of the SVG image. <code python> IMAGE_FILE = 'test-image.svg' </code>
   - Press ctrl + s to save the file and go back to RoboDK. //Keep in mind that this file is updated in RoboDK, but not in the file explorer. Save the changes to the file explorer if you want to keep them for the future.//   - Press ctrl + s to save the file and go back to RoboDK. //Keep in mind that this file is updated in RoboDK, but not in the file explorer. Save the changes to the file explorer if you want to keep them for the future.//
  
Line 87: Line 87:
     * Use the line <code python> RDK.ShowMessage("message", popup = True) </code> to open a popup and pause the execution of the code at that point.     * Use the line <code python> RDK.ShowMessage("message", popup = True) </code> to open a popup and pause the execution of the code at that point.
     * To display variables, use this method: <code python> msg_str = "message: %s" % variable </code> and use the string in ShowMessage like so: <code python> RDK.ShowMessage(msg_str, popup = True) </code>     * To display variables, use this method: <code python> msg_str = "message: %s" % variable </code> and use the string in ShowMessage like so: <code python> RDK.ShowMessage(msg_str, popup = True) </code>
 +    * It might help to temporary load an older version of the python script, and loading the new one again after that. It sounds impossible, but it helped here before...
  
  
  • ur10_robot_arm/drawing_with_the_ur10.1614760113.txt.gz
  • Last modified: 2021/03/03 00:28
  • by formlab