Hi Forum,
I’ve tried everything. I want to get the type name of the family symbol. I am stuck. What am I doing wrong?
Thanks,
Rasa
circuitFamilyName = “NLRS_XX_EF_UN_placeholder circuit_gen”
circuitFamilyTypeName = “NLRS_XX_EF_UN_placeholder circuit_gen”
Retrieve the current document
doc = DocumentManager.Instance.CurrentDBDocument
Retrieve all family symbols of electrical fixtures
family_symbol_collector = FilteredElementCollector(doc).OfClass(FamilySymbol).OfCategory(BuiltInCategory.OST_ElectricalFixtures)
symbols_info =
Iterate through collected symbols and get their names
for symbol in family_symbol_collector:
symbol_name = symbol.Name
symbol_family_name = symbol.FamilyName
symbol_string = f"Family: {symbol_family_name}, Type: {symbol_name}"
symbols_info.append(symbol_string)
OUT = symbols_info