• Home
  • Downloads
  • Forum
  • Contact Us
  • Buy CamBam
    • News
    • Documentation
    • Videos
    • Screenshots
    • Gallery
    • Reviews
    • Support
    Contents
    • Basics
      • User Interface
      • Drawing and System tabs
      • Rotating and Panning
      • Selecting Objects
      • Toolpaths and Gcode
      • Drawing Units
      • File Menu
      • View Menu
      • Tools Menu
      • Simple Example
      • Keyboard Shortcuts
    • Machining (CAM)
      • Machining Basics
      • Profile
      • Pocket
      • Drill
      • Engrave
      • 3D Profile
      • Lathe
      • Creating GCode
      • Machining Options
      • Edit Gcode
      • CAM Part
      • CAM Styles
      • Lead Moves
      • Holding Tabs
      • Side Profiles
      • Post Processor
      • Nesting
      • Back Plotting
      • Tool Libraries
      • Speeds and Feeds Calculator
    • Drawing (CAD)
      • Entities
      • Script Object
      • Bitmaps
      • Layers
      • Transformations
      • Operations
      • Edit Polyline
      • Edit Surface
      • Edit Points
      • Creating Surfaces
      • Region Fill
    • Tutorials
      • Profile
      • Pocketing
      • Drilling
      • Bitmap Heightmaps
      • Text Engraving
      • 3D Profile
      • 3D Profile - Back face
    • Automation
    • Configuration
    • Appendix
      • What's New?

    Creating GCode

    The basic work flow for creating Gcode files is:

    1. Create or Import drawing objects.
    2. Select drawing objects and define Machining Operations.
    3. Generate Toolpaths and visually inspect.
    4. Create the destination Gcode file.

    Generating and Inspecting Toolpaths

    Toolpaths are generated by selecting the Machining - Generate Toolpaths menu item, Pressing CTRL+T, or by right clicking on individual machining operations in the drawing tree and selecting Generate Toolpath from the context menu.

    Viewing Toolpaths

    CamBam provides a 3D drawing view. Rotate the view (using ALT+Drag) to see more detail of the toolpaths including the different depth levels.

    The toolpaths indicate the path that will be traveled by the central tip of the cutting tool. Different colors are used to differentiate straight line moves and arc moves. Small arrows indicate the cutting directions. Rapids are displayed using dotted red lines.

    There are a number of settings which control the appearance of the toolpaths.

    Toolpaths can be shown or hidden using the View - Show Toolpaths top menu and context menu options.

    Other toolpath viewing options are available from the View menu.

    Showing cut widths

    Setting the drawing view option Show Cut Widths = True is a useful way of seeing the areas of stock that will cleared.

    Another useful setting is the Toolpath Visibility property, which is available when selecting the top level (drawing) object in the tree view. This setting can be All, to show all enabled toolpaths, or Selected Only, which will only display toolpaths for machining operations that have been selected in the drawing tree, or whose containing Part object has been selected.

    Select a post processor

    A post processor will help covert machining operations and toolpaths into gcode, suitable for specific target machines.

    If no post processor is defined, the default post processor is used.

    Each drawing file can specify its own post processor, set in the machining options. To set a default post processor for all drawings, a default drawing template can be created which contains the required post processor.

    See the post processor section for more details.

    Creating Destination Gcode File

    Once the machining operations have been correctly defined and inspected, a Gcode file can be produced to send to the CNC controller.
    This is done by selecting the Machining - Produce Gcode menu option.

    If a gcode file has not been previously created, a destination file location prompt is displayed.

    The gcode filename is stored, and can be changed, by selecting the machining object in the drawing tree, then changing the Out File property under the Destination group of the machining properties. Selecting the Out File value will cause a […] button to appear which can be used to open a file browser.

    A default filename is suggested by appending the default Gcode file extension to the current filename. In the system configuration settings there is a setting called Default GCode Extension which is used to set the file extension.

    Often it is useful to be able to create Gcode from a single machining operation. This is particularly useful for new designs, where each machining step can be exported and tested separately. To do this, right click a specific machining operation in the drawing tree and select Create Gcode File from the context menu.

    Copyright 2020 HexRay Ltd