Skip to main content

A FreeCAD addon and a CLI tool to manage tool libraries

Project description

Better Tool Library (BTL)

Better Tool Library (BTL) is a FreeCAD addon (plugin) that replaces the built-in tool library for the Path workbench. It also provides a standalone tool if you want to use your library outside of FreeCAD.

Warning If you decide to switch back from BTL to the FreeCAD internal tool library, you may lose any extra information that was entered using Better Tool Library, like tool notes and hardness.

Warning I advise you make a backup of your tool library. I guarantee for nothing, there may be bugs.

Feature Comparison

Feature Better Tool Library FreeCAD internal library
Modern UI X -
Provides a shape browser X -
Tool search X -
Tool dimension sketch for built-in tools X -
Can be used standalone outside of FreeCAD X -
Provides built-in common shapes X -
Store tool notes and additional info X -
Auto-generates tool icons X -
Can be used with no document open X -
Provides CLI tool for import/export X -
Read BTL files X X
Write BTL files X Deletes BTL extra data!
Import from Camotics X -
Export to Camotics X X
Export to LinuxCNC X X

Screenshots

Library Editor Shape Browser Tool Editor

Installation

Prerequisites

Better Tool Library (BTL) is compatible with FreeCAD 0.19 and 0.21.

Installation via the FreeCAD addon manager

  • Open FreeCAD
  • Go to Edit -> Preferences -> Addon Manager
  • Click "+"
  • Enter the following Repository URL: https://github.com/knipknap/better-tool-library
  • Enter the branch name main
  • Click confirm
  • Open the Addon Manager via Tools -> Addon manager
  • Search for Better Tool Library
  • Click it
  • Click Install

To run it, just open the Path workbench and there should be a new icon at the end of the toolbar:

Toolbar

Installation in standalone mode

To use via standalone, you will have to install BTL via setuptools.

pip install btl

Alternative installation for the development version:

git clone https://github.com/knipknap/better-tool-library.git

To run the UI, you need to point qbtl to your FreeCAD directories:

export PYTHONPATH=/usr/share/freecad/Ext/:/usr/lib/freecad/lib/
qbtl path/to/your/toollibrary/

CLI tool

Better Tool Library also comes with a CLI tool. After installation via setuptools (see above), you can use it as shown below.

Show the command line syntax

btl --help
btl -f camotics create --help

Print the whole library

btl fctooldir/ show all

(default for -f is freecad, so it can be omitted in that case)

Adding a tool to an existing library

btl fctooldir/ create tool endmill

Converting from FreeCAD to Camotics tool table

btl fctooldir/ export -f camotics camoticstooldir/

Converting from FreeCAD to LinuxCNC tool table

btl fctooldir/ export -f linuxcnc linuxcnc.tbl

Converting from Camotics to FreeCAD tool table

btl -f camotics camtest/ export -f freecad fctooldir/

Links

FreeCAD discussions

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

btl-0.9.4-py3-none-any.whl (264.2 kB view details)

Uploaded Python 3

File details

Details for the file btl-0.9.4-py3-none-any.whl.

File metadata

  • Download URL: btl-0.9.4-py3-none-any.whl
  • Upload date:
  • Size: 264.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.6 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.28.2 rfc3986/1.5.0 tqdm/4.64.1 urllib3/1.26.5 CPython/3.10.6

File hashes

Hashes for btl-0.9.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7fb41ff91e2700e3fcf5b28cd66ef0151f24f786b6e6bdce8d589bb4e5aca4e9
MD5 3006d8eb5933df19f6c8b43d11bac3a0
BLAKE2b-256 505369230c7a9efc3e6cdc43a260e0003b4eed679bef0209e34aa69d253f3bb8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page