While I tried to convert the Revit Room solid into Dynamo using .ToProtpType() method, it keeps poping up error message of
“Traceback (most recent call last):
File “”, line 99, in
StandardError: trim_with_edge_loops requires all curves to touch surface”
Does anyone know how to solve it?
Source codes:
rtn=[]
for room in Rooms:
sldx=room.ClosedShell
for abc in sldx:
abc=abc.ToProtoType()
rtn.append(abc)
It’s failing on Dynamo 1.0 . Pls test with the latest Dynamo, maybe someone has fixed it on 1.1+.
You can always bypass null values with simple if statement, but …
Has anyone found a solution to this yet? I’m getting a Autodesk.Revit.DB.Solid object that I want to get faces of. ToProtoType() method simply doesn’t work.
I’m getting an attribute error saying:
AttributeError: 'GeometryElement' object has no attribute 'ToProtoType'
You have to get down further to children geometry elements such as solids, faces, curves to convert to Dynamo geometry. The Exception says that what you have is actually a GeometryElement, not a DB.Solid. Please also remember to import Revit.GeometryConversion extension.