Troubleshooting¶
Common Errors¶
"No Selection"¶
Cause: No objects are selected in the 3D view.
Solution: Select one or more objects in the 3D view before running the macro.
"No Exportable Objects"¶
Cause: Selected items are not solid objects (groups, annotations, etc.)
Solution: Select actual Part or PartDesign bodies with solid geometry.
"Invalid Directory"¶
Cause: The chosen directory doesn't exist.
Solution: Click Browse and select a valid folder.
"Format export failed"¶
Possible causes:
-
Object has invalid geometry
- Try Part → Check Geometry first
- Use Part → Refine Shape to clean up geometry
-
Disk full
- Check available disk space
-
Permission denied
- Choose a folder you have write access to
Export produces empty or corrupted files¶
Possible causes:
-
Object is a shell, not a solid
- Check if object is a valid solid
- Use Part → Check Geometry
-
Mesh tolerance too high
- Lower the surface tolerance value
- Try 0.01mm for fine details
-
Object has self-intersecting faces
- Repair geometry before exporting
Quality Issues¶
STL has visible facets/triangles¶
Cause: Mesh tolerance is too high.
Solution:
- Lower surface tolerance (try 0.05mm or 0.01mm)
- Lower angular deflection for curved surfaces
File is too large¶
Cause: Mesh tolerance is too low, creating very detailed mesh.
Solution:
- Increase surface tolerance (try 0.2mm or 0.5mm)
- Use CAD formats (STEP) when detail isn't needed
Colors not exported¶
Cause: Most formats don't support color.
Solution:
- Use 3MF or OBJ with MTL for color support
- Export materials separately if needed
Performance Issues¶
Macro is slow to export¶
Possible causes:
-
Very complex geometry
- Simplify the model before exporting
- Use higher mesh tolerance
-
Many objects selected
- Export in smaller batches
-
Very low mesh tolerance
- Increase tolerance for faster exports
FreeCAD freezes during export¶
Possible causes:
-
Extremely complex mesh
- Use higher tolerance values
- Export one object at a time
-
Insufficient memory
- Close other applications
- Export in smaller batches
Getting Help¶
If you encounter an issue not covered here:
- Check the GitHub Issues for similar problems
- Open a new issue with:
- FreeCAD version
- Operating system
- Steps to reproduce
- Error message (if any)
- Object type and complexity (if relevant)