Anuncios

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

rkmcswain
en respuesta a: Anonymous

Do not edit that file. Create a new file named "acaddoc.lsp" and put your code in there. For greater flexibility, create a new folder (for example: C:\CADSTUFF) and put your "acaddoc.lsp" file in there, then add this folder to the TOP of your support file search path.

Done.

As for the contents of this file, you can do it like this:

(setq dllFile (strcat MyPath "DGNPurge.dll"))
(if (findfile dllFile)(vl-cmdf "netload" dllFile))


Or you might choose to do something like this (demand load it)

(defun c:myFunc ()
  (vl-cmdf "netload" (strcat DllPath "MyFunc.dll"))
  (vl-cmdf "MyFunc")
)



Doing it this way only loads the DLL if the function is called.

R.K. McSwain     | CADpanacea | on twitter