Renaming Project and shared parameters in Project and Family

Renaming Project and shared parameters in Project and Family

laura.johanssonPN37Y
Advocate Advocate
2,702 Views
6 Replies
Message 1 of 7

Renaming Project and shared parameters in Project and Family

laura.johanssonPN37Y
Advocate
Advocate

Hi all, 

I have a project and lots of families with shared parameters that are all over the place. From double ups, to some being misspelled. Some are in capitals, others from the same category are in lower case, it's a mess. I am now working on the door schedule and want to clean these shared parameters up a bit. I have a lot of parameters in the door families that are manual input in Revit and I want to make them all capitalized, while information that Revit schedule is pulling straight from the family is in lower case. 

I have looked at renaming the parameters in the shared parameter file, and while this works in the families, in the project they have their old name. As far as I understood, Revit will not rename project parameters or shared parameters in the project even if the text file says so, correct me if I am wrong. 

Is there a clever way around this, or should I just accept the inconsistency and move on?

0 Likes
Accepted solutions (1)
2,703 Views
6 Replies
Replies (6)
Message 3 of 7

laura.johanssonPN37Y
Advocate
Advocate

Hi, 

I have already checked out both DiRoots plug in and the thread and basically it says that Project Parameters cannot be changed (they're even greyed out in the plug in). 

From the thread:
"Unfortunately renaming an existing shared parameter is not possible. This comes from the SDK documentation when the RenameParameter method is used : " This operation is valid only for Family Parameters, and is invalid for Shared Parameters and Built-in Parameters.""

0 Likes
Message 4 of 7

Simon_Weel
Advisor
Advisor

The Shared Parameters file is only used once - when adding the parameter to a Family or Project. So if a Shared Parameter is already in a project / Family, there's no way to rename it.

0 Likes
Message 5 of 7

laura.johanssonPN37Y
Advocate
Advocate
@simon_Wheel Even if I go into the shared parameter file and rename it there?

I tried this already and it didn't seem to work, but maybe I forgot some sneaky step...?
0 Likes
Message 6 of 7

L.Maas
Mentor
Mentor
Accepted solution
Revit reads from the shared project parameter file. However they are not linked. So if you change the Revit parameter file it has no direct impact on your families or your projects.
I would strongly recommend not to change the parameter file. The parameter name is connected to a GUID code. If you change the name the GUID code remains the same. When you start to use these renamed parameters and still have leftovers from the original parameter you might get very strange results.

I would recommend to create a new parameter file with new parameters and start to replace the parameter in your project/families

Louis

EESignature

Please mention Revit version, especially when uploading Revit files.

Message 7 of 7

laura.johanssonPN37Y
Advocate
Advocate

@L.Maas I was worried this was the case, but I was hoping that I was wrong or that there was a clever way around it, there really should be. Oh well, thanks anyways. 🙂