Jump to content

How to remove an element from a list


LauKwokFai

Recommended Posts

I am trying to change all the objects color to "bylayer" within a block, this means I have to eliminate the assoc code 62 from the list, I tried (vl-remove), it does return the list I need, but I don't know how to apply this new list on the object. Could someone help ?!

 

Thanks so much

Link to comment
Share on other sites

thank you for the reply, I can set DXF 62 to 0 which is "byblock"...I just wonder if I can put that to "bylayer". Because the next step is to copy the block to another layer, and I need the object color is "bylayer"

Link to comment
Share on other sites

I would go with append function in this case .

 

(entmod (append (entget _ssname) '((62 . 256))))

 

hi Tharwat !! welcome back :thumbsup: !!!

you absent for weeks!!

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