Jump to content

Recommended Posts

Posted

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.

Posted

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?

Posted

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

Posted

CELTYPE [Command Reference: ACR]

CELTYPE

Type: String

Saved in: Drawing

Initial value: "ByLayer"

Sets the linetype of new objects.

Question of the curious: Do you start with a template?
Posted

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.

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

Posted
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?

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...