Hi guys, now I stuck in python script for Revit. I want to create the beam by this syntax:
doc.Create.NewFamilyInstance(curve, family symbol, level, Structure Type)
but when I collect all the detail line in the active View and put it there in the syntax, it pop up the error (Expected XYZ got line). I did try to use curve.GeometryCurve but it didn’t work out. So how can I get the curve out of the detail line in the project ?
And for Door Trim Width parameter, how can I get it because I try to use with door.LookupParameter(“Trim Width”) but it didn’t work out also. Then I can not use get BuiltInParameter since there is no name for “Door Trim Width” in BuiliIn Category list.
I am really appreciate any helps.
Thank you very much.