Hi everyone,
I’m working with Revit families that contain both standard and shared parameters, many of which include formulas. I’m trying to figure out whether the following workflow is possible using Dynamo (possibly with Python scripting):
- Read all parameters from the family, including shared parameters and formulas
- Delete specific parameters – for example, a parameter named AA_XX
- Replace it with a new shared parameter (e.g., BB_XX) that already exists in my shared parameters file
- Assign the same formula that was originally in AA_XX to the new parameter
Essentially, I want to replace a parameter with a different shared parameter while preserving the formula logic.
Has anyone done something similar using Dynamo? Is this workflow fully possible with Dynamo and Python, or would this require a custom Revit add-in using the API? Any pointers, example graphs, or code snippets would be greatly appreciated!
Thanks a lot in advance!