Renaming Multiple Family Types

Hey gang,

I’m looking to batch rename all my wall types by adding a specific text in front of it all. I’m currently testing it out with 1 wall type, before doing them in batch.

Im stuck at the point after concatenating two strings into one, and feeding it back into revit’s system to register it as a new name.
Still new to dynamo, and im sure my last node dont make sense.

Hoping to get some clarification.

Kind regards,
LL

Use the node + OR a Code Block with a+b
instead of String.Concat.
A Code Block with “concrete”+lst also works.

PS
a and b can be any text you like.

Hi @liamyongging you still need element type for set type name [set.name from clockwork], type name is read-only for instance elements

Probs just this. Too early yet for me :sleeping: :crazy_face:

hey mate i tried using just the node +, it returns null for some reason…

Apologies for the inconvenience again with this… what can i do if i dont have set.name as part of my clockwork package * cries *

which revit version are yoi in ?

and if you miss some clockwork nodes then its probably becourse you have some other package there give conflicts…do you have bakery installed for exemple ? do you see it if you browse manuelly ? try go clockwork-revit-elements-element

image

You forgot this and what @sovitek said.

1 Like

yeah true;) but dont think it will work anyway…for set type name clockworks node is the way to go :wink:

1 Like

Thats what i said :kissing_heart:.

I believe Element.SetName may work too.

FYI
String.Concat just combines all the Strings in one List.

You can do it with String.Concat, but you have to jump through a lot more hoops then.

2 Likes

orhhh yea to early for me as well :wink: :wink:

1 Like

Thank you legends @sovitek @bvs1982. Ive got the clockwork node going and it works now :slight_smile:

  • is the way to go. String.concat does look too much hurdle.

Batch Rename Elements.dyn (36.6 KB)

Can you mark the best answer as a solution? :white_check_mark:
So other people know it has been solved.

1 Like