Anuncios

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

keithTZYB5
en respuesta a: Kent1Cooper

Hi,

 

Many thanks. This works when I load it, but it seems I need to load it every time I want to use it which defeats the purpose. I am assuming that there is a well known way to keep a lisp routine active?

 

When I saved the code as a lsp, the system plonked a bunch of stuff above the code you gave. I don't know if this is required or not, but here it is. I added a zoom extents command to keep things tidy.

 

{\rtf1\ansi\ansicpg1252\deff0\nouicompat\deflang1033{\fonttbl{\f0\fnil\fcharset0 Calibri;}}
{\*\generator Riched20 10.0.16299}\viewkind4\uc1
\pard\sa200\sl276\slmult1\f0\fs22\lang9 (defun C:SvC (); = Save and Close\par
(command "zoom" "e")
(command "_.qsave" "_.close")\par
)\par
}

 

Keith