When I click on a circle in the view the selected circle shows as Edge4.
If I then type in the python console:
Code: Select all
myObj = FreeCAD.ActiveDocument.getObject('Edge4')
print(myObj.TypeID)
Code: Select all
Traceback (most recent call last):
File "<input>", line 1, in <module>
AttributeError: 'NoneType' object has no attribute 'TypeID'
Since it doesn't work for objects from the model view either, I'm assuming I'm missing loading some python module, or some other detail I missed in that webpage.