Anuncios

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

Kent1Cooper
en respuesta a: keithTZYB5


@keithTZYB5 wrote:

.... 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 ….

 

{\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 ….


 

Include it in your acaddoc.lsp file [or make one with only that in it if you don't have one -- save it to a location in the Support File Search Path list in OPTIONS], and it will be loaded in every drawing.

 

Did you paste it into something like a word-processor  program, or go through Mtext  or something, to save it to a .lsp file?  That looks like font formatting.  Do it in a plain-text editor such as Notepad, and you won't get that extraneous stuff.

Kent Cooper, AIA