- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
virtual AcRx::AppRetCode On_kInitAppMsg (void *pkt)
{
AcRx::AppRetCode retCode = AcRxArxApp::On_kInitAppMsg(pkt);
if (Adesk::kTrue == acedIsMenuGroupLoaded(TEXT("nwheleccoordinationsys")))
{
acutPrintf(TEXT("exist\n"));
}
return (retCode) ;
}
virtual AcRx::AppRetCode On_kUnloadAppMsg (void *pkt)
{
AcRx::AppRetCode retCode = AcRxArxApp::On_kUnloadAppMsg(pkt);
if (Adesk::kTrue == acedIsMenuGroupLoaded(TEXT("nwheleccoordinationsys")))
{
acutPrintf(TEXT("exist\n"));
}
return (retCode) ;
}
I am testing the "acedIsMenuGroupLoaded" method, and I have already loaded "nwheleccoordinationsys.cuix". However, I have noticed that in the "On_kInitAppMsg" function, using "acedIsMenuGroupLoaded" always returns true, while in the "On_kUnloadAppMsg" function, using "acedIsMenuGroupLoaded" always returns false.
Calling acedIsMenuGroupLoaded(TEXT("nwheleccoordinationsys")) anywhere else in the code always returns true,only in On_kUnloadAppMsg does it return false.
The trigger method for On_kUnloadAppMsg is to directly close CAD.
I think it would be normal for the call in On_kUnloadAppMsg to also return true, so I’m quite puzzled.
Can you explain what might be causing this?
Solved! Go to Solution.