Problem of renaming type

Hi All
I want to create a script in which we extract the structural column dimensions (bxh) and and rename the family type with the text. I have done thus far, but getting this error. What am I doing wrong?
CHECK COLUMN SIZE AND NAME-1.dyn (27.3 KB)

Hi,
in your screenshot you are trying to change the type, not the type name. If you change the parameter name with the correct one, Type Name, you get anyway an error because the parameter is read-only (Upper part of the graph).
You can use Element.SetType from Clockwork package, this should work:

1 Like

Hi
Thanks for the guidance. I tried this but somehow not getting the result. Please check.

CHECK COLUMN SIZE AND NAME-1.dyn (28.3 KB)

Expand the Element.SetName node so we can see what it is saying.

Hi
You mean this?

@abhijeetraje show full graph with all the previews visible.

Are you feeding it a Family or Family Types?

@abhijeetraje I just tested and it works perfectly. Here is the process in action:

Check your clockwork package version. Make sure your using clockwork for Dynamo 2.x.

Actually I am.12-11-2018%201156 12-11-2018%201158

Could you share rvt file?

Here it is. trial.rvt (3.3 MB)

@abhijeetraje Try this file CHECK COLUMN SIZE AND NAME-1 (For Abhijeet).dyn (28.3 KB)

You where connecting FamiyInstnaces instead of ElementTypes:

Hey Thanks.
That was Elementary . :grinning: Should have tried that myself.

Mark the post as solved.

That’s what I suggested in post 5. Glad you got it resolved.

1 Like