Skip to content

tankshield/FreeBimport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FreeBImport v02

This is a fork of io_import_fcstd by Stefan Krüger (s-light) which is based on work by Yorik van Havre.

blender importer for FreeCAD files


About this fork


Description

This script imports FreeCAD .FCStd files into Blender.
This is a work in progress, so not all geometry elements of FreeCAD might be supported at this point.

New Features in v02

  • Improved Auto Smooth: Better auto smooth implementation that respects original face shading
  • Triangulation Option: Optional triangulation of all faces during import
  • Cleanup After Import: Automatic mesh cleanup using Tris to Quads and Limited Dissolve operations
  • Updated Defaults: Auto smooth angle changed to 30° for better results

Requirements

  • Blender 3.0 or later (tested on Blender 4.4, should work on 3.0+)
  • FreeCAD installed on your system
  • Python version compatibility between Blender and FreeCAD (first two version numbers must match, e.g., 3.11.x)

Installation

  1. Download this repository as a ZIP file (or clone it).
  2. In Blender, go to Edit > Preferences > Add-ons > Install... and select the ZIP file.
  3. Enable the add-on (search for "FreeBImport").
  4. Set the correct paths to FreeCAD libraries in the add-on preferences:

Default FreeCAD library paths

macOS

  • FreeCAD library path: /Applications/FreeCAD.app/Contents/Resources/lib/
  • System Python packages path: /Applications/FreeCAD.app/Contents/Resources/lib/python3.11/site-packages

Windows

  • FreeCAD library path: C:\Program Files\FreeCAD 0.21\bin
  • System Python packages path: C:\Program Files\FreeCAD 0.21\bin\Lib\site-packages

Make sure the Python version used by Blender matches the one used by FreeCAD (the first two version numbers must match, e.g., 3.11.x).

  1. To test your setup, open Blender's Python console and run:
import FreeCAD

If no error appears, your paths are set up correctly.

Usage

Go to File > Import > FreeBImport v02 (.FCStd) and select your FreeCAD file.

Working with...

This add-on has only been tested under macOS Sequoia on Intel platform. It remains untested on other platforms (Windows, Linux, Apple Silicon, etc.). Please report your experience if you try it elsewhere.

Known Issues

Blender may crash on exit after importing a FreeCAD file.

This is a known issue caused by the way FreeCAD and its OpenCASCADE libraries are loaded into Blender's process. When Blender closes, unloading these libraries can cause a segmentation fault (SIGSEGV) or crash. This is a limitation of mixing FreeCAD and Blender in the same process and is not specific to this add-on.

Workarounds:

  • Save your Blender project immediately after importing.
  • Restart Blender after each import session to avoid losing work.
  • The crash does not affect the imported data if you save before quitting.

For more details, see the crash report in the Error Reporting folder.

License

MIT License. See LICENSE.

TODO

see the issues for open points.

  • support clones
  • support texts, dimensions, etc (non-part/mesh objects)

About

Freecad File import plugin for Blender 4.4+

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages