Selecting elements, from family name


#1

Hey guys, im having a bit trouble. As you can see from my image, im having trouble collecting elements from the family name.

I know that in this case, i can just use the Walltype.byname.
But the issue is, that i also wanna use this workflow for ceilings and generic models. And there is not any nodes for doing this. And i am listing unique items, so that the script dont crash, due to having to many elements to write to.

Hope anybody, have a idea, thx in advantage :slight_smile:


#2

Hi,

What are the errors you are getting ? It is hard to deduce them from a single screenshot


#3

@Phh

use Element.ElementType
This will give you access the family parameters


#4

Hey there, the only problem is that when i feed the list, with names to the Familytype.ByName - ill just get a bunch og null.

Just look away from the string errors, thoses are just bechause, some of my elements, dont have type marks yet.

It all works as it should, its just that i wanna put in a family name, and then it should select the element, so that it is possible to get the parameter value


#5

@Marcel_Rijsmus

Ahh got it… Thx som much :slight_smile:


#6

I was indeed looking away from the string errors. I was just wondering what error did the FamilityType.ByName node give you, so that we can know why it is returning a list of null.


#7

Ahh okay, well i got to work with using Elements.type :slight_smile: But thx som much for taking your time :slight_smile:


#8

Tried recreating the issue :wink: even though the solution have already been offered by @Marcel_Rijsmus :slight_smile:

(My ElementName is “Retail Storefront” this part will differ from project to project :wink: )

image


#9

Apperantly it dosent work, with ceilings, anybody know why?


#10

Try the node mentioned by @Marcel_Rijsmus not “Elements.Type” but Element.ElementType

image


#11

Same problem


#12

Can you show a bit more of the graph?
This way we can’t help


#13

I got to work perfectly now.

Thx so much for the inputs.

Uploaded the graph if you wanna see anyway :slight_smile: Rename type - by typemark.dyn (24.6 KB)