Summary
Use the Field Calculator to populate X and Y data fields with the X and Y components of a coverage labelpoint feature.
Procedure
- Create a number field and name it X_Value.
- Open the table and select Start Editing from the Table menu.
- Select Add Field from the Edit menu.
- In the Field Definition dialog box:
- Set Name to an appropriate name, for example 'Area'.
- Set Type to Number.
- Set Width to an appropriate number, for example '32'.
- Set Decimal Places to the desired number, for example '6'.
- Click OK.
- Select Stop Editing from the Table menu and save the edits.
- Create another number field, name it Y_Value.
- Select Start Edting from the Table menu, if not already in edit mode.
- Make the X_Value field active.
- Select Field Calculator from the Table menu.
- Enter the following code in the expression box of the Field Calculator.
Code:
[shape].aslist.get(0).getx
- Click OK.
- Make the Y_Value field active.
- Select Field Calculator from the Table menu.
- Enter the following code in the expression box of the Field Calculator.
Code:
[shape].aslist.get(0).gety