Is it possible to use a number slider within Dynamo to change families?

I want to specify several walls within a model and change them all to a specific family. For example, I have designated a family ‘a’ as 1, family ‘b’ as 2, family ‘c’ as 3, and family ‘d’ as 4. Then, is it possible to write a script that changes the family of a specific wall when the number slider changes, such as changing from family 1 to family 2?

Yes it is.

Is it possible to link the selected wall’s family with a number slider? If I use ELEMENT.SETPARAMETERBYNAME, how can I set the parameter name or value?

Get your list of walls and use GetItemAtIndex.

So slider at 0 will pick wall at index zero. Slider at 1 will pick wall at index 1 etc.

Is it only selects walls that have a predetermined family, instead of converting the selected walls to a specific family?

Post what you’ve tried so far.

I’m sorry for the delay in response. I understand how to retrieve the family information based on the selected wall and number, but I’m not sure how to link the wall and family together

The parameter name is just ‘Type’

1 Like