Finding Co-ords For Verts?

Hi all. I'm trying to find a way to display co-ordinate information of verts in Maya or ultimately a script that can export those details to something like a text document.

The situation is I am creating buildings for a game level where the level editor will place these buildings procedurally. It will use the vert co-ords to place the buildings side by side without intersection. What I need to be able to do is determine the X,Y,Z co-ords within maya or better yet find a plugin that will write these details to a text file.

Can anyone help?

Thanks.

--- EDIT ---

Ok I just worked out how to find the x,y,z co-ords for each vert. You can look it up in the component editor under the polygons tab. Now the next step is how can I extract that info?

Cheers.

there's a better way, check the doc. for the MEL command "pointPosition" ...

As for the "write to file", check the command "fprint" , and the several threads related to this subject (Highend3D has a search feature you know ...)

Guyb.