Использовать такой макрос:
# Hides all objects from active document, if name starts with "Origin" doc = App.ActiveDocument if doc != None: Objects = doc.Objects for object in Objects: if object.Name.startswith(u"Origin"): print ("found:", object.Name) object.ViewObject.Visibility = False print ("Works only with an active document")
Источник: https://forum.freecadweb.org/viewtopic.php?t=32296