If you are trying to execute RhinoCommon functionality from inside the Revit process, you are going to need to use Rhino3dmIo instead of RhinoCommon. RhinoCommon is solely designed to run inside of the Rhino process.
If you are trying to execute RhinoCommon functionality from inside the Revit process, you are going to need to use Rhino3dmIo instead of RhinoCommon. RhinoCommon is solely designed to run inside of the Rhino process.