Jump to content

Load Lisp


Madruga_SP

Recommended Posts

Hi guys!

I've loaded my lisps through Appload command.

 

But some lisps didn't load in my autocad 2014.

So I'm trying to load them through ACADDOC.lsp file.

But couldn't do it. Maybe you can help em out.

It is just simple my friends, the lisps are in this path :"C:\Program Files\Autodesk\AutoCAD 2014\Support\autolisp"

the lisp's names are rrt.lsp, ocl.lsp and stm.lsp

Help me please, I don't know what to do.

 

Thank in advance

Link to comment
Share on other sites

Be sure that the path "C:\Program Files\Autodesk\AutoCAD 2014\Support\autolisp" is in Options > Support Files Search Paths.

In your ACADDOC.lsp (or acad.lsp) write lines:

(load "rrt") (load "ocl") (load "stm")

Link to comment
Share on other sites

acad2014.lsp

;;;
;;;  Use of this software is subject to the terms of the Autodesk license 
;;;  agreement provided at the time of installation or download, or which 
;;;  otherwise accompanies this software in either electronic or hard copy form.
;;;
;;;
;;;
;;;    Note:
;;;            This file is normally loaded only once per AutoCAD session.
;;;            If you wish to have LISP code loaded into every document,
;;;            you should add your code to acaddoc.lsp.
;;;
;;;    Globalization Note:   
;;;            We do not support autoloading applications by the native 
;;;            language command call (e.g. with the leading underscore
;;;            mechanism.)

(if (not (=  (substr (ver) 1 11) "Visual LISP")) (load "acad2014doc.lsp"))
(load "rrt") (load "ocl") (load "stm")

;; Silent load.
(princ)

 

Didn't work.

What's wrong?

Link to comment
Share on other sites

Note:

;;; This file is normally loaded only once per AutoCAD session.

;;; If you wish to have LISP code loaded into every document,

;;; you should add your code to acaddoc.lsp.

 

Put (load "rrt") (load "ocl") (load "stm") in acaddoc.lsp, not acad2014doc.lsp.

Be sure that all your lsp files is in "C:\Program Files\Autodesk\AutoCAD 2014\Support\autolisp" path and tell CAD know where to find them by putting this path in Options > Files > Support File Search Path > Add if there isn't.

Link to comment
Share on other sites

There isn't acaddoc.lsp file in AutoCAD2014\Support

 

There are acad2014.lsp and acadinfo.lsp.

 

I don't know what to do...

Link to comment
Share on other sites

just create acaddoc.lsp in support.

The add that line:

(load "rrt") (load "ocl") (load "stm")

 

right?

Link to comment
Share on other sites

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...