Jump to content

Recommended Posts

Posted

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.

Posted

sorry!! I meant to put this in the autocad section.

Posted

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

Posted
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

Posted

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.

Posted
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 =(

Posted

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.

Posted

Also, just to clarify,

 

bear in mind that if specified, the [onfailure] argument needs to be a string:

 

i.e.

 

(load "ACADDOC2" "Load Failed")

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...