Hey, I start to learn Revit API recently
I’m trying to write a script that show the total weight of columns.
my question is how can I import Lookup parameters in my script to resolve this bug.
regards,
its because the “LookupParameter” doesn’t work on a list - rather works on elements
what you need to do is:
vol_param = [i.LookupParameter(“Volume”).AsInteger() for i in col ]
also - you will have to specify .AsString() or .AsInteger() or similar based on how the parameter is stored
4 Likes