I make 4 shared parameters with revit api for to log the element's creator, modifier, and time. I want to prevent this parameter from being deleted. Is there any method to prevent deletion of parameters? Btw I use Revit 2021.
Solved! Go to Solution.
Solved by jeremy_tammik. Go to Solution.
If you want to protect this data more securely, the safest method is to store it in an extensible storage data entity and set the permissions to only allow the creating application access:
Parameters are basically and originally implemented for end user access. Extensible storage was created for pure programmatic add-in access and is therefore equipped with much more robust protection.
Hello, jeremy.tammik.
The method I've been using involves creating shared parameters and storing data using IUpdater.
The workflow is as follows:
The following image is the result of my work.
I have some questions regarding the suggested extensible storage approach:
Will the data stored in extensible storage be displayed to end-users in a manner similar to shared parameters, as shown in the image?
I've only been working with the Revit API for about a week, so my knowledge is still limited. Please advise.
Wow. So new. Welcome! Well, take some time to get used to it before attempting anything too adventurous affecting many users.
1. No. Extensible storage is up to the add-in. Revit does nothing to display it to the user. If you want the user to see it, that's up to you to do.
2. I don't know off-hand. Try it out.
3. Yes, absolutely possible.
Can't find what you're looking for? Ask the community or share your knowledge.