Visual LISP, AutoLISP and General Customization

Visual LISP, AutoLISP and General Customization

Reply
*Hobson, Bryon S.
Message 1 of 5 (74 Views)

Where to insert my lsp

74 Views, 4 Replies
01-26-2000 11:28 AM
Ok, I have written a lsp routine. where and how do put it so it will
work in Autocad 14. What file do I edit, or how is it done? I know I
have to define it somewhere so that Autocad will see it.
*Bell, R. Robert
Message 2 of 5 (74 Views)

Re: Where to insert my lsp

01-26-2000 12:04 PM in reply to: *Hobson, Bryon S.
Not really. At the Command: prompt type this:

(load "c:/myfolders/mylispfile")

Notice the use of the forward slash "/", not the backslash "\". To use your
lisp program, type the function name, e.g. if you used (defun C:MyProg . .
., just type MyProg. If you used (defun MyProg . . ., you need to type
(MyProg).

--
R. Robert Bell, MCSE
Network Administrator (or, Modern-day Wizard)
(remove the "not." in my address for direct e-mail)

Bryon S. Hobson wrote in message
news:388F4AD6.68262B20@mindspring.com...
> Ok, I have written a lsp routine. where and how do put it so it will
> work in Autocad 14. What file do I edit, or how is it done? I know I
> have to define it somewhere so that Autocad will see it.
*Richardson, Randy
Message 3 of 5 (74 Views)

Re: Where to insert my lsp

01-26-2000 12:10 PM in reply to: *Hobson, Bryon S.
Go to "Tools" on the menu bar. From there, go to "Load Applications..."
Then, select "File" to browse for your LISP routine.

You can also load a LISP routine from the command line by typing

(load "mylisp")

substituting the name of your LISP routine. If you haven't placed it in
your current directory, and if it isn't in a directory searched as defined
by the "preferences" command, you can add the pathname thusly:

(load "c:\\lispdir\\mylisp")

or

(load "c:/lispdir/mylisp")

There are also ways to make LISP routines load automatically when you start
a drawing, or to make them available from a menu or toolbar.
*Chung, Jaehun
Message 4 of 5 (74 Views)

Re: Where to insert my lsp

01-26-2000 11:01 PM in reply to: *Hobson, Bryon S.
Byron
Two ways of auto-loading methods exist with r14.
1. Copy to clipboard your lisp routine and paste it to acad.lsp...
Then the routine will be automatically loaded everytime and you can use
C:xxx function
at command line without (load "~~~.lsp").
2. Copy and paste it to your_custom_menu.mnl.

"Bryon S. Hobson" wrote in message
news:388F4AD6.68262B20@mindspring.com...
| Ok, I have written a lsp routine. where and how do put it so it will
| work in Autocad 14. What file do I edit, or how is it done? I know I
| have to define it somewhere so that Autocad will see it.
*Kenewell, Phil
Message 5 of 5 (74 Views)

Re:

01-27-2000 08:17 AM in reply to: *Hobson, Bryon S.
You can also drag and drop an AutoLISP program from Explorer into the
AutoCAD window. Just giving in another method :-)

--
Phillip Kenewell
CAD Systems Technician
Air Gage Company
pkenewell@airgage.com
===================
> Not < a Member of the AutoDESK
Discussion Forum Moderator Program
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.