Grouping Elements by grouping list

Hello everyone,

i think have a simple question but it’s taking over me, i have a list of cadtext extracted from a cad file linked into a revit model, i grouped them by distance between the origin point, cause i want to extract an excel combinig two or more datas.

To get the ideas i have two tags for each room, one is the number and the other the name (they are two unlinked text), so i want to combine them and extract an excel. My difficult is to grouping the textdata as i grouped the origin points.

Any advices? Thanks

@Nto02 ,

like this

x=IN[0]
y=IN[1]

OUT = []

for i in zip(x,y):
	OUT.append(i)

Hi @Nto02 ,

For grouping like this I recommend using a dictionary, just make sure you transform the points into strings first because a dictionary can only have strings as keys):

3 Likes

Thank you now is working perfectly

not what i meant, but it would be interesting do what @Daan did through python.