Goodnight. I would like to know how to load subroutines that I have in a directory, so that they only load when executing their command. The initial code is the following:
[COLOR=#666666][FONT=Artifakt];loads all needed subroutines
Code:(vl-load-com) (if (findfile ".\\Subrutinas\\LeeMac") (mapcar '(lambda (x) (if (wcmatch (strcase x) "*.LSP") (load (strcat (findfile ".\\Subrutinas\\LeeMac") "\\" x) ) ;_load ) ;_ if ) ;_ lambda (vl-directory-files (findfile ".\\Subrutinas\\LeeMac") ) ;_ vl-directory-files ) ;_ mapcar ) ;_ if
I tried to change "load" for "autoload", but it does not work. In leemac folder y have three files .lsp.
StrikethroughV1-1.lsp define "strike", "strike2", "strike3", "under", "under2", "overunder2"
cajaenvolvente(minboundingbox).lsp load minboundingbox.lsp.