Getting Coordinates from Survey Point

Hi all members,

I am trying to get the coordinates of Revit element from Survey point. For example, coordinates of piles based on survey point.

As a first step, I used Get Location node for the selected elements, and it gives the coordinates from the internal origin.
Then I get the location of Survey point as well.
The question is
How are we going to cater the orientation of the project to get the real-world coordinates of the Revit objects?

I do really appreciate all the suggestions.

Hi Ethan, welcome to the forum, :wave:
Please take the time to read the FAQ if you haven’t already

There are plenty of discussions regarding this in the forum - only a quick search away

Crumple has a node Coordinates.SP which reports eastings and northings

1 Like

Does this take into consideration the angle of the PBP against the SP?

Hi,
Here is an article that I wrote. I hope it helps!

2 Likes

Here’s three ways to achieve a location point readout relative to the survey


Simplest is using GeniusLoci node Convert from InternalOrigin CoordinateSystem
Next is a python node

import clr

clr.AddReference("RevitServices")
from RevitServices.Persistence import DocumentManager

doc = DocumentManager.Instance.CurrentDBDocument
transform = doc.ActiveProjectLocation.GetTotalTransform()

def transform_point(p):
    # Unit conversion done with ToXyz and ToPoint methods
    return transform.Inverse.OfPoint(p.ToXyz()).ToPoint()

# Provide a list of points
points = IN[0] if isinstance(IN[0], list) else [IN[0]]

OUT = map(transform_point, points)

Finally, use OOTB and Crumple Coordinates.SP to create the transform as a CoordinateSystem and apply to the geometry

1 Like