Selecting elements, from family name

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:

Hi,

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

@Phh

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

2 Likes

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

@Marcel_Rijsmus

Ahh got it… Thx som much :slight_smile:

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.

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

1 Like

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

1 Like

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

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

image

Same problem

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

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)