Jump to content

Recommended Posts

Posted

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

  • 7 months later...
Posted

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

Posted

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.

 

:thumbsup: Mate!

 

In Appreciation

Richard

Posted

:thumbsup: Mate!

 

You're welcome; I'm happy to help. :)

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...