ACAD.LSP
ACAD.LSP is a special file
of AutoCAD. It is automatically loaded as you start a new drawing.
And what is in it, is performed.
Loading
AutoLISP Files
Suppose you have a
program, that you are using all the time. You can specify in the
ACAD.LSP file that that program is loaded.
Add this line to the
ACAD.LSP file:
(load
“-/-----/-----.lsp”)
And the program is loaded
as a new drawing is started. Just enter the name of the AutoLISP
program, to start it.
You can even specify the
complete AutoLISP program in ACAD.LSP. If you do, the AutoLISP
program is load into AutoCAD automatically.
Global
Variables
Maybe you are working with
global variables. That could be variables of your own or AutoCAD. You
can set their value here.
Giving
Information
Or maybe you want to give
information to the user at the start of a new drawing. Have a line
that starts with PRINC.
You could add a line like
this:
(princ
“\n---------------------------”)
IntelliCAD
Maybe you are not working
with AutoCAD. Maybe you are working with IntelliCAD. You will not
find ACAD.LSP in IntelliCAD.
But IntelliCAD has got
ICAD.LSP. In IntelliCAD that file has got the same function as the
ACAD.LSP file in AutoCAD.
Other
AutoCAD Alternatives
There are more
alternatives for AutoCAD. And those alternatives do not have the
ACAD.LSP file. But you can look for a similar file.
In Windows do a search for
LSP. You will see the file that is used as ACAD.LSP is used. Open the
file and see for yourself.
No comments:
Post a Comment