# Revit to Rhino - Sample Grasshopper no longer works

**URL:** <https://discourse.mcneel.com/t/revit-to-rhino-sample-grasshopper-no-longer-works/110803>\
**Category:** Revit\
**Created:** [October 22, 2020, 4:30pm UTC](https://discourse.mcneel.com/t/revit-to-rhino-sample-grasshopper-no-longer-works/110803 "2020-10-22T16:30:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![l11](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/l11/32/224559_2.png) [@l11](https://discourse.mcneel.com/u/l11)\
**Post date:** [October 22, 2020, 4:30pm UTC](https://discourse.mcneel.com/t/revit-to-rhino-sample-grasshopper-no-longer-works/110803/1 "2020-10-22T16:30:31Z")

</div>

I previously used this Grasshopper sample file to get Revit geometries to Rhino.Inside.Revit.

> **[Rhino.Inside®.Revit](https://www.rhino3d.com/inside/revit/beta/samples/transfer-revit-to-rhino)**

However, it doesn’t seem to work anymore? Or am I missing something? Both Revit/Rhino are up to date.

 ![Capture](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/b/1/b19af9416deb0b1d4d0cc03ddb3d6dc80817a6cd.jpeg)

---

<div class="post-metadata">

**Author:** ![l11](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/l11/32/224559_2.png) [@l11](https://discourse.mcneel.com/u/l11)\
**Post date:** [October 22, 2020, 5:29pm UTC](https://discourse.mcneel.com/t/revit-to-rhino-sample-grasshopper-no-longer-works/110803/2 "2020-10-22T17:29:25Z")

</div>

![Capture](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/8/e/8e40ae3fe7dcac2f81bdc010bef3a9eb52190270.jpeg)  
I tried to follow the definition from what I could see in [Importing geometry from Revit into Rhino (3 of 5) - YouTube](https://www.youtube.com/watch?v=8AjX3YlwjEs&feature=youtu.be)

However, I couldn’t get the custom GHPython right.

> **[Custom GhPython Baking Component](https://developer.rhino3d.com/guides/rhinopython/ghpython-bake/)**
>
> Use GhPython to create custom baking components.

When copied the code, it gives an error “name B” is not defined. Probably it’s from the line 17. I don’t know Python, so I suppose I’m missing/not understanding something here.

If I try to bake directly from the geometry, nothing happens.  
Any help would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![l11](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/l11/32/224559_2.png) [@l11](https://discourse.mcneel.com/u/l11)\
**Post date:** [October 22, 2020, 5:51pm UTC](https://discourse.mcneel.com/t/revit-to-rhino-sample-grasshopper-no-longer-works/110803/3 "2020-10-22T17:51:05Z")

</div>

I see that I had a wrong “geometry.” It now works with “Elements Parts Geometry.”
