Hello,
I do some adaptation from C#. I do just python. I have some translationproblems:
1.) “as” is in python not existing what do i use insteat
2.) i want just a point
3.) Groups have an different origin point i cant see it via
dir(UnwrapElement(IN[0]))`
import sys
import clr
clr.AddReference('RevitAPI')
from Autodesk.Revit.DB import *
from Autodesk.Revit.DB.Structure import *
clr.AddReference('RevitNodes')
import Revit
clr.ImportExtensions(Revit.GeometryConversion)
clr.ImportExtensions(Revit.Elements)
this = UnwrapElement(IN[0])
locationPt = this.InternalGroup.Location as LocationPoint
origin = locationPt.Point.ToPoint()
OUT = origin
Right now it is just for one group, i hope i will later interate via a for-loop…
this script does also not work ( i checked it here with 2 groups):
KR
Andreas