AMEE_in_Revit.Addin.CO2eParameter.CO2eFieldUpdater.GetUpdaterId C# (CSharp) Method

GetUpdaterId() public method

public GetUpdaterId ( ) : UpdaterId
return UpdaterId
        public UpdaterId GetUpdaterId()
        {
            return updaterID;
        }

Usage Example

Beispiel #1
0
        public static void CreateAndRegister(AddInId addinId)
        {
            var updater = new CO2eFieldUpdater(addinId);

            if (UpdaterRegistry.IsUpdaterRegistered(updater.GetUpdaterId()))
            {
                UpdaterRegistry.UnregisterUpdater(updater.GetUpdaterId());
            }
            UpdaterRegistry.RegisterUpdater(updater);

            var filter = Settings.CreateFilterForElementsWithCO2eParameter();

            UpdaterRegistry.AddTrigger(updater.GetUpdaterId(), filter, Element.GetChangeTypeGeometry());
            UpdaterRegistry.AddTrigger(updater.GetUpdaterId(), filter, Element.GetChangeTypeElementDeletion());
        }
All Usage Examples Of AMEE_in_Revit.Addin.CO2eParameter.CO2eFieldUpdater::GetUpdaterId