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

Autoload DLLs

4 REPLIES 4
Reply
Message 1 of 5
lcowell
566 Views, 4 Replies

Autoload DLLs

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?

4 REPLIES 4
Message 2 of 5
celsoven
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

 

 

Message 3 of 5
lcowell
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.

Message 4 of 5
celsoven
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

Message 5 of 5
lcowell
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.

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