Below refers to FreeCAD 0.20.
With this combination: Blender 2.93.3 Python console, lists all objects including PartDesign::Body objects (Debian 11, FreeCAD git source 0.20 compiled locally)
On Blender 3.1.2 Python console, that code lists all objects, but no PartDesign::Body objects (Majaro, FreeCAD AUR build and a built from git version.)
The Python code in question (in Blender) is as follows:
Code: Select all
import FreeCAD as F
fc_file = r"/home/mac/SharedData/Projects/MechMovements/Simple_assy_001.FCStd"
live_fc = F.open(fc_file)
for obj in F.ActiveDocument.Objects:
print(obj.TypeId, 'Name: ', obj.Name, 'Label: ', obj.Label)
Code: Select all
for obj in App.ActiveDocument.Objects:
print(obj.TypeId, 'Name: ', obj.Name, 'Label: ', obj.Label)
Python console in Blender on the Manjaro PC says the FreeCAD module is imported from /usr/lib/python3.10/site-packages/