Message 1 of 6
Deleting a non-shared project parameter

Not applicable
01-05-2016
08:00 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all, Not sure if this has been answered before but I couldnt find any answer to my problem. I am trying to develop a plugin to delete parameters (shared and project) from my Revit project. Shared parameters can be deleted with no problem however I have problems when I am trying to delete a project parameter. I used the following line in order to delete the parameter: Doc.ParameterBindings.Remove(definition); Two problems I am facing here are: 1) I used a loop to delete every single parameter in the project (Shared + Project). After the loop, all the Shared parameters are gone but the project parameter still remains in Snoop Document -> Parameter Bindings. 2) I tried executing the code again to delete the project parameter and this time the project parameter is no longer in the Parameter Bindings.However, in the UI in Revit (Manage -> Project Parameters), the project parameters are still there and in the properties tab, the parameters are still there as well. Anyone here have faced/solved this problem before? Your help is greatly appreciated.