Skip to content

Instantly share code, notes, and snippets.

@CEXT-Dan
Created November 4, 2025 06:26
Show Gist options
  • Select an option

  • Save CEXT-Dan/891bff5a8cd1fe45aca3e49c756128b3 to your computer and use it in GitHub Desktop.

Select an option

Save CEXT-Dan/891bff5a8cd1fe45aca3e49c756128b3 to your computer and use it in GitHub Desktop.
acrxEntryPoint for doc
//-----------------------------------------------------------------------------
//----- ObjectARX EntryPoint
class wxArx : public AcRxArxApp
{
public:
wxArx() : AcRxArxApp()
{
}
virtual AcRx::AppRetCode On_kInitAppMsg(void* pkt)
{
AcRx::AppRetCode retCode = AcRxArxApp::On_kInitAppMsg(pkt);
return (retCode);
}
virtual AcRx::AppRetCode On_kUnloadAppMsg(void* pkt)
{
AcRx::AppRetCode retCode = AcRxArxApp::On_kUnloadAppMsg(pkt);
return (retCode);
}
virtual AcRx::AppRetCode On_kLoadDwgMsg(void* pkt) override
{
AcRx::AppRetCode retCode = AcRxDbxApp::On_kLoadDwgMsg(pkt);
initOnce();
return retCode;
}
static bool initOnce()
{
static bool _called = false;
if (!_called)
{
_called = true;
acutPrintf(_T("\nInit once"));
}
return _called;
}
virtual void RegisterServerComponents()
{
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment