When you appload a lisp it asks you if you always want to load it or just once. I usually only load always if it's something I constantly use that and I like to make sure a lisp works without problems before I do that too. I have a lisp that I was only loading once, but now I want to load it always. I don't get the dialog box that asks any more however. How to I get it to load always or get the dialog that asks back to pick that option?
I know there is a way to make autocad re-ask you all the questions that you checked the box for don't ask this again. I can not for the life of me find where that is or find my bookmark that talks about that. I know I have done it before when I was fixing my geo maps issue.
I thought those were it, but I can't get them to make a difference. On some lisps I get the dialog box in the image below. However I do not get this dialog for the lisp that I want to always load now.
I have a title block with attributes defined. I need to simply change one attribute from one value to another. the attribute tag is the same in all drawings, that tag has the same value, the new value will also be the same in all drawings. Literally, I want to open the drawing then run the lisp and have the attribute tag value change from one thing to another.
There is a perfectly good explanation. I have about 400 of these to do and if I have a simple lisp that I can automatically load with each drawing then I already have the ability to write a script that will open each drawing, in turn, execute the lisp, save the changes and move on to the next drawing. I can start said script at the end of the work day and come in the next morning to 400 corrected drawings. I know this makes little sense to someone with your superior intellect, however, I am a simple Alabama hillbilly and just trying to do the best my white trash heritage will let me do.
I have an Xref which has hundreds of layers, referenced into many of my drawings (not my Xref). Many of these layers I want to freeze/not show in my drawings. I know what each and every one of these layers is called and I'm looking for a lisp where I can copy/paste this list of layers into the body of the code and after loading the lisp, I want to be able to type in "FREEZER" and have all the layers in the code instantly turned off.
.... I know what each and every one of these layers is called and I'm looking for a lisp where I can copy/paste this list of layers into the body of the code and after loading the lisp, I want to be able to type in "FREEZER" and have all the layers in the code instantly turned off.
Hello, I have the same problem that you had described, I just haven't been able to implement it in my drawings. I have a list of multiple layers in an Xref, say that the Xref name is "T-P-PROFILE.dwg" and the layers that I want to freeze in there are named "C-TRACK-CURVE L1" and "C-TRACK-CURVE L2" among many others.. now, I have a list of these in an Excel spreadsheet.. how do I implement your 'solution' with my problem? I'm not familiar with lisp by the way..
- and ultimately, I will need to add this lisp to multiple files which are all different plotsheets, like file1.dwg, file2.dwg, file3.dwg and my thinking is: "ok i need to open each one of these and import the lisp one by one when i want to use it and freeze the layers"... question is, is there a better way to expedite this and not have to open the files one by one and run the lisp one by one?
... I will need to add this lisp to multiple files ...: "ok i need to open each one of these and import the lisp one by one ...." ... is there a better way to expedite this and not have to open the files one by one and run the lisp one by one? ....
I have secureload set to 0, but all the other lisp routines that I call from the acaddoc file load fine. It's only the ones like the one I attached that won't load. I tried changing secureload to 1 but the routines still don't load. Also, the ApplicationPlugins folder is supposed to be a Trusted Folder, so I shouldn't have to set permissions for it.
I have my own lisp folder , c:/temp/lisp and put it on top in my support path and also have my own acad.lsp which load a few routines in the startup. Most routines are loaded though on demand from one of my toolbars in the old way (if (not (c:mylisp))(load "mylisp"))... etc. This way I have the least problems when autocad is re-installed or other stuff IT hits me with.
I can't see anything wrong with the routine a first glance. Maybe commands are evaluated upon load? Try command-s instead of just command? Are other routines still loading from this location and is it just this one? Try ".zoom". Put (princ "\nzoom lisp loaded") as last line. Maybe it is loaded but commands are redefined later?
Tried it in 2017 and added (princ"\nzoomlisp loaded") as very last line and added file to startup suite and it works fine. You could try remove the second "" from c:ZR because that gave me
Command: ZR
Unknown command "ZR". Press F1 for help.
indecating it has one enter to many. Since autocad xx whatever some commands are evaluated a little different and that's when they gave us command-s. To be able to test commands before they are executed.
But so you have a couple of lisp files that are auto-loaded successfully. Remove your zoomlisp from any autoload and add just one of your little zoom defuns to one of those files and see what happens... if that works , add the next...
My $0.05 we have all our lisps on a server and at home in a directory it was just a case of adding the paths and importantly adding trusted paths and it all works for 2016 2018 2019. We do have the file called Autoload.lsp not sure if that makes any difference. On a brand new box just run a lisp that sets all support paths and trusted paths so does in one go. Just find it easier to seperate our and my stuff from Autocad paths. I have not had to add any Command-s to any routines.
The title of my question was misleading. I didn't need to run lisp code silently, I needed to run commands in acad's command line silently. It just happened to be that acad's command line accepts lisp code so that's what I was using.
3a7c801d34