Code: Select all
OperationSelectedGeometry=Gui.Selection.getSelectionEx()[0].Object
>>> myOpSel=Gui.Selection.getSelectionEx()[0].SubObjects
>>> sel = myOpSel[0]
>>> sel.TypeId
'Part::TopoShape'
>>> OperationSelectedGeometry.TypeId
'Part::Cone'
>>> OperationSelectedGeometry=Gui.Selection.getSelectionEx()[0].Object
>>> myOpSel=Gui.Selection.getSelectionEx()[0].SubObjects
>>> sel = myOpSel[0]
>>> OperationSelectedGeometry.TypeId
'Part::MultiFuse'
>>> OperationSelectedGeometry.OutListRecursive
[<Part::PartFeature>, <Part::PartFeature>, <Part::PartFeature>, <Part::PartFeature>, <Part::PartFeature>, <Part::PartFeature>, <Part::PartFeature>, <Part::PartFeature>]
>>>
How do I distinguish the cone parent to the selected face? Is there a way to directly link a Face back to the primitive used in its creation?
Thanks,
Josh
OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.13488 (Git)
Build type: Release
Branch: master
Hash: 2891173923bcecaace64e0544f5773facbdef436
Python version: 2.7.14
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.1.0
Locale: English/UnitedStates (en_US)