Ad

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:

image

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:

image

Close Civil 3D if open, then reopen.

Not sure why it repeats the command though.

image

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.

LinkWithin

Blog Widget by LinkWithin

Ad