I know the information is there but how do I get to it? Is there a script that illustrates how to do it?
I created a simple model with four ARCH objects and looked at the document.xml file contained in the FCSTD file. The "objects" element contains the information I need. Here is the element
Code: Select all
<Objects Count="4" Dependencies="1">
<ObjectDeps Name="Line" Count="0"/>
<ObjectDeps Name="Wall" Count="1">
<Dep Name="Line"/>
</ObjectDeps>
<ObjectDeps Name="BuildingPart" Count="1">
<Dep Name="Wall"/>
</ObjectDeps>
<ObjectDeps Name="BuildingPart001" Count="1">
<Dep Name="BuildingPart"/>
</ObjectDeps>
<Object type="Part::Part2DObjectPython" name="Line" id="3680" />
<Object type="Part::FeaturePython" name="Wall" id="3681" />
<Object type="App::GeometryPython" name="BuildingPart" id="3682" />
<Object type="App::GeometryPython" name="BuildingPart001" id="3683" />
</Objects>
-David
The freecad version info is
OS: Windows 10 (10.0)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24267 (Git)
Build type: Release
Branch: master
Hash: b2ca86d8d72b636011a73394bf9bcdedb3b109b7
Python version: 3.6.8
Qt version: 5.12.1
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/United States (en_US)
I have also attached the model.