CAD/CAM discussion forum > CAD > autoload zrx
  Subscribe Topic

Rank: 5Rank: 5



posts: 12

Registered: 2013-10-15

Message 1 of 2

 autoload zrx
15-10-2013 01:26 . pm   |   View his/her posts only
i'm porting my application from autocad to zwcad.
I've made a installation, during which i fill the windows registry keys at
So that my zrx and additional lisp files get loaded automaticaly.

the thing is that on the first run after the install, nothing gets loaded until i enter "appload" command. I only execute this command and all the files get loaded(startup siut is filled as expected).
Next time i run zwcad all files load perfectly.

Mayby i'm filled wrong keys in registry? or is there an another way to load files automaticaly?

Any hints greatly appreciated

Thank You

Rank: 5Rank: 5


posts: 878

Registered: 2013-5-6

Message 2 of 2

22-10-2013 03:45 . pm   |   View his/her posts only
Reply 1# begizz

void RegisterZrxApp()
// Fill the AppInfo structure with our demand loading details.
AcadAppInfo appInfo;
appInfo.setAppName(_T("SignUi"));// Application Name
appInfo.setModuleName(acedGetAppName());// ARX File Location
appInfo.setAppDesc(_T("SignUi Sample")); // Description
appInfo.setLoadReason( // Specify when we want this to load
AcadApp::kOnCommandInvocation |

appInfo.writeToRegistry(false,true);// Write the AppInfo to the registry, don't write to DBX registry section.
appInfo.writeGroupNameToRegistry(_T("ZSDK_SIGN")); // Write the Group Name
appInfo.writeCommandNameToRegistry(_T("SIGN"),_T("SIGN"));// Write our command.
See also