Hi, In Autocad R14, How do I go ab
Hi, In Autocad R14, How do I go ab
(OP)
Hi,
In Autocad R14, How do I go about making a button for a lisp to add on to the toolbar. Other than typing the lisp in the command line, What I would like to do is to click on the button to activate it. In addition, I've notice that...whenever I open a new drawing I have to highlight and reload the lisps in the load application. What am I doing wrong?, do I have to go to the preferece and add in the support file search path?. Sorry dont know much about lisp...THANKS! in advance.
In Autocad R14, How do I go about making a button for a lisp to add on to the toolbar. Other than typing the lisp in the command line, What I would like to do is to click on the button to activate it. In addition, I've notice that...whenever I open a new drawing I have to highlight and reload the lisps in the load application. What am I doing wrong?, do I have to go to the preferece and add in the support file search path?. Sorry dont know much about lisp...THANKS! in advance.





RE: Hi, In Autocad R14, How do I go ab
(autoload "thisfile" '("thiscommand"))
or
(if (not c:dothis)(load "dothis")) dothis
RE: Hi, In Autocad R14, How do I go ab
tried it but...when I typed the txtalign in the command line, this popped out. "check the installation of the support files and try again.nil"
This where I loaded it:
acadr14.lsp
AutoLoad LISP Applications (autoload "txtalign" '("txtalign"))
thanks for the input!
RE: Hi, In Autocad R14, How do I go ab
(load "c:\\path\\filename.lsp")
K
RE: Hi, In Autocad R14, How do I go ab
(LOAD T:\Foldername\foldername\filename.LSP)
**or**
(LOAD T:\Foldername\filename.LSP)
Depending on where your lisp is at ....
Without the quotes.
At least that how I have some of my buttons setup.
RE: Hi, In Autocad R14, How do I go ab
There is a simple solution for your problem.
Just run the APPLOAD command and click on the Startup Suite
area.
A new dialog box will be opened and you can add lisp
programs to list using the "Add" button. After inserting the desired file name to the list click "Close".
In the Load/Unload Applications dialog box click "Close".
The applications introduced in Startup Suite will be loaded
automatically every time you open/start a drawing.
You need to set the ACADLSPASDOC system variable to 1.
:)
Farzad
RE: Hi, In Autocad R14, How do I go ab
In (acadr14.lsp) this is what I did;
Striker,
;;; ===== AutoLoad lisp applications frank=====
("c:\\Program Files\\AutoCAD R14\\Support\\Franks_lisp\\txtalign.lsp)
Rich@LG,
;;; ===== AutoLoad lisp applications frank=====
(LOAD T:\Franks_lisp\txtalign.lsp)
...OR...
;;; ===== AutoLoad lisp applications frank=====
(LOAD T:Program Files\AutoCAD R14\Franks_lisp\txtalign.lsp)
FH,
R14... I ran the APPLOAD command, But I don't see any Startup Suite. I'm a bit confused.
RE: Hi, In Autocad R14, How do I go ab
I hope you have a "T" drive?!
Becuase I do.
It seems like you have a custom folder under ...
C:\Program Files\AutoCAD R14\Support\Franks_lisp\
If so...
then your button should read ...
(LOAD C:\Program Files\AutoCAD R14\Support\Franks_lisp\txtalign.lsp)
This should work.
Let me know.
The Startup suite comment was meant for AutoCAD 2000 not R14.
RE: Hi, In Autocad R14, How do I go ab
Don't want to add the code to an existing acad.lsp file? Don't want to use an acad.lsp file? That's ok, master all that other stuff, and work out the bugs.Think the "old" acad.lsp file is passe? After all, its functionality is achieved other ways now. Ok. Master all that other stuff and work out the bugs. Acad.lsp is still supported, however. But be careful- approach the post that suggested you reload the lisp command with every button pick is poor practice, and highly suspect. Nowadays our computers have lots more capacity, but still...
Now don't get me wrong, mastering the issues mentioned in previous posts will only benefit you, but sometimes you have to get outside the question to see the answer. I will suggest FARZAD's post as another good starting point.
Good Luck!
RE: Hi, In Autocad R14, How do I go ab
I've also browsed through Afralisp and tried this...which also worked.
(load "txtalign.lsp" "")
Thanks alot you all!