ArcFM Solution Developer Guide
IMMAutoValue Interface
Members 






This interface stores ArcFM configurations such as autoupdaters, custom field editors, and validation rules. The type of configuration stored is determined in the EditEvent property. The mmEditEvent value set in the EditEvent property determines which IMMAutoValue properties are applicable.

In the example below, the code goes through all of the ID8ListItems that are children of the IMMSubtype to find those that are IMMAutoValue. These list items represent the autoupdaters in the order they are assigned.

//Example Implementation of IMMAutoValue
// Specify ObjectClass and SubtypeCode, remember all field properties are by subtype
   IMMSubtype subtype = configTopLevel.GetSubtypeForEdit(objectClass, 1);
            
   // IMMSubtype is an ID8List, with IMMAutoValues (among other things)
   ID8List subtypeList = subtype as ID8List;
   subtypeList.Reset();

   ID8ListItem listItem = subtypeList.Next(false);
   while (listItem != null)
   {
      if (listItem is IMMAutoValue)
      {
         IMMAutoValue autoValue = listItem as IMMAutoValue;
         if (autoValue.AutoGenID != null)
         {
            switch (autoValue.EditEvent)
            {
               case mmEditEvent.mmEventFeatureCreate:
               // Compare AutoValue to some value you are searching for
               if (String.Compare(autoValue.AutoGenID.Value.ToString(), 
                                    "{1B6A3EBD-BE25-4FA0-8818-91C843601B1D}",true) == 0)
                {
                    // Remove the AU
                    autoValue.AutoGenID = null;
                    autoValue = null;
                }
                break;
            case mmEditEvent.mmEventFeatureUpdate:
                break;
            case mmEditEvent.mmEventFeatureDelete:
                break;
          }
        }
     }
     listItem = subtypeList.Next(false);
   }
   configTopLevel.SaveFeatureClassToDB(objectClass);
Object Model
IMMAutoValue Interface
Syntax
'Declaration
 
<System.Runtime.InteropServices.InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)>
<System.Runtime.InteropServices.GuidAttribute("CFA470EE-EFD1-4D4F-8232-2C5CEC2BC61C")>
<System.Runtime.InteropServices.TypeLibTypeAttribute(TypeLibTypeFlags.FOleAutomation)>
<System.Runtime.InteropServices.ComImportAttribute()>
Public Interface IMMAutoValue 
'Usage
 
Dim instance As IMMAutoValue
[System.Runtime.InteropServices.InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[System.Runtime.InteropServices.Guid("CFA470EE-EFD1-4D4F-8232-2C5CEC2BC61C")]
[System.Runtime.InteropServices.TypeLibType(TypeLibTypeFlags.FOleAutomation)]
[System.Runtime.InteropServices.ComImport()]
public interface IMMAutoValue 
public interface IMMAutoValue 
System.Runtime.InteropServices.InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)
System.Runtime.InteropServices.GuidAttribute("CFA470EE-EFD1-4D4F-8232-2C5CEC2BC61C")
System.Runtime.InteropServices.TypeLibTypeAttribute(TypeLibTypeFlags.FOleAutomation)
System.Runtime.InteropServices.ComImportAttribute()
public interface IMMAutoValue 
[System.Runtime.InteropServices.InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[System.Runtime.InteropServices.Guid("CFA470EE-EFD1-4D4F-8232-2C5CEC2BC61C")]
[System.Runtime.InteropServices.TypeLibType(TypeLibTypeFlags.FOleAutomation)]
[System.Runtime.InteropServices.ComImport()]
public __gc __interface IMMAutoValue 
[System.Runtime.InteropServices.InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[System.Runtime.InteropServices.Guid("CFA470EE-EFD1-4D4F-8232-2C5CEC2BC61C")]
[System.Runtime.InteropServices.TypeLibType(TypeLibTypeFlags.FOleAutomation)]
[System.Runtime.InteropServices.ComImport()]
public interface class IMMAutoValue 
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

IMMAutoValue Members
Miner.Interop Namespace

Send Feedback