Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Reply
Message 1 of 5
Anonymous
120 Views, 4 Replies

Loading

what is the best way of keeping macros at hand but and not use memory on it
until they are needed.

(Like the autoload - feature for Autolisp)


Dagsvik
4 REPLIES 4
Message 2 of 5
Anonymous
in reply to: Anonymous

I use things like this:

In the file ACAD.LSP:

(defun c:te ()(if (not (c:test)(load "TEST")(c:test))

1) the Autolisp file name is TEST.LSP
2) the line command is TEST (defun c:test () ..........)
3) TEST.LSP is in the search path
4) TE is not already defined in ACAD.PGP or elsewhere

I prefer 2 letter short cuts using left hand keys only leaving your right
hand for the mouse. My preference.


-David

"Dagsvik" wrote in message
news:5C122ED73FCA8A846C382A5469CB447E@in.WebX.maYIadrTaRb...
> what is the best way of keeping macros at hand but and not use memory on
it
> until they are needed.
>
> (Like the autoload - feature for Autolisp)
>
>
> Dagsvik
>
>
Message 3 of 5
Anonymous
in reply to: Anonymous

Sounds great. That would be my preference to.

I'll use it on some of our Lisp-routines
Can I do the same thing with visual basic-macros?





Dagsvik






David Bethel skrev i
meldingsnyheter:20E3BB841AF8776EA01E4D5AC0292F1D@in.WebX.maYIadrTaRb...
> I use things like this:
>
> In the file ACAD.LSP:
>
> (defun c:te ()(if (not (c:test)(load "TEST")(c:test))
>
> 1) the Autolisp file name is TEST.LSP
> 2) the line command is TEST (defun c:test () ..........)
> 3) TEST.LSP is in the search path
> 4) TE is not already defined in ACAD.PGP or elsewhere
>
> I prefer 2 letter short cuts using left hand keys only leaving your right
> hand for the mouse. My preference.
>
>
> -David
>
> "Dagsvik" wrote in message
> news:5C122ED73FCA8A846C382A5469CB447E@in.WebX.maYIadrTaRb...
> > what is the best way of keeping macros at hand but and not use memory on
> it
> > until they are needed.
> >
> > (Like the autoload - feature for Autolisp)
> >
> >
> > Dagsvik
> >
> >
>
>
Message 4 of 5
Anonymous
in reply to: Anonymous

The Autoload in AutoCAD works too.
(AutoLoad "LispFile" '("Command"))

It's really good if there is more there one command in the lisp also
(AutoLoad "LispFile" '("Command1" "Command2" "Command3"))

It also works the same for Arx.
(autoARXLoad "ArxFile" '("Commnad"))

And for VLX files just add the VLX extension.
(autoload "VLXfile.VLX" '( "Command1"" Command2"))

Just another option in the a world of lisp.

Lawrence


"Dagsvik" wrote in message
news:5C122ED73FCA8A846C382A5469CB447E@in.WebX.maYIadrTaRb...
> what is the best way of keeping macros at hand but and not use memory on
it
> until they are needed.
>
> (Like the autoload - feature for Autolisp)
>
>
> Dagsvik
>
>
Message 5 of 5
Anonymous
in reply to: Anonymous

thanks

hd
Lawrence skrev i
meldingsnyheter:525106325A7D35A1184C05AB37F1E7ED@in.WebX.maYIadrTaRb...
> The Autoload in AutoCAD works too.
> (AutoLoad "LispFile" '("Command"))
>
> It's really good if there is more there one command in the lisp also
> (AutoLoad "LispFile" '("Command1" "Command2" "Command3"))
>
> It also works the same for Arx.
> (autoARXLoad "ArxFile" '("Commnad"))
>
> And for VLX files just add the VLX extension.
> (autoload "VLXfile.VLX" '( "Command1"" Command2"))
>
> Just another option in the a world of lisp.
>
> Lawrence
>
>
> "Dagsvik" wrote in message
> news:5C122ED73FCA8A846C382A5469CB447E@in.WebX.maYIadrTaRb...
> > what is the best way of keeping macros at hand but and not use memory on
> it
> > until they are needed.
> >
> > (Like the autoload - feature for Autolisp)
> >
> >
> > Dagsvik
> >
> >
>
>

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

Post to forums  

Autodesk Design & Make Report

”Boost