If a window is a variant Link there will be a hidden source object in the document. That hidden object shares properties with the visible Link object. The Hosts property may be one of them, yet the hidden object should never be hosted. Forum topics: https://forum.freecad.org/viewtopic.php?p=817743#p817743 (sample file) https://forum.freecad.org/viewtopic.php?t=96115 (code discussion) To test the code: 1. Open the mentioned sample file. 2. Change the Hosts property of Window001 to Wall. 3. Recompute.