I have been having far too many tea breaks waiting for
AdaptiveComponent.ByPoints() and AdaptivComponent.SetParameterByName() to do their work. I’ve been using both designScript and Nodes. its fantastic how interchangeably they are!
My question is this:
I’ve noticed that when I set multiple parameters on each component the set parameterByName function returns too many elements, although it creates the correct number in the Revit Document. AdaptivComponent.SetParameterByName(components, parameters, values) returns (number of components)*(number of values). Is this an unavoidable product of the way the Revit database works, or is it an unnecessary overhead that slows everything down?
I have attached a simplified demonstration of this issue below. Please note that the speed is not an issue here, due to the simplicity of the family.
Any advice appreciated!
SetParameterByNameProblem.dyn (28.4 KB)