import clr
clr.AddReference('RevitAPI')
from Autodesk.Revit.DB import *
clr.AddReference("RevitServices")
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager
doc = DocumentManager.Instance.CurrentDBDocument
array = ModelCurveArray()
inn=IN[0]
if not isinstance(IN[0], list):
inn=[]
inn.append(IN[0])
for i in inn:
array.Append(UnwrapElement(i))
view=UnwrapElement(IN[1])
TransactionManager.Instance.EnsureInTransaction(doc)
DetailLines = doc.ConvertModelToDetailCurves(view,array)
TransactionManager.Instance.TransactionTaskDone()
OUT = DetailLines
Hi Kulkul. Thank you for you helpful script. May I ask how will you assign a Line Style for this output? I found the output type of this script is autodesk.revit.db.detailline, but Element.SetParameterByName node need revit.element.detailline as input. It seems failed to set a style.