How do I access coordinates of a vertex?
Options
Pernelle MaroneHitz
Member, Moderator, Employee Posts: 804
Best Answer

First, access the vertex through GeoData, for example through its Id like:
geoData = ExtAPI.DataModel.Project.Model.Analyses[0].GeoData vertex = geoData.GeoEntityById(27)
Then the coordinates can be accessed with:
vertex.X vertex.Y vertex.Z
2
Answers

The coordinates are in meters, so how can I obtain them in millimeters?
0 
Hi  from geodata the units are as far as I can see always in meters (m). So easiest is just to multiply the above script by 1000, if one wants it in mm.
1 
@Erik Kostson
Dear Erik,Thank you!
May I ask one more question?
Can coordinates be obtained with reference to an arbitrary coordinate system?0