.NET

Reply
Mentor
Amremad
Posts: 217
Registered: ‎08-24-2010
Message 1 of 3 (162 Views)

startup Sub

162 Views, 2 Replies
04-09-2013 01:20 AM

hello every one.

 

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

*Expert Elite*
_gile
Posts: 2,125
Registered: ‎04-29-2006
Message 2 of 3 (143 Views)

Re : startup Sub

04-09-2013 05:15 AM 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
Mentor
Amremad
Posts: 217
Registered: ‎08-24-2010
Message 3 of 3 (141 Views)

Re: startup Sub

04-09-2013 05:21 AM 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

 

 

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.