Jump to content

How to remove an element from a list


Recommended Posts

Posted

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

Posted

Please check the ENTMOD function. I don't think removing the list would work; please consider to set the code DXF 62 to 0 (ByLayer) instead.

Posted

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"

Posted

I would go with append function in this case .

 

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

Posted
I would go with append function in this case .

 

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

 

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

you absent for weeks!!

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

you absent for weeks!!

 

Thank you hanhphuc :)

 

I was on vacation for almost five weeks .

 

Best Regards . :)

Posted

yes, thanks so much, I was just stupid enough to forget color 256 is BYLAYER !!! :(

Posted
yes, thanks so much, I was just stupid enough to forget color 256 is BYLAYER !!! :(

 

No worries ;)

 

Have you got your codes working as you wish for ?

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