Hi everyone, could someone help me understand why the “List.IndexOf” component isn’t working here? I think it might be an issue with the parameter type. It seems like the parameter type doesn’t include all Revit group types. For example, there’s a type called “andere,” but it doesn’t appear under the “Dynamo” parameter type. Additionally, when I try to find the corresponding index of group types based on linked Excel data, it always returns “-1,” which means it’s not finding a matching group type. But I am sure there are similar matches. Any insights would be appreciated!
@Moori Some text processing for group types.
import sys
import clr
import re
def get_simp_name(s):
match = re.search(r'=(.*?)\)', s)
if match:
return match.group(1)
else:
return
group_type_names = IN[0]
OUT = [get_simp_name(s).strip() for s in IN[0]]
Thank you for your assistance. When I run this script, it appears to be caught in a loop. I’ve attempted to execute it multiple times, and it has taken more than an hour without yielding any results.
In your original graph, set the ‘element’ input of you index of node to @L1 and see if that fixes it.
Would also help to see what you have for the list input on that node (the result of the upper string from object node).
1 Like
huh? a screenshot maybe?
Thank you, it works