Quantcast
Channel: All Revit API Forum posts
Viewing all articles
Browse latest Browse all 66705

Trigger Updater When Host Changes

$
0
0

I would like to add a trigger to an updater when the host of a family instance changes (i.e. when an instance attaches to a new host via pick new host).

 

UpdaterRegistry.AddTrigger(updater.GetUpdaterId(), filter, Autodesk.Revit.DB.Element.GetChangeTypeParameter(new ElementId(BuiltInParameter.INSTANCE_FREE_HOST_PARAM)));

*filter is just an element filter for FamilyInstance.

 

I've tried adding a trigger via GetChangeTypeParameter for INSTANCE_FREE_HOST_PARAM, HOST_ID, etc but none have set off the updater. The updater will work for any generic trigger like GetChangeTypeElementAddition, or ChangeTypeAny.

 

Any ideas why the trigger is not setting off?

 

 


Viewing all articles
Browse latest Browse all 66705

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>