Public Sub TestPythonCalc() Dim fc As IFeatureClass Set fc = GetLayer0.FeatureClass Dim calc As ICalculator Set calc = New Calculator With calc Set .Cursor = fc.Update(Nothing, False) .Expression = "math.log1p(!SumOfConcentrations!)" .Field = fc.Fields.Field(fc.Fields.FieldCount - 1).Name .ShowErrorPrompt = False .Calculate End With End Sub Private Function GetLayer0() As IGeoFeatureLayer Dim pMxDoc As IMxDocument Set pMxDoc = ThisDocument Dim pGFL As IGeoFeatureLayer Set pGFL = pMxDoc.FocusMap.Layer(0) Set GetLayer0 = pGFL End Function
This is a good question.
I noticed this bug has still not been fixed. Perhaps because it has 'VBA' as the programming language. This bug effects any ArcObjects code, so maybe it should be set to .NET or C# ?
Usually, Esri support suggests that more people add their name to this issue so it will get a higher priority.