- In the Infrastructure Administrator, do one of the following:
- Click Enterprise and connect to the enterprise industry model. Open a project.
- Click File and open an industry model drawing or template.
- Expand the Industry Model node and click Form Designer.
The form designer is displayed in the right pane. The topics and feature classes are displayed in the form explorer.
- In the form explorer, select the feature class Armature, select the Form Type, such as Default, and click Edit.
- In the Designer dialog box, click the General tab and do the following:
- On the Designer toolbar, click
Coordinates Editor.
- Click OK for the name.
- Select the control and in the left pane edit the properties:
UnAvailableValue = No coordinates available.
- On the Designer toolbar, click
- Exit the Form Designer.
- Select an armature in the feature class form.
The new geometry field shows the text you entered earlier, because the coordinates are not stored in WA_ARMATURE. With a geometry select statement you can retrieve the coordinates from the related geometry table WA_POINT.
- In the form explorer, select the feature class Armature, select the Form Type, such as Default, and click Edit.
- In the Designer dialog box, click the General tab and do the following:
- In the right pane, select the coordinates control.
- In the left pane click, the Properties tab.
- Under Specific, click the SQL property and click
to open the SQL Assistant.
- In the SQL Assistant dialog box, do the following:
- Under Relations, expand the feature class WA_ARMATURE, and click the related feature class WA_POINT. The SQL expression is inserted into the expression input box.
select * from WA_POINT where FID_ATTR in (select FID from WA_ARMATURE where fid={fid})
- Click
Execute to check the syntax.
- Click OK to set the property.
If you select the same armature as before, you can see the coordinates in the feature class form.
- Under Relations, expand the feature class WA_ARMATURE, and click the related feature class WA_POINT. The SQL expression is inserted into the expression input box.
Variant
- Set one Control to True the other to False. Either:
- ShowX=True and ShowY=False
or:
- ShowX=False and ShowY=True
To display the X (easting) and Y (northing) coordinate in two separate fields, add another geometry control and use the following attributes: