The attached cpp is based on the code you provided. May I ask you two questions:
I think the following code is not used, why would you include it inside ExecConduit?
ON_4iRect rect; if (!CRhinoDisplayPipeline::MeasureString(rect, m_strMessage, screen_point, false, text_height, L"System")) return FALSE; rect.InflateRect(3, -3, 3, 3);
“dp.DrawSurface(*(m_prnBrep->m_S), m_bFullPreview ? 1 : 2);” The code works for Rhino 6. How could we do it in Rhino 5? Could you show the Rhino 5 code for displaying a surface?