Python. how to move all points of sublists from internal origin to survey point vector-distance?

python. how to move all dynamo points of sublists from internal origin to survey point vector-distance?

Where are you getting stuck? Getting the survey point? Adding vectors? What do you have so far and what’s causing you trouble?

I got that with nodes, not sure what is best way to get the revit points survey and internal with python Revit API, but internal is not 0,0,0 coordinates.


I got this python but not sure if it is doing what I expect, needs to feed points list:

import clr
clr.AddReference('RevitServices')
import RevitServices
from RevitServices.Persistence import DocumentManager
doc = DocumentManager.Instance.CurrentDBDocument

clr.AddReference('RevitNodes')
import Revit
clr.ImportExtensions(Revit.GeometryConversion)

pts = [pt.ToXyz(True) for pt in IN[0]] if isinstance(IN[0],list) else [IN[0].ToXyz(True)]

#Translate point from Shared coordinates to Internal
translatedPoint = [doc.ActiveProjectLocation.GetTotalTransform().OfPoint(pt).ToPoint() for pt in pts]

if isinstance(IN[0], list): OUT = translatedPoint
else: OUT = translatedPoint[0]