Hi!
This seems like a silly question, but I just can’t find the answer after even an hour of Googling. I see a lot of ways that used to work some time ago, but probably not any more. What is the proper way to wrap Revit object in a Python script so that they become usable in Dynamo?
Thanks,
Taavi
Yes, I tried to use the ToProtoType() earlier as well. Also I have imported the Revit.GeometryConversion extension, but still get the error ‘ModelLine’ object has no attribute ‘ToProtoType’
Could there be something peculiar about Revit.DB.ModelLine that this type of elements cannot be converted to Dynamo objects?
hi,
model line is an element not a curve. It contains a curve element…so try this:
model_line.GeometryCurve.ToProtoType()
2 Likes