Message 1 of 6
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm wanting to monitor any change of value to the built in parameter "INSTANCE_ELEVATION_PARAM".
For some reason the below code is not firing my updater when using the "GetChangeTypeParameter(ParmID)" overload. It does fire when I use the "GetChangeTypeAny" overload but this is not desiarable as that fire with any change to any familiy instance.
My code is below. Any suggestions what i'm doing wrong here?
regards
Phillip
Dim updater As New ERParmUpdater updaterId = updater.GetUpdaterId() If UpdaterRegistry.IsUpdaterRegistered(updaterId) = False Then UpdaterRegistry.RegisterUpdater(updater, True) UpdaterRegistry.SetIsUpdaterOptional(updaterId, True) Dim filter As ElementFilter = New ElementIsElementTypeFilter(True) Dim ParmID As ElementId = New ElementId(BuiltInParameter.INSTANCE_ELEVATION_PARAM) UpdaterRegistry.AddTrigger(updaterId, filter, Element.GetChangeTypeParameter(ParmID)) ' I want the updater to fire only when "INSTANCE_ELEVATION_PARAM" Chnages ' UpdaterRegistry.AddTrigger(updaterId, filter, Element.GetChangeTypeAny) //This does fire the updater but on any change to a family Instance End If
Solved! Go to Solution.