# Compas convert rhino object

**URL:** <https://forum.compas-framework.org/t/compas-convert-rhino-object/588>\
**Category:** compas\_rhino\
**Created:** [May 13, 2022, 4:12am UTC](https://forum.compas-framework.org/t/compas-convert-rhino-object/588 "2022-05-13T04:12:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![hugo](https://avatars.discourse-cdn.com/v4/letter/h/b38774/32.png) [@hugo](https://forum.compas-framework.org/u/hugo)\
**Post date:** [May 13, 2022, 4:12am UTC](https://forum.compas-framework.org/t/compas-convert-rhino-object/588/1 "2022-05-13T04:12:10Z")

</div>

i am trying to convert a compas box into rhino object.As i use the ‘box\_to\_rhino’, it does not work, while the feedback is ‘ModuleNotFoundError: No module named ‘Rhino’’.  
Should I install rhinoceros software or rhinocommon?  
Here below is my python code

```auto
from compas.geometry import Box
from compas_rhino.conversions import box_to_rhino
box = Box.from_corner_corner_height([1,1,0],[0,0,0],3)
rhino_box=box_to_rhino(box)

```

Here below is feedback.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/compas_framework1/original/1X/f3e2a9537af346d2a711d4957a61feb3b3c571a0.png)

Thank you ~

---

<div class="post-metadata">

**Author:** ![tomvanmele](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.compas-framework.org/tomvanmele/32/13_2.png) [@tomvanmele](https://forum.compas-framework.org/u/tomvanmele)\
**Post date:** [May 13, 2022, 1:05pm UTC](https://forum.compas-framework.org/t/compas-convert-rhino-object/588/2 "2022-05-13T13:05:45Z")

</div>

hi hugo,

to “convert” a COMPAS box to a Rhino object, just use the artist to draw it.

```python
from compas.geometry import Box
from compas.artists import Artist

box = ...

artist = Artist(box)
artist.draw()

```

hope this helps…

---

<div class="post-metadata">

**Author:** ![tomvanmele](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.compas-framework.org/tomvanmele/32/13_2.png) [@tomvanmele](https://forum.compas-framework.org/u/tomvanmele)\
**Post date:** [May 13, 2022, 1:57pm UTC](https://forum.compas-framework.org/t/compas-convert-rhino-object/588/3 "2022-05-13T13:57:09Z")

</div>

also, you have to run this IN Rhino of course

---

<div class="post-metadata">

**Author:** ![hugo](https://avatars.discourse-cdn.com/v4/letter/h/b38774/32.png) [@hugo](https://forum.compas-framework.org/u/hugo)\
**Post date:** [May 16, 2022, 7:42am UTC](https://forum.compas-framework.org/t/compas-convert-rhino-object/588/5 "2022-05-16T07:42:53Z")

</div>

Thank you for your reply!  
Do you mean the code should be run in Rhino software environment, if i want to use any command of compas\_rhion? Actually, I want to covnert a compas object to 3dm fomart to edit or export.

---

<div class="post-metadata">

**Author:** ![tomvanmele](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.compas-framework.org/tomvanmele/32/13_2.png) [@tomvanmele](https://forum.compas-framework.org/u/tomvanmele)\
**Post date:** [May 16, 2022, 9:06am UTC](https://forum.compas-framework.org/t/compas-convert-rhino-object/588/6 "2022-05-16T09:06:22Z")

</div>

yes, code using `compas_rhino` should be run in Rhino. if the goal is to create an object with COMPAS and edit it with Rhino, you can do as i wrote above and use an artist to “convert”.
