07-07-2016
09:35 AM
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Denunciar
07-07-2016
09:35 AM
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.