Close, but I have extra round brackets & comma. Different Python version?juanvanyo wrote:Hi wandererfan, I can not reproduce your problem. Can you enter the following lines in the Python console?
Code: Select all
Before Add Datum Feature
>>> import GDT
>>> GDT.getAllAnnotationObjects()[0].faces
Traceback (most recent call last):
File "<input>", line 1, in <module>
IndexError: list index out of range
>>>
After Add Datum Feature in dialog
>>> import GDT
>>> GDT.getAllAnnotationObjects()[0].faces
[(<Part::PartFeature>, ('Face6',))]
>>>
After closing Add Datum Feature dialog
>>> import GDT
>>> GDT.getAllAnnotationObjects()[0].faces
[(<Part::PartFeature>, ('Face6',))]
>>>
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.10950 (Git)
Build type: debug
Branch: master
Hash: 6368b2f822cf838ee6c50ebf62480ff86c214317
Python version: 2.7.3
Qt version: 4.8.1
Coin version: 3.1.3
OCC version: 7.1.0