Compas convert rhino object

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

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)

Here below is feedback.

Thank you ~

hi hugo,

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

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

box = ...

artist = Artist(box)

hope this helps…

also, you have to run this IN Rhino of course

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.

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”.