Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

run lisp on start

33 REPLIES 33
Reply
Message 1 of 34
Anonymous
531 Views, 33 Replies

run lisp on start

I need to run a lisp routine on autocad start. Anyone knows how to do it?? i think that i have to add the lisp routine to some configuration file, but i don´t know wich one.
Can someone help me?
Thanks!

Juliano Rocha - Brasil
33 REPLIES 33
Message 21 of 34
Anonymous
in reply to: Anonymous

"SMMASON" wrote in message
news:f13638f.18@WebX.maYIadrTaRb...
> So what you are saying is that your .mnl file is protected from being
updated by other means other than yourself?

If you had a partial menu loaded, called SMMASON.mns, and a corresponding
SMMASON.mnl lisp file, the lisp file gets loaded every time the menu gets
loaded (every time you open a drawing). It is *highly* unlikely that
applying an AutoCAD service pack or patch is going to overwrite a file
called SMMASON.mn_. I think that's the point being made.
Message 22 of 34
Anonymous
in reply to: Anonymous

*IF* it is your own custom menu's .mnl file, yes. Example:
MyMenu.mnc/mns/mnu/mnl.


 

 


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
So
what you are saying is that your .mnl file is protected from being updated by
other means other than yourself?
Message 23 of 34
Anonymous
in reply to: Anonymous

What if the update (from Autodesk) has a
modified Acad2000(Doc).lsp file? Then you are restoring an old file that
replaces the update.

 

 


 

 


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
The
only reason I suggested using the existing ACAD2000DOC over the existing
ACAD2000 lisp the the autoload feature on each drawing. The ACADDOC.lsp
doesn't exist unless you generate it, correct? As far chances of lost file
because of service patch and what-not, aren't you suppose to backup these and
other files prior to doing so?
Message 24 of 34
Anonymous
in reply to: Anonymous

Randy,

In lieu of all this I would like to know the proper route to take to create
my acaddoc.lsp

is it just as simple as adding in my lines of code from all custom lisp
files and saveas acaddoc.lsp

if what you say about the acad2000doc.lsp is true then i have been doing
things the wrong way....

you see i have modified the acad2000doc.lsp to autoload a few custom lisp
routine which i have created........in the section entitled "AUTOLOAD"

I dont really rely on the appload startup suite cause i have had instances
where it did not load the file and I had to go manually reload them......and
it gets very annoying to do this 5x throughout the day..

any and all advice is very much appreciated

"Randy Richardson" wrote in message
news:A547F4C1277D19077D483EE6711FA6DB@in.WebX.maYIadrTaRb...
> Good point. I also prefer to use .mnl files for partial menus to
> automatically run AutoLISP functions at startup. Two or more developers
can
> contribute to the same work station customization without stepping on each
> others' toes.
>
> Randy Richardson
>
>
Message 25 of 34
Anonymous
in reply to: Anonymous

No, just cut and paste the information into the new one. I understand why you would use the .mnl file to do what you want. Enough rethoric already. Lets move on to other topics more productive.
Message 26 of 34
Anonymous
in reply to: Anonymous

Yes it is that simple. However, with the MRU bug, it is better to have the
code in your customized menu's .mnl file.

--
R. Robert Bell, MCSE
www.AcadX.com


"k. hesse" wrote in message
news:06A4028EB08401AFE962E12A553DE2BA@in.WebX.maYIadrTaRb...
| Randy,
|
| In lieu of all this I would like to know the proper route to take to
create
| my acaddoc.lsp
|
| is it just as simple as adding in my lines of code from all custom lisp
| files and saveas acaddoc.lsp
|
| if what you say about the acad2000doc.lsp is true then i have been doing
| things the wrong way....
|
| you see i have modified the acad2000doc.lsp to autoload a few custom lisp
| routine which i have created........in the section entitled "AUTOLOAD"
|
| I dont really rely on the appload startup suite cause i have had instances
| where it did not load the file and I had to go manually reload
them......and
| it gets very annoying to do this 5x throughout the day..
|
| any and all advice is very much appreciated
|
| "Randy Richardson" wrote in message
| news:A547F4C1277D19077D483EE6711FA6DB@in.WebX.maYIadrTaRb...
| > Good point. I also prefer to use .mnl files for partial menus to
| > automatically run AutoLISP functions at startup. Two or more developers
| can
| > contribute to the same work station customization without stepping on
each
| > others' toes.
| >
| > Randy Richardson
| >
| >
|
|
Message 27 of 34
Anonymous
in reply to: Anonymous

That's unnecessary, extra work. Administration is suppose to be a very lazy
job once setup correctly. If you don't have to do extra work, don't do it.
Do not ever edit the acad2000doc and acad2000 files, create an acaddoc.lsp
or acad.lsp and edit those or create your own partial menu and load that,
never edit the menus that come with Autocad.

Also, put all of your customizations in your own support directory.

If you follow those simple guidlines upgrading autocad is as simple as
adding that 1 support path to Autocad and you are done. No cutting and
pasting, no worrying about loosing toolbars, nothing.

--
Kevin Nehls


"SMMASON" wrote in message
news:f13638f.23@WebX.maYIadrTaRb...
> No, just cut and paste the information into the new one. I understand why
you would use the .mnl file to do what you want. Enough rethoric already.
Lets move on to other topics more productive.
>
Message 28 of 34
Anonymous
in reply to: Anonymous

exactly! thanks!

The only thing I do is add a line to ACAD.mnl which does a menuload of the
partial.mnu
I think I know how to recover that much, if I truly destroy it... but the
partial_menu.mnl has a copy of that line... so it's even easier to recover!


"adam.w" wrote in message
news:47EF43533BCD0CF2C160A8B05610BBBE@in.WebX.maYIadrTaRb...
>
> "SMMASON" wrote in message
> news:f13638f.18@WebX.maYIadrTaRb...
> > So what you are saying is that your .mnl file is protected from being
> updated by other means other than yourself?
>
> If you had a partial menu loaded, called SMMASON.mns, and a corresponding
> SMMASON.mnl lisp file, the lisp file gets loaded every time the menu gets
> loaded (every time you open a drawing). It is *highly* unlikely that
> applying an AutoCAD service pack or patch is going to overwrite a file
> called SMMASON.mn_. I think that's the point being made.
>
>
Message 29 of 34
Anonymous
in reply to: Anonymous

> The only thing I do is add a line to ACAD.mnl which does a menuload of the
> partial.mnu
> I think I know how to recover that much, if I truly destroy it... but the
> partial_menu.mnl has a copy of that line... so it's even easier to
recover!

That's good policy.
Message 30 of 34
Anonymous
in reply to: Anonymous

Just a question here. Why can't you load in your custom lisp routine from the acad2000.lsp ?? What is the harm.
Message 31 of 34
Anonymous
in reply to: Anonymous

No real harm. Again, you just run the risk of that file being written over
by autodesk on an update or upgrade. Then you've got to remember to edit
that file again.

If you do something similar to what I laid out previously not only are all
of your customizations in 1 location for very easy backup and restore, you
only need to edit 1 thing when you install autocad. Of course you can go a
little farther by making a custom profile, but to get up and running you
only need to add that support path and you're done.

--
Kevin Nehls


"jclaidler" wrote in message
news:f13638f.28@WebX.maYIadrTaRb...
> Just a question here. Why can't you load in your custom lisp routine from
the acad2000.lsp ?? What is the harm.
>
Message 32 of 34
Anonymous
in reply to: Anonymous

I only have to change the acad2000.lsp in every machine right now. In that my main custom lisp program is loaded in.
Message 33 of 34
Anonymous
in reply to: Anonymous

I am coming in at the tail end of this post but I
thought I would just add that a custom menu system is more easily transferred
(in case you change jobs).  Some companies won't let you take files from
them.  My old company had there own custom menus and when an employee left
and tried to take there menu (which he customized with his own stuff) they
wouldn't hear of it.  I find that the custom menu system works alot
better.  Just my $.02


--
=================================
Timothy Spangler

 

"Learn from the mistake of others, You can't
live long enough to make
them all yourself"

 

WinXP Pro
Acad 2002
=================================


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
Just
a question here. Why can't you load in your custom lisp routine from the
acad2000.lsp ?? What is the harm.
Message 34 of 34
Anonymous
in reply to: Anonymous

We have custom menus and lisp routines.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost