Running simple routine to name all elements with ID, error

Hi,

Just wondering if anyone could help me please, maybe explain.

So I run this simple routine to put the Element ID on each element,
but the thing is I always get an error, although the it works fine,
just wondering why the error occurs and if there is a way to stop it,

error is -
No parameter found by name

Any help would be appreciated

Alan

Hi @a.dyko and welcome, make sure the parameter’s type is Integer.

thanks for your quick reply, just had a look and its set to integer

@a.dyko Can you share the family? Is the parameter an instance or type parameter?

you’r getting all instances of FamilyInstance. This would include instances of all families from different categories. Do all categories have the Element ID parameter that you have created?

3 Likes

so its an Instance parameter, I have added to every Family in the model, although I only really need it on certain Familys, Structural framing families, Generic etc. Would this be a reason for the error ?

@a.dyko check what are the collected families in the All Elements of Type node, it is better to collect only the families that you are after if you ask me, try to use Categories node instead, or Category.ByName node with an All Elements of Category node:
https://dictionary.dynamobim.com/#/Revit/Elements/Category/Create/ByName

1 Like

Thanks so much everyone,

so I used this in the end,

So I used Categories instead of familes

I am new to this, so thanks

1 Like