bool Snap2CloseF8()
{
NXOpen::Session* theSession = NXOpen::Session::GetSession();
NXOpen::Part* workPart(theSession->Parts()->Work());
NXOpen::Part* displayPart(theSession->Parts()->Display());
workPart->ModelingViews()->WorkView()->SnapToClosestCannedOrientation();
return true;
}