Jump to content

Searching for a lisp to create a new layer coded by LEE


asos2000

Recommended Posts

Lee created a lisp to create layers. I saw it but didn't remember where is it.

 

;; LAYER NAME LINE TYPE LAYER COLOR ..................... ;;

 

Can some one help me to find this lisp?

Link to comment
Share on other sites

Lee created a lisp to create layers. I saw it but didn't remember where is it.

;; LAYER NAME LINE TYPE LAYER COLOR ..................... ;;

Can some one help me to find this lisp?

 

no idea bout Lee's code but here's what i use :

(defun C:MNL (/ cmd1 Lname col lyt)
(setq cmd1 (getvar 'cmdecho))
(setvar 'cmdecho 0)
  (setq LNAME (getstring T "\nEnter New Layer Name?"))
  (setq col (getstring "\nEnter New Layer Color <7>...  "))
  (setq lyt (getstring "\nEnter New Layer Linetype <CONTINUOUS>...  "))
        (if (= col "")
           (command "layer" "m" LNAME "c" col "lt" lyt "" "")
           (command "layer" "m" LNAME "c" col "" "lt" lyt "" "")
        )
  (princ)
(setvar 'cmdecho cmd1)
)

Link to comment
Share on other sites

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