# Enable Python support and load DesignScript library
import clr
clr.AddReference('RevitAPI')
from Autodesk.Revit.DB import *
import clr
clr.AddReference('RevitAPIUI')
import clr
from System.Collections.Generic import *
clr.AddReference('RevitAPI')
from Autodesk.Revit.DB import *
import Autodesk
clr.AddReference("RevitNodes")
import Revit
clr.ImportExtensions(Revit.Elements)
clr.ImportExtensions(Revit.GeometryConversion)
clr.AddReference("RevitServices")
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager
doc = DocumentManager.Instance.CurrentDBDocument
app = doc.Application
X=IN[0]
Y=IN[1]
Z=IN[2]
t = Transaction(doc, 'create a single reference point')
t.Start()
#define x, y, and z variables
j=0
for item in X:
x=X[j]
y=Y[j]
z=Z[j]
myXYZ = XYZ(x,y,z)
p = doc.FamilyCreate.NewReferencePoint(myXYZ)
AdaptiveComponentFamilyUtils.MakeAdaptivePoint(doc, p.Id, AdaptivePointType.PlacementPoint)
p.CoordinatePlaneVisibility = CoordinatePlaneVisibility.Always
j=j+1
#declare a XYZ variable
#use XYZ to define a reference point
t.Commit()
# Place your code below this line
# Assign your output to the OUT variable.
OUT = 0