Hi,
Is there any way to avoid this dialog box popping up or automatically using python to select the remove constraints option?
Many of the families I background-open have constraints issues.
istcat = toList(UnwrapElement(IN[0]))
#make filter
lstbipCat = [System.Enum.ToObject(BuiltInCategory, x.Id.IntegerValue) for x in listcat]
filtercat = ElementMulticategoryFilter(List[BuiltInCategory](lstbipCat))
#collector
fecSymb = FilteredElementCollector(doc).WherePasses(filtercat).WhereElementIsElementType().ToElements()
for symb in fecSymb:
fam = symb.Family
try:
famDoc = doc.EditFamily(fam)
if not famDoc.PathName:
path = ("Family location not found")
else:
path = (str(famDoc.PathName))
famDoc.Close(False)
except:
path = ("This is a system family")
Edit: Added Filtered Element Collector code snippit