Select to view content in your preferred language

Move features not working

3718
1
02-18-2015 01:59 PM
JosephJose
Occasional Contributor

Hi

I have vba script that is used to move point features around. It uses the sdk method IPoint.PutCoords inX, inY. It executes perfectly in one featureclass with no problems.

Another feauteclass that I brought in from another database, the script has virtually no effect though every step is executed fine. Any reasons for the same?

Thanks

Joseph

0 Kudos
1 Reply
JosephJose
Occasional Contributor

I traced it out and found that editor tracking is enabled. If editor tracking is removed, the features move.

Since my production database requires editor tracking, has anyone come to know how to overcome this? The functions that I use is simple

Sub setGeom(ByVal inFeat As IFeature, ByVal inX As Double, ByVal inY As Double)

    If inFeat.FeatureType = esriFTSimple Then

        Dim vPoint As IPoint

        Set vPoint = inFeat.Shape

        'MsgBox vPoint.X & "," & vPoint.Y

        vPoint.PutCoords inX, inY

        inFeat.Store

    End If

End Sub

0 Kudos