Phlatboyz PhlatScripT
SketchUcam Version 1.4
Oct 2015

Back to help index

HOWTO change the default G-code plotter

SketchUcam is provided with the Gplot program to visualize the G-code that you have output from your drawing.

You can change the program to any G-code plotter that takes a filename as command line parameter, such as NCPlot. NCPlot will be used as an example here, replace references to NCPlot with your G-code plotter.

Follow these steps (new method, V1.4): screen image
  1. Close Sketchup
  2. Find your NCPlot icon or menu entry, and right click it
  3. Select 'Properties'
  4. Under 'Target', select all the text as in image at right
  5. Press CTRL-C to copy it to the clipboard
  6. Open the Tools|PhlatBoyz|Options|File Options dialog pictured at right
  7. paste the path to your Gcode previewer into the 'G-code Plotter Program' field, replacing the text 'default' entirely.
  8. Close the dialog.
  9. Now the program you have specified will open for all 'Plot Gcode' operations.
To go back to the default Gplot program
  1. Open the Tools|PhlatBoyz|Options|File Options dialog pictured above.
  2. Set the 'G-code Plotter Program' field to 'default'.
  3. Close the dialog.

Old Method

Do not use this unless you have a version of SketchUcam prior to V1.4. Once you upgrade to V1.4 you will need to follow the procedure above to set your previewer. Once set, future upgrades will no affect the setting.

  1. Close Sketchup
  2. Find your NCPlot icon or menu entry, and right click it
  3. Select 'Properties'
  4. Under 'Target', select all the text as in image at right
  5. Press CTRL-C to copy it to the clipboard
  6. Open the file 'gplot.rb' in the folder C:\Program Files\Google\Google SketchUp 8\Plugins or C:\Program Files (x86)\Google\Google SketchUp 8\Plugins if you have 64bit Windows.
    For Sketchup 2014 the path will be something like
    C:\Users\username\AppData\Roaming\SketchUp\SketchUp 2014\SketchUp\Plugins
    You need to open it in Notepad or a similar plain text editor. NOT MSWord! (to open Notepad, Start|All Programs|Accessories|Notepad)

  7. The file open in Notepad should appear as at right.
  8. In front of the line
    @exe = Sketchup.find_support_file("GPlot.exe", "/Plugins")
    place a '#' like this
    #@exe = Sketchup.find_support_file("GPlot.exe", "/Plugins")
  9. add a line below that one
  10. in the blank line type
    @exe = ""
  11. now, between the "", paste the path to NCPLot.exe we copied to the clipboard earlier
    @exe = "D:\myapps\NCPlotv1.2\NCPlot.exe"
  12. for each \ character in the path, add another one next to it like this
    @exe = "D:\\myapps\\NCPlotv1.2\\NCPlot.exe"
  13. Save the file, which should look as in the image at right

Now let us test Sketchup

  1. Open Sketchup,
  2. open a drawing for which you have created G-code,
  3. select Plugins|Plot G-code
  4. NCPlot should open with the existing G-code file