Automatically save length and areas in spatial db?

I would like automatically calculate length and areas of my features (lines and polygons).

Can anyone guide me through how I can fix my feature to make it? 

Parents Reply
  • It does not work for me. I don't get feature length in the database.

    Here are steps that I do:

    -  My DB table has 3 columns, id, geometry and length.

    - I register the feature from database.

    - I add Initial Value for Length text property.

     Key = editing | Synch Preference = OFF | Value Type = cexpression |

     Value = [([FeatureName.Length])]

    - After run workspace and draw new line, can I see that a new record is created with geometry, but there are no length.

    What is wrong???

Children