cadd4la
2006-01-30, 09:17 PM
Hi everyone,
I have a few questions on coding and having my code load at start up.
Background:
I use a master .lsp files that has these two examples of code in them for all of the codes that we use.
;;CodeName.lsp
(if (findfile (strcat lisp_path "CodeName.lsp"))
(load (strcat lisp_path "CodeName.lsp"))
)
and
;;CodeName.fas
(if (findfile (strcat lisp_path "CodeName.fas"))
(load (strcat lisp_path "CodeName.fas"))
)
Then in my ACADDOC.lsp file I have this.
(setq lisp_path "Z:\\CustomFiles\\")
(if (findfile (strcat lisp_path "Customfiles.lsp"))
(load (strcat lisp_path "Customfiles.lsp"))
)
I was in a class at AU that the speaker was showing a way to use a Autocom.lsp with the names of all your lisp files and this file will load from a Custom-menu.mnl file that you make.
In this Autocom.lsp all you use is this for each of you codes.
(autoload "CodeName" '("name to run the code"))
Questions:
1.) Is using the AutoCom.lsp file way a faster and/or easiser way to get AutoCAD to startup faster?
2.) When using the AutoCom.lsp I can't get it to run any .FAS files, does anyone know how to make it load .FAS files?
I would ask the speaker these questions but it looks to me that he only gives you one question and I used that up asking him about the things that I didn't need to use in his code example because I don't use ADT.
Thanks,
Kyle C.
I have a few questions on coding and having my code load at start up.
Background:
I use a master .lsp files that has these two examples of code in them for all of the codes that we use.
;;CodeName.lsp
(if (findfile (strcat lisp_path "CodeName.lsp"))
(load (strcat lisp_path "CodeName.lsp"))
)
and
;;CodeName.fas
(if (findfile (strcat lisp_path "CodeName.fas"))
(load (strcat lisp_path "CodeName.fas"))
)
Then in my ACADDOC.lsp file I have this.
(setq lisp_path "Z:\\CustomFiles\\")
(if (findfile (strcat lisp_path "Customfiles.lsp"))
(load (strcat lisp_path "Customfiles.lsp"))
)
I was in a class at AU that the speaker was showing a way to use a Autocom.lsp with the names of all your lisp files and this file will load from a Custom-menu.mnl file that you make.
In this Autocom.lsp all you use is this for each of you codes.
(autoload "CodeName" '("name to run the code"))
Questions:
1.) Is using the AutoCom.lsp file way a faster and/or easiser way to get AutoCAD to startup faster?
2.) When using the AutoCom.lsp I can't get it to run any .FAS files, does anyone know how to make it load .FAS files?
I would ask the speaker these questions but it looks to me that he only gives you one question and I used that up asking him about the things that I didn't need to use in his code example because I don't use ADT.
Thanks,
Kyle C.