Select to view content in your preferred language

Use Attribute Assistant to Populate Field W/ M Value

4138
3
11-13-2012 05:36 AM
Labels (1)
by Anonymous User
Not applicable
Original User: Winsor1

Hello,

I work for a pipeline company & we use Linear Referencing to keep track of our footages.  I would like to use Attribute Assistant to automatically populate our BeginStation & EndStation fields in our pipeline feature classes with the min & max m values. 
I was thinking of using the Expression value method in Attribute Assistant like I currently do with Field Calculator.  As far as I know I can�??t use my Python expression�?�

BEGINSTATION =
        !Shape!.extent.MMin

�?�because the expression must be in VB.  I am not sure how or if it is possible to use my old VB Script�?�

Pre-Logic Script Code:
dim m as imcollection
        set m = [shape]
        dim d as double
        d = m.mmin
BEGINSTATION =
        d

Does anyone have any ideas on how to populate a field based on a Linear Referenced features m values?

Thanks!

Winsor1
0 Kudos
3 Replies
MikeMillerGIS
Esri Frequent Contributor
Matt,
   The expression is a pure vb script engine and does not use ArcObjects, so it will not be able to extract the M's from a feature.  We currently do not have a method to extract the M's.
0 Kudos
by Anonymous User
Not applicable
Original User: Winsor1

Mike,

Thanks for responding.

Will Python expressions be accepted by Attribute Assistant in the future?  If so will �??!Shape!.extent.MMin�?� work?

Matt.
0 Kudos
MikeMillerGIS
Esri Frequent Contributor
Matt,
  It is currently not in the development plan.  We could look at letting the expression rule use the Python engine, but I am unsure if it would would with ArcPy.
0 Kudos