This document is archived and information here might be outdated. Recommended version. |
Transfers attribute values from one row to another based on a fieldmap.
Interfaces | Description |
---|---|
IAttributeTransfer (esriEditor) | Provides access to members that control the behavior of the attribute transfer tools. |
IAttributeTransferDefaultSettings (esriEditor) | Provides access to members that control the behavior of the attribute transfer tools. |
IClone (esriSystem) | Provides access to members that control cloning of objects. |
IPersistStream (esriSystem) |
This object represents an Attribute Transfer environment within the Editor. The current environment may be retrieved from the Editor or the user may instantiate a new one. To perform an attribute transfer, first define a field map via the FieldMap coClass and then perform a transfer through the IAttributeTransfer interface.
The following code shows an example of obtaining an instance of AttributeTransfer via the editor.
public void GetAttributeTransfer()
{
UID editorUid=new UIDClass();
editorUid.Value="esriEditor.Editor";
//You can get app from ICommand :: OnCreate() hook parameter
IAttributeTransferType attTransType=m_app.FindExtensionByCLSID(editorUid) as IAttributeTransferType;
IAttributeTransfer attTransfer=attTransType.AttributeTransfer;
}
The following code shows an example of obtaining an instance of AttributeTransfer via the editor.
Public Sub GetAttributeTransfer()
'You can get app from ICommand :: OnCreate() hook parameter
Dim editorUid As UID=New UIDClass()
editorUid.Value="esriEditor.Editor"
Dim attTransType As IAttributeTransferType=TryCast(app.FindExtensionByCLSID(editorUid), IAttributeTransferType)
Dim attTransfer As IAttributeTransfer=attTransType.AttributeTransfer
End Sub