Jump to content

Recommended Posts

Posted

Below is the code i have so far. I am trying to draw a polyline on layer "buttlap" at 3" width and then return to my previous width settings and layer. It works but it doesn't return to my previous settings. Can anyone help or give me advice thanks !!

 

;This is the command for DRAWING BUTT LAP LINES

;Created by SAM A MILHOAN 11/19/08

(defun c:BUTT ()

(setq LW (getvar "PLINEWID"))

(setvar "PLINEWID" 3)

(setq CL (getvar "clayer"))

(command ".clayer" "BUTTLAP")

(COMMAND "PLINE")

(setvar "PLINEWID" LW)

(command "clayer" CL)

(princ)

)

Posted

Try it now

;This is the command for DRAWING BUTT LAP LINES
;Created by SAM A MILHOAN 11/19/08
(defun c:BUTT ()
(setq LW (getvar "PLINEWID"))
(setvar "PLINEWID" 3)
(setq CL (getvar "clayer"))
(setvar "clayer" "BUTTLAP")
(COMMAND "PLINE")
(while (> (getvar 'CmdActive) 0) (command pause))
(setvar "PLINEWID" LW)
(command "clayer" CL)
(princ)
)

Posted

THIS WORKS GREAT THANKS A MILLION!!!! THIS FORUM IS AWESOME. I'm trying to learn some lisp and this is really helping.

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