Skip to content

python based cam-tool to convert dxf into gcode

License

Notifications You must be signed in to change notification settings

andrewweiol/viaconstructor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

viaConstructor

OpenSource CAM-Tool to generate gCode from DXF,SVG and HPGL-Files

Known Issues:

  • beta - version
  • >= Python-3.9
  • running on Linux, OS-X and Windows
  • may be unstable on Windows
  • problems with some OpenGL versions (black 3D-View)
  • tabs on circles sometimes broken
  • slow on very big files

Features:

  • 3D-Preview
  • Tabs and Pockets with Islands
  • Headless-Support to generate gcode on the console
  • the preview of the milling path is generated by the original gcode data using a simple gcode-interpreter
  • the offsets are calculated internaly, no offset-support in the cnc controller is needed
  • the gcode-interpreter can be used externaly to generate thumbnails and previews
  • the dxf-reader can be used externaly to generate thumbnails and previews
  • automatic offset finder (inside/outside)
  • automatic order of multiple parts (nearest first)
  • nested parts will milled in the right order (inside parts first)
  • can read DXF, SVG, HPGL and STL (cross section)
  • Truetype-Fonts to generate simple Text
  • generates gCode and HPGL output

demo-video

Demo-Video

screenshot

viaconstructor

quikstart

install with pip

pip3 install viaconstructor

get code

git clone https://github.com/multigcs/viaconstructor.git
cd viaconstructor
pip3 install -r requirements.txt

start viaconstructor

./bin/viaconstructor tests/data/simple.dxf

thumbnail generator: gcode to jpg

./bin/gcodepreview tests/data/simple.ngc -o tests/data/simple.jpg

thumbnail generator: dxf to jpg

./bin/dxfpreview tests/data/simple.dxf -o tests/data/simple.jpg

running on macos/osx

git clone https://github.com/multigcs/viaconstructor.git
brew install [email protected]
/usr/local/bin/python3 -m pip install -r requirements-install.txt
/usr/local/bin/python3 -m viaconstructor tests/data/simple.dxf

running on Windows10

you can simply extract this zip file to you disk and execute the start.bat:

https://www.multixmedia.org/viaconstructor.zip

this zip-file includes python3.10.10 and all needed packages

or

install python3.10.10 from: https://www.python.org/ftp/python/3.10.10/python-3.10.10-amd64.exe install git from: https://github.com/git-for-windows/git/releases/download/v2.40.0.windows.1/Git-2.40.0-64-bit.exe at the moment, you need also Visual Studio Community 2022 from: https://visualstudio.microsoft.com/vs/community/ (to install pyclipper / some dll's needed for CavalierContours)

git clone https://github.com/multigcs/viaconstructor.git
python3.exe -m pip install -r requirements-install.in
python3.exe -m viaconstructor tests/data/simple.dxf

Screenshots

Helix

helix

Overcut

overcut

Tabs

tabs

Pockets

pockets

Lead-In/Lead-Out

leads

OSX

osx

Windows

osx

About

python based cam-tool to convert dxf into gcode

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 49.2%
  • Python 47.2%
  • CMake 3.3%
  • Makefile 0.2%
  • Shell 0.1%
  • Batchfile 0.0%