Visual LISP, AutoLISP and General Customization
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
ACADDOC.ls p getting ignored by C3D 2012?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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?
Re: ACADDOC.ls p getting ignored by C3D 2012?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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.
Re: ACADDOC.ls p getting ignored by C3D 2012?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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.
Re: ACADDOC.ls p getting ignored by C3D 2012?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
That worked great. Thanks for looking at this.
