Coder Social home page Coder Social logo

svg2gcode's Introduction

svg-line_2_gcode

allow to convert svg file exported by librecad (MakerCAM SVG) as a Gcode file compatible with most CNC

compilation

make

usage

svg-line_2_gcode file.svg ->output : file.gcode

This is a very crude tool, it works only with svg file generated by librecad as MakerCAM SVG. A modification in the exportation syntax will probably break the conversion. It was design around librecad version 2.1.3

A generic SVG file will not work with this tool

A SVG example file is provided, as well as the libreCAD dxf file used to generate this SVG.

file preparation

  • create your design on one or multiple layer (construction layer) that will be excluded on the final export
  • create a layer with the name : label depth pass replace "label" is a single word text like "exteral_cut" replace "depth" with a float number representing the depth of the cut, like "12.3" replace "pass" with an int number representing the number of pass
  • draw with 2 points line on this layer the cut you want the aim is to use the construction layer as a support to quickly draw the movement of the tool the tool will follow the order of the segment creation
  • replicate this operations (layer creation and segments drawing) for all tool movement you want
  • display all and only the layer you want to export and convert as a Gcode
  • export as a MakerCAM SVG check the option "Convert blocks to safe inline SVG content" (it should already be checked)
  • use this tool as a command line to convert the svg file to a gcode
  • use a text editor and / or online visualiser to check the file, and eventually edit it. lot's of comment are added in the file in order to allow an easy manual edition

customisation

Without proper integration in libreCAD, it's not easy to customise the Gcode. To change the moving speed, cut speed, clearance level, you need to change the define in the source code and compile it again

svg2gcode's People

Contributors

ch-nry avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.