Hi all
I need this option but in C++ Rhino SDK
Hi @BiljanaN,
Does this help?
CRhinoCommand::result CCommandTest::RunCommand(const CRhinoCommandContext& context)
{
CRhinoView* pView = RhinoApp().ActiveView();
if (nullptr == pView)
return CRhinoCommand::failure;
ON_UUID display_mode_id = pView->ActiveViewport().View().m_display_mode_id;
if (ON_UuidIsNil(display_mode_id))
return CRhinoCommand::failure;
DisplayAttrsMgrListDesc* pAttrsDesc = CRhinoDisplayAttrsMgr::FindDisplayAttrsDesc(display_mode_id);
if (nullptr != pAttrsDesc && nullptr != pAttrsDesc->m_pAttrs)
{
pAttrsDesc->m_pAttrs->m_bShowMeshWires = false;
CRhinoDisplayAttrsMgr::SetIsModified(true);
CRhinoDisplayAttrsMgr::SaveProfile(RhinoApp().ProfileContext());
context.m_doc.Redraw();
}
return CRhinoCommand::success;
}
– Dale
Yes. But now I want to hide the MeshEires of only one Mesh on the scene. I guess that I need to change something in object attributes.
Hi @BiljanaN,
In the case of a single object, you will need to create a display conduit. And in the SC_DRAWOBJECT channel, when the single object is being drawn, then modify the display attributes accordingly.
– Dale