In Rhino 5 I added a new display setting to my C++ PlugIn. Unfortunately the same code in Rhino 6 seems to have no effect. Here the code snippet:
// I have a new UUID CS_DisplayVariantUUID created before this...
DisplayAttrsMgrListDesc *pAttrMgrDescCyberstrakDisplay = CRhinoDisplayAttrsMgr::FindDisplayAttrsDesc(CS_DisplayVariantUUID);
if (!pAttrMgrDescCyberstrakDisplay)
pAttrMgrDescCyberstrakDisplay = CRhinoDisplayAttrsMgr::AppendNewEntry(true, true, true);
.
.
.
// try to modify background color
pAttrMgrDescCyberstrakDisplay->m_pAttrs->m_eFillMode = FBFM_SOLID_COLOR;
pAttrMgrDescCyberstrakDisplay->m_pAttrs->m_SolidColor = ON_Color(70, 60, 80);
.
.
.
// update attribute manager
bool bSuccess = CRhinoDisplayAttrsMgr::UpdateAttributes(*pAttrMgrDescCyberstrakDisplay);
I receive bSuccess = true , but the display mode does not appear in the Rhino View Menu like in Rhino 5. While I was able to find my own display mode in the Rhino 5 registry, I do not see it for Rhino 6.