.NET

Reply
Contributor
lcowell
Posts: 11
Registered: ‎03-17-2011
Message 1 of 5 (348 Views)

Autoload DLLs

348 Views, 4 Replies
07-13-2011 02:28 PM

I currently have a collection of DLLs, one has the ACad interface stuff to abstract most development away from AutoCAD and another as the main application. My problem is I have the Main app autoloading but it doesn't actually start until I type in a command from my commands. Then it initializes my IExtensionApplication.

 

Is there anyway to go about doing that automatically so I don't have to run a command?

Valued Contributor
celsoven
Posts: 80
Registered: ‎06-25-2009
Message 2 of 5 (342 Views)

Re: Autoload DLLs

07-13-2011 02:58 PM in reply to: lcowell

Hello

 

Close AutoCAD

 

Open Acaddoc.lsp file (it must exists in the path that you installed your application)

 

and  in the end of file write:

 

(c:commandDLL)

 

for example

(c:qsave)

(c:WhateverCommandMadeInDLL)

 

Save and close the file and that's it

 

Every time you opend AutoCAD it executes your dll's

 

 

Contributor
lcowell
Posts: 11
Registered: ‎03-17-2011
Message 3 of 5 (334 Views)

Re: Autoload DLLs

07-13-2011 03:05 PM in reply to: celsoven

I don't have the script right now I'me running from VS debugger and the reg pointer is currently to that .dll debug folder.

Valued Contributor
celsoven
Posts: 80
Registered: ‎06-25-2009
Message 4 of 5 (271 Views)

Re: Autoload DLLs

07-18-2011 12:14 PM in reply to: lcowell

It doesn't matters, if you put the following lines

(c:NameCommand)

in the file Acaddoc.lsp

 

When you're debugging your application from Visual Studio the command executes immediatly.

 

good luck

Contributor
lcowell
Posts: 11
Registered: ‎03-17-2011
Message 5 of 5 (267 Views)

Re: Autoload DLLs

07-18-2011 12:15 PM in reply to: celsoven

I got it what I wanted to do, I changed one of the reg values to autoload and execute it to get me extension to display on startup.

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
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 to get help installing your software.

Ask the Community