Hi,
Try this:
import clr
clr.AddReference('ProtoGeometry')
from Autodesk.DesignScript.Geometry import *
# Import ToDSType(bool) extension method
clr.AddReference("RevitNodes")
import Revit
clr.ImportExtensions(Revit.Elements)
# Import geometry conversion extension methods
clr.ImportExtensions(Revit.GeometryConversion)
# Import DocumentManager and TransactionManager
clr.AddReference("RevitServices")
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager
from System.Collections.Generic import *
# Import RevitAPI
clr.AddReference("RevitAPI")
import Autodesk
from Autodesk.Revit.DB import *
doc = DocumentManager.Instance.CurrentDBDocument
a = UnwrapElement(IN[0])
pts = IN[1]
c = []
d = []
for i in pts:
c.append(i.ToXyz())
for i in c:
TransactionManager.Instance.EnsureInTransaction(doc)
fi = doc.Create.NewFamilyInstance(i,a,Autodesk.Revit.DB.Structure.StructuralType.NonStructural)
TransactionManager.Instance.TransactionTaskDone()
d.append(fi)
#Assign your output to the OUT variable.
OUT = d