Anuncios

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

Kent1Cooper
en respuesta a: Anonymous


@Anonymous wrote:

....  Had to run the APPLOAD command and add the lisp to the list that needs loaded when AutoCAD loads.  .... 


I was going to advise against doing it that way, because as I recall from many years back [and it's still described this way in Help], what's in the Startup Suite in APPLOAD would load when AutoCAD is started, but not  upon opening every drawing thereafter.  But that must have changed, because I find that now a custom definition like that, listed in the Startup Suite, does "stick" and is available in subsequently-opened drawings.  That was at least worth finding out.

 

But I have a suggestion.  Do it by way of an acaddoc.lsp file anyway, instead of the Startup Suite, and put that command-defining file into an (autoload) function [read about it in the AutoLisp Function Reference].  That way, the file defining it won't  be loaded unless  and until  you ask for that command.  So if in a given drawing session you never has a use for that command, it won't ever bother to load the file.  This approach could have a noticeable effect on drawing-opening times if [when?] you accumulate a large number of such custom commands.

Kent Cooper, AIA