Coosbaylumber Posted January 1, 2009 Posted January 1, 2009 I need a bit of LISP help. Not too familiar with it, but am getting annoyed at the instance when each time I open up drawng, all lines are in common CONTINOUS type of linetype instead of BYLAYER. I then have to go though the change properties and hope it holds. Had been told to insert a little one line phrase into the ACAD.lsp file, but after doing so, I keep getting error messages, and it refuses to load up everything. Just what line should be added to the ACAD.LSP file in order to always set the new linetype to BYLAYER once I get going and laying on lines? Here is what I got in the ACAD.LSP file so far.... (defun S::STARTUP() (setvar "MIRRTEXT" 0) (setvar "DIMCLRT" 256) (setvar "COORDS" 0) (setvar "MAXSORT" 240) ) Wm. Quote
dbgeek Posted January 2, 2009 Posted January 2, 2009 Do you want to change all lines in the drawings you are opening or just set BYLAYER to default so any new lines will be BYLAYER? Quote
ASMI Posted January 2, 2009 Posted January 2, 2009 (setvar "CELTYPE" "CONTIN[color="Red"]U[/color]OUS") But you should to use ACADDOC.LSP file not ACAD.LSP file because it works one time only after AutoCAD starts. But ACADDOC.LSP works with every drawing opens. If ACADDOC missed create it with the Notepad. Quote
Lee Mac Posted January 2, 2009 Posted January 2, 2009 This link will help you out in the future: http://www.74mph.com/faq/FAQ00066.html Quote
totzky Posted January 2, 2009 Posted January 2, 2009 CELTYPE [Command Reference: ACR] CELTYPEType: String Saved in: Drawing Initial value: "ByLayer" Sets the linetype of new objects. Question of the curious: Do you start with a template? Quote
Coosbaylumber Posted January 2, 2009 Author Posted January 2, 2009 Geek.... I may not have made myself clear, but essentially every "new" line I place after opening up the little drawing file I need to be set for BYLAYER. Anything that is on that drawing at the time of opening, shall remain as it. If one line gets bleeped off, and then replaced by a new one, I then want the new one to have a linetype BYLAYER. Otherwise I will alter the existing one, which seems remote. The ACAD.LSP file loads in and opens up for every single drawing on the hard drive. Back when it was created, the default setting for Mirror, was such that text would also get mirror'd and then not be readable upon the plotter. Thus I would like to add in "Whatever" new to the same .LSP file as a simple sentence. I know about the ACADDOC type files, but kept getting error messages, so remainded with the ACAD.LSP type style. Wm. Quote
ASMI Posted January 2, 2009 Posted January 2, 2009 The ACAD.LSP file loads in and opens up for every single drawing on the hard drive. If only ACADLSPASSDOC variable equals 1. But initial value for this variable equals 0 and ACAD.LSP work for first file only. But function S::STARTUP works for every file opening. Quote
Lee Mac Posted January 2, 2009 Posted January 2, 2009 If only ACADLSPASSDOC variable equals 1. But initial value for this variable equals 0 and ACAD.LSP work for first file only. But function S::STARTUP works for every file opening. Sorry to sound petty, but is it not ACADLSPASDOC? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.