i have a script that works fine. i get Location"Points" but only the coordinates how to get a real point! i need this for RayBounce.
# 1️⃣ Get All Doors
doors = FilteredElementCollector(doc).OfCategory(BuiltInCategory.OST_Doors).WhereElementIsNotElementType().ToElements()
filter_tuerOeffnung = [i for i in doors if i.get_Parameter(BuiltInParameter.ELEM_FAMILY_PARAM)
.AsValueString() == "Tuer_Oeffnung"]
print('Es gibt {} Türöffnungen'.format(len(filter_tuerOeffnung)))
# 2️⃣ Get ElementLocationPoints
locationPoints =[i.Location.Point for i in filter_tuerOeffnung]
for p in locationPoints:
new_point = XYZ(p.X,p.Y,p.Z)
print(new_point)
This should work almost as is
top right, click the <> sign
you will see code sample related to this method, everything seems in line with what you have
thats way thank you, for the print statement i will create a new topic
for e in filter_tuerOeffnung:
bb = e.get_BoundingBox(None)
mi = bb.Min
ma = bb.Max
delta = ma.Z - mi.Z
unitMetric = UnitUtils.Convert(delta, UnitTypeId.Feet, UnitTypeId.Centimeters)
print(round(unitMetric,1))