Hi,
i have added a LISP in startup suite to automatically enable the command in start of Autocad. But, when i restart the Autocad, it is not working eventhough the specific LISP is available in start up suite. Kindly provide solution to enable the LISP from starting itself so that i need not to upload the LISP in every drawing.
As ACAD.LSP and ACADDOC.LSP are loaded from the server in my company, i have no access to add this LISP on the server. I have only option of adding in startup suite. But, when i checked the same in my colleagues systems, it is working fine.
Suresh
Hi,
what happens if you load it manually, any messages in the command line?
If you are running on release 2014 have you verified that the path, where this lisp file is stored, is listed under trusted paths in the options?
BTW: i would remove the brackets from the filename.
>> But, when i checked the same in my colleagues systems, it is working fine.
What is the difference between your system and the others?
AutoCAD type, release, servicepack, operating system, antivirus software or settings ...
- alfred -
Hi Alfred,
If i load it manually (i have understood that by AP command and upload LISP) it is working fine. My problem is if i do by ordinary method, i need to add this LISP for every drawing and every day. If i add this in startup suite, i can load one time and it will be available whenever i open Autocad. But, through startup suite it is not working.
My colleagues system and mine are same configuration. Autocad Mechanical 2012 and 64 bit operating system.
Suresh
Hi,
compare your settings for the sysvar ACADLSPASDOC (>>>details<<<)
And another try: start AutoCAD with right-click and option "start as administrator" ==> assign the the lisp to the startup suite, then restart AutoCAD as you do it normally and see if it's now loaded.
Again: I would remove the brackets from the filename!
- alfred -
Hi Alfred,
Thanks for your idea.
I tried by run as administrator and setting the system variable.
Also, i removed the bracket in the file name.
Beyond that, we reinstall the setting profiles.
But, it is not working. When i checked related articles in other forums, it has been mentioned that startup suite is having its own problem and it needs to be fixed by Autodesk.
So, i have decided to wait.
Suresh
Same thing happens to me. I read that you can create an ACADDOC.lsp file to load it for you everytime.
(load "C:\\Program Files\\Autodesk\\AutoCAD 2014\\Support\\LISPs\\Background_Mask")
This is an example of my routine. This might help you ... however, in my case I think I did something wrong in the Lisp Routine itself and it is not even loading with ACADDOC.lsp ... any suggestions will be appreciated.
start of Scale_Match.lsp (defun C:SM ( / anno-v ent dict sc-list) (setq anno-v (getvar "ANNOALLVISIBLE")) (setvar "ANNOALLVISIBLE" 1) (if (= (getvar "CVPORT") 1) (princ "\nIn Paperspace. ") (if (and (setq ent (car (entsel))) (setq dict (cdr (assoc 360 (entget ent)))) (setq dict (dictsearch dict "AcDbContextDataManager")) (setq dict (dictsearch (cdr (assoc -1 dict)) "ACDB_ANNOTATIONSCALES")) ) (progn (foreach n dict (if (= (car n) 350) (setq sc-list (cons (cdr (assoc 300 (entget (cdr (assoc 340 (entget (cdr n))))))) sc-list) ) ) ) (if (member (getvar "CANNOSCALE") sc-list) (princ (strcat "\nScale " (getvar "CANNOSCALE") " is already current.")) (if sc-list (princ (strcat "\nScale " (setvar "CANNOSCALE" (car (reverse sc-list))) " set current. " ) ) (princ "\nObject selected no longer annotative. ") ) ) ) (princ "\nNo annotative object selected. ") ) ) (setvar "ANNOALLVISIBLE" anno-v) (command "_.regenall")) (princ) )
It loads for one day but it says ...
Command: Error: extra right paren on input
Somewhere it has an extra parenteshis and want to know where cause I cannot see it 😕 Please help, thanks.
Ok I think I found a solution ...
1) DELETE everything in the Startup Suite from the Load/Unload Applications dialog box
2) Create an ACADDOC.lsp with your lisp routines ... in this case this is what I have ...
(load "C:\\Program Files\\Autodesk\\AutoCAD 2014\\Support\\LISPs\\Background_Mask") (load "C:\\Program Files\\Autodesk\\AutoCAD 2014\\Support\\LISPs\\BR1") (load "C:\\Program Files\\Autodesk\\AutoCAD 2014\\Support\\LISPs\\EDMLT") (load "C:\\Program Files\\Autodesk\\AutoCAD 2014\\Support\\LISPs\\LineSum") (load "C:\\Program Files\\Autodesk\\AutoCAD 2014\\Support\\LISPs\\Match_Same_Text") (load "C:\\Program Files\\Autodesk\\AutoCAD 2014\\Support\\LISPs\\MS_ACAD") (load "C:\\Program Files\\Autodesk\\AutoCAD 2014\\Support\\LISPs\\MS_AutoSave") (load "C:\\Program Files\\Autodesk\\AutoCAD 2014\\Support\\LISPs\\MS_Blocks") (load "C:\\Program Files\\Autodesk\\AutoCAD 2014\\Support\\LISPs\\MS_Fasteners") (load "C:\\Program Files\\Autodesk\\AutoCAD 2014\\Support\\LISPs\\MS_Scales") (load "C:\\Program Files\\Autodesk\\AutoCAD 2014\\Support\\LISPs\\MS_Sealants") (load "C:\\Program Files\\Autodesk\\AutoCAD 2014\\Support\\LISPs\\Same_Cannoscale") (load "C:\\Program Files\\Autodesk\\AutoCAD 2014\\Support\\LISPs\\Scale_Match") (load "C:\\Program Files\\Autodesk\\AutoCAD 2014\\Support\\LISPs\\Stl")
3) Shut down AutoCAD and Relaunch it.
4) Run a test on each lisp that you have in your ACADDOC.lsp
In this case my Scale_Match and Stl lisps were not working
5) Add the lisps that were not running into the Startup Suite
In my case I added the Scale_Match and Stl lisps only
Hope this helps. I am not an expert in Lisps but I am trying to learn more. If you have any suggestions please email me at joshua_marroquin2002 at yahoo dot com