Thnks for reply,
it doens't work as expected,
in FreeCAD 0.18 raises
Code: Select all
'Gui.ViewProviderDocumentObject' object has no attribute 'getEnumerationsOfProperty'
in FreeCAD 0.21 there is no error but returns False even if the objects accepts "Shaded"
but I solved due to the fact that all objects I want to set as "Shaded" and I cannot,
had either "Base" or "Group" so, for now, I'm using this workaround
Code: Select all
if not(("Base" == App.ActiveDocument.getObject(s[p].Name).ViewObject.DisplayMode) or ("Group" == App.ActiveDocument.getObject(s[p].Name).ViewObject.DisplayMode)):
..
which works in FC 0.18 and not in FC 0.21
but I'll use FC 0.18 anyways
cheers,
Dorin