.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

startup Sub

2 REPLIES 2
Reply
Message 1 of 3
Amremad
291 Views, 2 Replies

startup Sub

hello every one.

 

how can i make a sub can load automaticlly when autocad open (load at startup)

2 REPLIES 2
Message 2 of 3
_gile
in reply to: Amremad

Hi

 

I'm not certain to uderstand what you mean with: "a sub can load automaticlly when autocad open".

 

If you want tour DLL to be loaded at startup, you can use the AutoLoader (since A2012) or register your apllication.

 

if you want some code to be run at startup, see the IExtensionApplication interface.



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

Message 3 of 3
Amremad
in reply to: Amremad

    Implements IExtensionApplication
    Public Sub Initialize() Implements IExtensionApplication.Initialize
        MsgBox("Initialize")
    End Sub

 i found my solution

 

but  the terminate sub doesn't work

   Public Sub Terminate() Implements IExtensionApplication.Terminate
        MsgBox("Terminate")
    End Sub

 

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost