Renaming family parameters in a project

You will need a shared parameter with the intended name in your shared parameter file. Shared parameters in families cannot be renamed, only replaced with a parameter in your active parameter file with the given name.

Be aware that there is no good way to do this at the project level also, only the family level. Revit itself (not just the API), does not support replacement of shared parameters used at the project parameter level.

My script will work as long as you name the parameters in Excel before/after and you have an equivalent shared parameter by that name in your SP file.

Thanks Gavin. I am not indenting to replace shared parameters in project level. I am trying to Rename family parameter names in family level, following steps, open family, rename and close family. Dynamo you shared is to replace all family parameter with shared parameters. My question as below:’

  1. the output from Crumple Package, FamilyDoc.Parameters, namelist cannot be read by Orchid String.Startswith.
  2. All parameters returned from node FamilyDoc.Parameters, I only need non-shared parameters from a family, how can I do this?
  3. After change name, I would like to rename it with new name.

So in order to do that you will need to have shared parameters already made in your shared parameter file to turn those family parameters into, and a way to match them up.

You can filter parameters by family/shared using my familyparameter.isShared node. It sounds like you are still quite new to inputs/outputs and it may serve well to engage with the dynamo primer a bit more potentially. You can’t just take outputs and send them into inputs not of a related type.

Hopefully someone else gets some time to help here with Orchid or otherwise as my time is maxxed out at the moment. I’ve given a functional script and workflow you can ascribe your setup towards with some RnD hopefully.

1 Like

Hi Gavin,I am trying to rename non-shared parameter in a project. I have a few families, I would Like to replace AA with Test. Only one node Parameter.rename did not find any to rename. Refer the attached . I see the source name and target name in Watch are correct, but no parameter found in the rename node. can you please advise if I am missing anything? Thanks

From what I know, renaming project parameters isnt possible:

Thanks Gavin. What I am trying to do is renaming the parameters in Revit family which are not shared parameter, just family parameters either type or instance parameters.I am not trying to rename project parameters or shared parameters. I have placed a few Revit families in a project, try to rename the parameters in those family, not rename the parameters in a family document. Hope I have made myself understood. The node FamilyParameter.Rename did not get any input.I wonder why. Thanks

If you’re using Orchid nodes and not getting what you expect suggest heading over to log an issue on erfajo’s github.

Generally if you want to rename family parameters you will need to be in the family, either manually or programatically - cannot be renamed at project level.

Assuming the parameters are family and not shared then this method for the family manager will get the job done: