SetProjectionLinePatternId

You need to explicitly cast the Int64 to an ElementId. You will need references to Autodesk.Revit.DB.ElementId

import clr
clr.AddReference("RevitAPI")
import Autodesk
from Autodesk.Revit.DB import ElementId

And then when using an id, wrap it with ElementId()

id = ElementId(intToConvert)

3 Likes