Posts: 216
Registered: ‎08-24-2010
Message 1 of 3 (160 Views)

startup Sub

160 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*
Posts: 2,084
Registered: ‎04-29-2006
Message 2 of 3 (141 Views)

Re : startup Sub

04-09-2013 05:15 AM in reply to: Amremad



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
Posts: 216
Registered: ‎08-24-2010
Message 3 of 3 (139 Views)

Re: startup Sub

04-09-2013 05:21 AM in reply to: Amremad
    Implements IExtensionApplication
    Public Sub Initialize() Implements IExtensionApplication.Initialize
    End Sub

 i found my solution


but  the terminate sub doesn't work

   Public Sub Terminate() Implements IExtensionApplication.Terminate
    End Sub



Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.