Visual LISP, AutoLISP and General Customization

Visual LISP, AutoLISP and General Customization

Reply
Distinguished Contributor
lholland
Posts: 150
Registered: ‎08-15-2007
Message 1 of 4 (306 Views)

ACADDOC.lsp getting ignored by C3D 2012?

306 Views, 3 Replies
02-24-2012 06:18 AM

Total LISP noob here.  Everything I know is from looking at Robert Green and Matt Murphy's AU materials.  

 

It seems that the best way to run a LISP routine is to create an acaddoc.lsp and throw it in C:\Program Files\Autodesk\AutoCAD Civil 3D 2012\Support  which IS in my support file search path.

 

Inside acaddoc.lsp is::

 

(prompt “The ACADDOC.LSP file has loaded.”)

(defun c:TEST ()
(alert “Your LISP loaded!”)
(princ)
)

 

but...on firing up Civil 3D, there is no evidence whatsoever that the lisp loaded and of course my TEST function doesn't work.

 

Do verticals work differently? 

*Expert Elite*
Jeff_M
Posts: 4,231
Registered: ‎07-22-2003
Message 2 of 4 (297 Views)

Re: ACADDOC.lsp getting ignored by C3D 2012?

02-24-2012 06:43 AM in reply to: lholland

acaddoc.lsp works the same in C3D as with vanilla acad.

At the command prompt, type in the following lisp code:

(findfile "acaddoc.lsp")

 

If this returns nil, then something is wrong with the support paths, or the file name. If it returns a path, check to be sure it's the one you expect...there may be another acaddoc.lsp being found.

Jeff_M, also a frequent Swamper
Contributor
edward.winter
Posts: 20
Registered: ‎04-03-2008
Message 3 of 4 (289 Views)

Re: ACADDOC.lsp getting ignored by C3D 2012?

02-24-2012 06:59 AM in reply to: lholland

Drag n drop the attached file.

When loading a new drawin you then should see something like this (F2 window):

 

AutoCAD menu utilities loaded.Hello

 

When you then type TEST it will show:

 

Testing.... in a message box.

Distinguished Contributor
lholland
Posts: 150
Registered: ‎08-15-2007
Message 4 of 4 (284 Views)

Re: ACADDOC.lsp getting ignored by C3D 2012?

02-24-2012 07:03 AM in reply to: edward.winter

That worked great.  Thanks for looking at this.

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community