Dynamo – Read, Delete, and Replace Family Parameters (with Formulas and Shared Parameters)

Dynamo – Read, Delete, and Replace Family Parameters (with Formulas and Shared Parameters)

IntYo189
Participant Participant
467 Views
2 Replies
Message 1 of 3

Dynamo – Read, Delete, and Replace Family Parameters (with Formulas and Shared Parameters)

IntYo189
Participant
Participant

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):

  1. Read all parameters from the family, including shared parameters and formulas

  2. Delete specific parameters – for example, a parameter named AA_XX

  3. Replace it with a new shared parameter (e.g., BB_XX) that already exists in my shared parameters file

  4. 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!

0 Likes
Accepted solutions (1)
468 Views
2 Replies
Replies (2)
Message 2 of 3

Mohamed_Arshad
Advisor
Advisor
Accepted solution

Hi @IntYo189 

 

You will probably get more optimal support on Dynamo-specific questions in the Dynamo forum:

https://forum.dynamobim.com/

 

Please note that this discussion forum is dedicated to programming desktop Revit using the desktop Revit API.


Mohamed Arshad K
Software Developer (CAD & BIM)

0 Likes
Message 3 of 3

IntYo189
Participant
Participant

Thank you! I’ll post this question in the Dynamo forum as suggested:
https://forum.dynamobim.com/

 

I understand this forum focuses on the Revit API specifically. Appreciate the clarification!