Hi all,
I am hoping someone can help me with this. I was playing around with a Pattern Based Curtain Panel which i wanted to be able to open and close using a parameter. I all works well updating manually. I thought I would try using Dynamo to see what we could do with it.
The family has a parameter in called NCP which is linked to normalized curve parameter values, which drives the geometry, creating and open and closed appearance.
I first tried to randomize the amount of opening values which threw the error, so I tried making them all open the same value using a number slider, but I still get the same error.
Because I am using normalized curve parameters, the value ranges from 0.1 to 1.0 which the slider controls. The NCP parameter in the family is a number parameter, but for some reason the Element.SetParammeterByName keeps giving this error:
*Warning: Element.SetParameterByName operation failed. *
unitType is an invalid unit type. See UnitUtils.IsValidUnitType() and UnitUtils.GetValidUnitTypes().
Parameter name: unitType
Not sure why the unit type would be invalid, its a number trying to be pushed into a number category parameter.
Any help would be appreciated.