How to Rename a Non-Shared Revit Project Parameter?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello everyone! We have a serious need in Revit 2017 and later to rename non-shared project parameters using the Revit API. We've written many Revit add-ins and are pretty familiar with the Revit API, but after quite a bit of searching and playing around with some code, I have been unable to find a solution for this need.
You can rename one of these non-shared project parameters in the GUI (see the attached screen shot), so it seems to me like it should be possible using the API. At least, in the past we've been told if you can do it in the GUI the goal is to be able to do it in the API as well.
I can get to the InternalDefinition and the ParameterElement reference for the project parameters in question, but the Name field is either read-only, or is NOT read-only but fails at runtime with the error "This element does not support assignment of a user-specified name"
Is there some kind of "ParameterManager" object with a SetName-type method on it (similar to what can be done with Family editing using the API to rename non-shared parameters on the family) that would let us do this?
What am I missing here? I have searched this forum and the Internet in general and can't seem to find much for applicable results.
Thank you so very much for any assistance you can provide.