ArcFM Solution Developer Guide
GetAutoValue Method (IMMAttrAUStrategy)






This is the object responding to the event.

This method returns the new value for the field. The logic required to produce the new value is coded here.
Syntax
'Declaration
 
Function GetAutoValue( _
   ByVal pObj As ESRI.ArcGIS.Geodatabase.IObject _
) As System.Object
'Usage
 
Dim instance As IMMAttrAUStrategy
Dim pObj As ESRI.ArcGIS.Geodatabase.IObject
Dim value As System.Object
 
value = instance.GetAutoValue(pObj)
System.object GetAutoValue( 
   ESRI.ArcGIS.Geodatabase.IObject pObj
)
function GetAutoValue( 
    pObj: ESRI.ArcGIS.Geodatabase.IObject
): System.TObject; 
function GetAutoValue( 
   pObj : ESRI.ArcGIS.Geodatabase.IObject
) : System.Object;
System.Object* GetAutoValue( 
   ESRI.ArcGIS.Geodatabase.IObject* pObj
) 
System.Object^ GetAutoValue( 
   ESRI.ArcGIS.Geodatabase.IObject^ pObj
) 

Parameters

pObj

This is the object responding to the event.

Return Value

Variant
Example
The ArcFM autoupdater component passes in the object that is being edited, created, or updated to the GetAutoValue method. Your custom implementation of GetAutoValue will likely use the incoming object to determine the new value of the field.
The following code sample demonstrates how the IMMAttrAUStrategy::GetAutoValue method may be implemented.
Visual Basic Copy Code
Private Function IMMAttrAUStrategy_GetAutoValue (ByVal pObj As IObject) As Variant
    IMMAttrAUStrategy_GetAutoValue = Date
End Function
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

IMMAttrAUStrategy Interface
IMMAttrAUStrategy Members

Send Feedback