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 Object
'Usage
 
Dim instance As IMMAttrAUStrategy
Dim pObj As ESRI.ArcGIS.Geodatabase.IObject
Dim value As Object
 
value = instance.GetAutoValue(pObj)
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 XP SP3 (32-bit and 64-bit), Windows 7 (32-bit and 64-bit)

Not all Operating Systems are supported on all products. Visit the ArcFM Solution Supported Versions page for full details.

See Also

Reference

IMMAttrAUStrategy Interface
IMMAttrAUStrategy Members

 

 


Send Comment