Convert Revit Solid into Dynamo Solid error

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:
for room in Rooms:
for abc in sldx:

Any reason you’re not using the Element.geometry node for this?

I basically use Element.Geomety node but from time to time, it will return null for some rooms and cause mistakes

If these are reproducible cases, you should submit them to Dynamo’s GitHub site:

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.

Could you please tell me how to get down further to children geometry when this error happened?:pray:

Use RevitLookup to get Geometry hierarchy

Could you show me sample code example?:joy: