Giter Club home page Giter Club logo

freecad-slic3r-tools's Introduction

freecad-slic3r-tools

Tools for running Slic3r from FreeCAD

This module lets you quickly export all visible parts in the current document, and open the resulting .stl file in Slic3r. You can also set up a default print profile, and directly get information about the resources that would be used to print it, as well as quickly generate the .gcode file.

Installation

This module is in the add-on manager. Just go to Tools >> Addon manager to install it.

Compatibility

This module has been tested with FreeCAD 0.18 and Slic3r Prusa Edition 1.41.3 on Linux. It shouldn't need any external dependencies, and shold work fine other versions of Slic3r on other operating systems as well, but I haven't had a chance to test them so far. I don't think it will work with earlier versions of FreeCAD, however, since this module requires Python 3.

If you have a chance to test the module on other operating systems and with other versions of Slic3r, please let me know!

Settings

Before you can use the module there are a few settings you need to set. To access these settings, go to "Edit >> Preferences" and then select "Slic3r Tools". The settings are:

Path to slic3r executable

Set up the path to your where your slic3r executable is on your hard drive. If you run windows, this is the .exe file. If you run Linux, you can point to the .AppImage file here.

Path to slic3r profile .ini file

This should point to a slic3r .ini file. The .ini file contains information about which printer you are using as well as layer height, etc. While Slic3r has a GUI to let you work with several profiles at once and quickly change between them, the SLic3r Toolbar can only work with one profile. To export the current profile from slic3r and use it from Slic3r Toolbar, go to "File >> Export Config..." from inside Slic3r.

Destination directory for .stl files

By default, slic3r-tools will export .stl files to the same direcotry as the main free cad document. If you want to export .stl files somewhere lese, you can set a directory here.

Tools

Export visible as .stl

This command exports the current document as a .stl file. It works in a similar way as choosing "File... >> Export..." in the menu. However, while the default export option requires you to first select which objects you want to export, this option exports all visible object. There is no prompt to ask for a file name, the name of the exported .stl file will be derived from your document file name.

Run Slic3r

Export the current document as .stl. Run slic3r and open the .stl file in Slic3r.

Show Slic3r Info

Show quick information for your print. The information includes estimated print time, used filament and filament cost. In order to use this command, you need to set a profile .ini file for slic3r to use, see above.

Run Slic3r

Export .gcode for the current document, with the current slic3r settings. In order to use this command, you need to set a profile .ini file for slic3r to use, see above. There is no prompt to ask for a file name, the name of the exported .gcode file will be derived from your document file name.

Feedback

All types of feedback, suggestions and contributions are much welcome!

For discussion, you can use this thread on the FreeCAD forum.

freecad-slic3r-tools's People

Contributors

limikael avatar mbenkmann avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

freecad-slic3r-tools's Issues

Export as AMF

could you export as AMF instead of STL? because it would enable multi part exports and better support for 3d printing ...

Is this Workbench py3/qt5 compatible ?

What versions of FC does this WB support? FC has been migrating to py3/qt5, does this workbench support py3/qt5 as well ? Does it also support py2/qt4?

BTW, nice job

Your legacy lives on

Hey. Remember me? 3 years ago you kindly merged a few of my pull requests. Until a few days ago I've been using your addon. I've only ever used the STL export button, but I've grown all the more fond of it. When I upgraded to a new version of FreeCAD I wanted it back, of course. But I noticed that you hadn't updated your addon and while the FreeCAD Wiki contains 2 STL export macros for 3D printing, they're both not very good. So I decided to make my own STL export visible macro based on your code with support for the App::Link feature added in newer FreeCADs. In the end not much original code has survived, but the important thing is that I could not have done it, if I hadn'd had your code to start with. So thanks again for writing it. It is still being appreciated after all these years. I'm also still using the Stl.svg icon, which has a cute home-grown charm to it and stands out so much that I can always find it, even when FreeCAD randomly decides to shuffle my toolbars around.

If you want to check it out, here's my new macro:

https://github.com/mbenkmann/FreeCAD-Export-Visible-to-STL

Slicer Prefs are not shown

If you did not switch to Slicer workbench during current FreeCAD session, the Slicer preference page is not shown. As soon as you have switched to the Slicer workbench, the preferences show up.

Can't open gui from Slic3r-Workbench

Hello,

i like the idea of starting slic3r direct out of freecad and prepare the visible parts for printing.
For me,( Manjaro Linux "stable" FreeCAD 0.18 AppImage & slic3r 1.31dev the "run slic3r button does not what i expected to. "Run slic3r" only runs slic3r in "invisible" CLI mode and generates the *.gcode-file without the option to change any settings in the gui. This seems to be the same as the "export to gcode" button does.
Can i change any settings to run the gui? Adding the --gui option to the "path to the slic3r" executable does not work.

Thanks for your work!

Sebastian
Top

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.