CaveMan Posted August 27, 2012 Posted August 27, 2012 Good Day Often when developing a .net application for AutoCAD one can add the "netload" command in the acaddoc.lsp file, and enable load acad.lsp with every drawing. However at times this does not function, as in Plant 3D, as there are other commands uploading, if a command is run like this it crashes AutoCAD? (vmon) ;------------ (command "netload" "C:\\VB.Net\\Development\\Plant3DHelpDesk\\bin\\Debug\\Plant3DHelpDesk.dll") (command "hd") Is there an alternative method of automatically loading a .Dll application into AutoCAD on startup? Any assistance much appreciated. Have an Idea it may have something to do with creating an .arx file?? Regards Richard Quote
BlackBox Posted April 18, 2013 Posted April 18, 2013 I stumbled upon this thread while looking for something else, and thought I'd answer your question whilst here.... To load the .NET assembly at startup, you should use a Registry Loader for pre-2012 versions, as 2012 and newer support the Autoloader mechanism. Now, the registry loader will simply load your code (make CommandMethods and LispFunctions available, etc.), in order to invoke a method at load, we use the IExtensonApplication.Initialize() Method with an ExtensionApplication Attribute call prior to one's Namespace. This blog post should help. ObjectARX has nothing to do with the loading of .NET assemblies. Cheers Quote
CaveMan Posted April 18, 2013 Author Posted April 18, 2013 Hi There Sometimes a simple Thanks on a screen is not enough. Much appreciate your response, this was still unresolved on my side and value the information passed on. Mate! In Appreciation Richard Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.