I am very glad to have found a good tool for my CAD trials
I am a beginner in FreeCAD, even with CAD generally, my purpose is to make simple things...
My question may be simple, and I'll try to ask it the right way :
What is the simple way to access the area property of the selected face of an object (selected in the Gui) ?
The name of the selected Face appears in the "Show Selection" view :
I can get the area of a given face :myDoc.Cut002.Face3
Code: Select all
Reso.Shape.Faces[0].Area
1071.9999999999998
Code: Select all
Reso.Shape.Faces[0].Name
...
Reso.Shape.Faces[0].Label
Traceback (most recent call last):
File "<input>", line 1, in <module>
AttributeError: 'Part.TopoShape' object has no attribute 'Label'
Code: Select all
face=Gui.Selection.getSelection
I hope there's a way to access the properties of an entity that's been selected on the screen,
or at least to get a list of all faces of selected object with labels/names and areas...
Hoping my question is clear enough, and that someone finds time to answer it.
regards,
Matthieu
ps : working on FreeCAD v0.12, Windows XP 32bit
(I'll try on Ubuntu 12.10 at home, together with Salome)