Storing Updaters data between Revit sessions

Storing Updaters data between Revit sessions

philip_adlergard
Contributor Contributor
369 Views
1 Reply
Message 1 of 2

Storing Updaters data between Revit sessions

philip_adlergard
Contributor
Contributor

So I've created Updaters that listens to wall changes to update an parameter holding their size. This is done via an addin I've written. But when restarting revit the warning about third party addin not installed pops up, as expected of course.

 

So I want to store data (IDs I guess) of the elements registered to updaters in some way, to automatically register updaters on startup. What way is the best for this? I've read about Extensible storage and shared parameters, but I'm not sure if that would be correct way of doing this.

 

Any suggestions?

0 Likes
370 Views
1 Reply
Reply (1)
Message 2 of 2

ricaun
Advisor
Advisor

@philip_adlergard wrote:

So I've created Updaters that listens to wall changes to update an parameter holding their size. This is done via an addin I've written. But when restarting revit the warning about third party addin not installed pops up, as expected of course.


You can disable that pop if you want, when you register the updater you can set as optional and the popup never shows.

public static void RegisterUpdater(
	IUpdater updater,
	bool isOptional
)

 


@philip_adlergard wrote:

So I want to store data (IDs I guess) of the elements registered to updaters in some way, to automatically register updaters on startup. What way is the best for this? I've read about Extensible storage and shared parameters, but I'm not sure if that would be correct way of doing this.


I have a plugin that does something like that. If the document have the Shared Parameter the updater is enable, if not disable. In my case the updater updates the Shared Parameter so if the parameter does not exist in the document the updater does not work. I have as well a extensible storage with some simple configuration to enable/disable the updater in some categories.

 

This is the plugin ConduitMaterial

Luiz Henrique Cassettari

ricaun.com - Revit API Developer

AppLoader EasyConduit WireInConduit ConduitMaterial CircuitName ElectricalUtils

0 Likes