I’m trying to Delete all Shared Parameters except for those of the type Length or those in the group Dimensions
So far, the only way I’ve managed to do this is by getting the names of used parameters associated to dimensions, comparing those names to all the existing parameters, and deleting the unused ones.
Since I’m a new user, I can’t upload the script.
Can you think of a way to get all the parameters under a certain parameter type?
Purge Parameters.dyn (9.0 KB)
Hey, this is a very crude way to obtain what you are looking for:
from Autodesk.Revit.DB import *
for param in params:
I am exporting the types and groups as strings so you can manage them in dynamo as usual
Here is the ParametrGroup enum for reference: