Jamie
You can use ObjectNodeX() and ObjectNodeY() to extract coordinates from your polylines.
So you could do a number of things with this knowledge:
1. Add four extra columns to your wsewer records for your start and end points
You can update these with the coordinates using this statement:
Update SEWER
Set FROMX = ObjectNodeX(OBJ, 1, 1),
FROMY = ObjectNodeY(OBJ, 1, 1),
TOX = ObjectNodeX(OBJ, 1, ObjectInfo(OBJ, 20)),
TOY = ObjectNodeY(OBJ, 1, ObjectInfo(OBJ, 20))
2. Create a copy of your sewer table and call it startnode and then update this with a point for the start node:
Update StartNode
Set Obj = CreatePoint(ObjectNodeX(OBJ, 1, 1),ObjectNodeY(OBJ, 1, 1))
and make a similar copy for the endnodes:
Update StartNode
Set Obj = CreatePoint(ObjectNodeX(OBJ, 1, ObjectInfo(OBJ, 20)),ObjectNodeY(OBJ, 1, ObjectInfo(OBJ, 20)))
Maybe this gets you started.
If you run the statements above, do remember to adjust the table and column names and run each statement as a complete statement.
You might also want to set a specific coordinate system before extracting the coordinates.