I’m having an issue with getting parameter values when selecting elements in a revit project. What I’m basically doing is taking fabrication part data from fabricationCAD and writing it to a custom data filed in the form of shared parameters.
The end goal here is to allow users to select elements and copy fabrication data to revit parameters for use in schedules, filters, etc. I have a working script that does the entire project at once, but that can be time consuming and being able to update parameters based on selection would be nice.
This is what I have right now:
It works when selecting multiple elements, the problem arises when I select only one. When trying to run the script with only one element selected the get parameter value node from lunchbox seems to break. I think it is trying to iterate an array of one item and returning 0 as a result, but I don’t know enough about DesignScript to fix it or even know if that is really the problem. So I’m looking for alternate solutions.