Jump to content

help with a lisp command


Guest

Recommended Posts

Hi. I am using in a lisp code a layer with the name "test" .I wan't in the same layer to add splines but i want this created splines to have different colors in the same layer.

 

I use this command to create layers

 

(COMMAND "_layer" "_m" "Test" "_c" "150" "" "")

 

Some splines will be yellow or red.

 

Any idea?

 

Thanks

Link to comment
Share on other sites

I fix it . i use this

 

Code:
(defun Layer (Nme Col Ltyp LWgt Plt)
 (entmake (list (cons 0 "LAYER")
                (cons 100 "AcDbSymbolTableRecord")
                (cons 100 "AcDbLayerTableRecord")
                (cons 2  Nme)
                (cons 70 0)
                (cons 62 Col)
                (cons 6 Ltyp)
                (cons 290 Plt)
                (cons 370 LWgt))))

 

Thanks

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