Семейства
FamilyInstance => размещенный экземпляр семейства
FamilySymbol => тип семейства с экземплярами 0-м
Семейство => Семейство с n типами экземпляров 0-m
Вот один из мой скрипт из pyRevitMEP для удаления семейств:
"""
Copyright (c) 2017 Cyril Waechter
Python scripts for Autodesk Revit
This file is part of pypevitmep repository at https://github.com/CyrilWaechter/pypevitmep
pypevitmep is an extension for pyRevit. It contain free set of scripts for Autodesk Revit:
you can redistribute it and/or modify it under the terms of the GNU General Public License
version 3, as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
See this link for a copy of the GNU General Public License protecting this package.
https://github.com/CyrilWaechter/pypevitmep/blob/master/LICENSE
"""
import rpw
doc = rpw.revit.doc
uidoc = rpw.revit.uidoc
from Autodesk.Revit.DB import Transaction, FamilySymbol
__doc__ = "Delete selected families from project"
__title__ = "Family delete"
__author__ = "Cyril Waechter"
__context__ = "Selection"
with rpw.db.Transaction("Delete families from project"):
# Find families of selected object and delete it
for id in uidoc.Selection.GetElementIds():
el = doc.GetElement(id)
family_id = el.Symbol.Family.Id
doc.Delete(family_id)
У вас тот же сценарий для типов семейств: FamilyTypeDelete.pushbutton