Thursday, March 05, 2009

Add Command Alias

Open the the following file:

C:\program files (x86)\AutoCAD Civil 3D 2009\Support\acad2009.lsp

Add the lisp to the file:


Open the following file:

C:\Users\MicrosoftExcel\AppData\Roaming\Autodesk\C3D 2009\enu\Support\acad.pgp

Add the following to the end of the file:


Close Civil 3D if open, then reopen.

Not sure why it repeats the command though.


1 comment:

Brent said...

"Not sure why it repeats the command though."

Remember that a LISP function always returns the value of the last evaluation performed by the function. In this case, the last evaluation is the vla-vbarun, which returns the name of the macro. Just add a (princ) after the vla-vbarun to prevent the command line echo.


Blog Widget by LinkWithin