Jump to content

Automatic Loading of .DLL files etc


Emily_83

Recommended Posts

I just tested it on a dll and it loaded fine.

 

(defun-q DLLSTART (/)
        (and (findfile "PolylineEdit.dll")
             (command "_.netload" "PolylineEdit.dll")))

(setq S::STARTUP (append S::STARTUP DLLSTART))

 

All else, just stick (command "_.netload" "blah.dll") in your acaddoc.lsp. It doesn't have to be part of the SS:Startup.

Link to comment
Share on other sites

  • Replies 24
  • Created
  • Last Reply

Top Posters In This Topic

  • Emily_83

    9

  • Lee Mac

    7

  • SteveK

    5

  • alanjt

    3

Popular Days

Top Posters In This Topic

ok the only ones that work for me are SteveK's first one he supplied and your one just then if all else failed

 

(command "_.netload" "blah.dll")

 

never mind, i have it working and want to thank you all :-D

happy days

Link to comment
Share on other sites

ok the only ones that work for me are SteveK's first one he supplied and your one just then if all else failed

 

(command "_.netload" "blah.dll")

 

never mind, i have it working and want to thank you all :-D

happy days

:thumbsup: Hoo-ray!

Link to comment
Share on other sites

This works for me ..... a simple autoload defined in the partial menu MNL

only loads the .NET dll when needed, so startup time in minimised ( similar to demand loading)

(defun c:CMD1 ()
 ;;// Codehimbelonga kwb@theSwamp 20070509
 ;;(findfile  "F:\\_VS2008Projects\\Projects\\ACAD-Managed\\CsMgdAcad-ColorLab\\bin\\Release\\CsMgdAcad-ColorLab.dll")
 (command
   "_NETLOAD"
   "F:\\_VS2008Projects\\Projects\\ACAD-Managed\\CsMgdAcad-ColorLab\\bin\\Release\\CsMgdAcad-ColorLab.dll"
 )
 (command "CMD1")
)

Command: cmd1

Concept Code For AC2008, MSVS2005 :: kwb@theSwamp 20070509 ->> ...

Command: CMD1

 

Regards

Kerry

 

 

re-posted from theSwamp

Link to comment
Share on other sites

Thanks for sorting through this guys - (yes I did go to bed - was past midnight here..) :P

 

I'm glad you got it working in the end Emily, and thanks for your patience :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...