damob23 Posted March 2, 2009 Posted March 2, 2009 Hiya guys, I want to install the mesh to solid lisp function. I have the code for the m2s function. How do I got about install it, do I use lspsurf, or just put the lsp file in certain directories and then its available? A low down on the procedure would be much appreciated. Quote
damob23 Posted March 2, 2009 Author Posted March 2, 2009 sorry!! I meant to put this in the autocad section. Quote
Cad64 Posted March 2, 2009 Posted March 2, 2009 I have moved this question to the Lisp section. Please take a few moments and read our thread posting guidelines. Quote
GhostRider Posted March 2, 2009 Posted March 2, 2009 damob23, it's not too difficult to load lisp file, it's all explained pretty well here: http://www.cadtutor.net/faq/questions/28/How+do+I+use+an+AutoLISP+routine%3F Quote
Lee Mac Posted March 3, 2009 Posted March 3, 2009 Another thing, (not sure it is covered in the link provided by GhostRider), is that if you want to have the LISP loaded everytime you open ACAD - either 1) Put it in the Start-up Suite within the Load Application Window. Or 2) (Much more reliable) Make a call to load the LISP in the ACADDOC.lsp file, which will load everytime a new drawing session is started. Hope this helps Lee Quote
TimZilla Posted March 4, 2009 Posted March 4, 2009 Another thing, (not sure it is covered in the link provided by GhostRider), is that if you want to have the LISP loaded everytime you open ACAD - either 1) Put it in the Start-up Suite within the Load Application Window. Or 2) (Much more reliable) Make a call to load the LISP in the ACADDOC.lsp file, which will load everytime a new drawing session is started. Hope this helps Lee What do I type in to have it load everytime the drawing is started, im sick of reloading some of these lisps im messing with Quote
Lee Mac Posted March 4, 2009 Posted March 4, 2009 Well, the quickest way to do it would be to go to "load application" (_appload in command line), and add it to the startup suite. But for a more reliable approach, either find the ACADDOC.lsp in your ACAD search path, or create your own; and add something like: (load "filename" [onfailure]) where filename is the filename of the LISP file. The filename string does not need to have an extension, and ACAD will try .vlx .fas then .lsp when trying to load the file (if found). the onfailure string is not necessary, but I would recommend providing it, so that you know when a LISP file hasn't loaded correctly. Quote
TimZilla Posted March 4, 2009 Posted March 4, 2009 Well, the quickest way to do it would be to go to "load application" (_appload in command line), and add it to the startup suite. But for a more reliable approach, either find the ACADDOC.lsp in your ACAD search path, or create your own; and add something like: (load "filename" [onfailure]) where filename is the filename of the LISP file. The filename string does not need to have an extension, and ACAD will try .vlx .fas then .lsp when trying to load the file (if found). the onfailure string is not necessary, but I would recommend providing it, so that you know when a LISP file hasn't loaded correctly. lets say that I have made like 10 new lisp commands that I want people in my company to be able to share. I have a folder on our server named "new tools". I put all of these new lisp files in this folder. I then make a notepad named ACADDOC2.LSP In this file I put all of the files I want it to load so that all a person has to do is copy it and put it in support folder. With that being said (load "filename" [onfailure]) would not work because these files are located on our server and not in a search path. could I type (load "G:\Shared\Design Documents\New Tools\toolname" [onfailure]) I don't think this will work but im sure there is a way. yeah I just tried this it didn't work =( Quote
Lee Mac Posted March 4, 2009 Posted March 4, 2009 The search path can be whatever you like: Go to "Tools" > "Options" > "Files" (tab) > "search path... And you can make the folder on your server part of the ACAD search path. Quote
Lee Mac Posted March 4, 2009 Posted March 4, 2009 Also, just to clarify, bear in mind that if specified, the [onfailure] argument needs to be a string: i.e. (load "ACADDOC2" "Load Failed") Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.