LauKwokFai Posted October 27, 2014 Share Posted October 27, 2014 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 Quote Link to comment Share on other sites More sharing options...
MSasu Posted October 27, 2014 Share Posted October 27, 2014 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. Quote Link to comment Share on other sites More sharing options...
LauKwokFai Posted October 27, 2014 Author Share Posted October 27, 2014 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" Quote Link to comment Share on other sites More sharing options...
hanhphuc Posted October 27, 2014 Share Posted October 27, 2014 '(62 . 256) Quote Link to comment Share on other sites More sharing options...
LauKwokFai Posted October 27, 2014 Author Share Posted October 27, 2014 great ! thank you very much !!! Quote Link to comment Share on other sites More sharing options...
Tharwat Posted October 27, 2014 Share Posted October 27, 2014 I would go with append function in this case . (entmod (append (entget _ssname) '((62 . 256)))) Quote Link to comment Share on other sites More sharing options...
hanhphuc Posted October 27, 2014 Share Posted October 27, 2014 I would go with append function in this case . (entmod (append (entget _ssname) '((62 . 256)))) hi Tharwat !! welcome back !!! you absent for weeks!! Quote Link to comment Share on other sites More sharing options...
Tharwat Posted October 27, 2014 Share Posted October 27, 2014 hi Tharwat !! welcome back !!!you absent for weeks!! Thank you hanhphuc I was on vacation for almost five weeks . Best Regards . Quote Link to comment Share on other sites More sharing options...
LauKwokFai Posted October 30, 2014 Author Share Posted October 30, 2014 yes, thanks so much, I was just stupid enough to forget color 256 is BYLAYER !!! Quote Link to comment Share on other sites More sharing options...
Tharwat Posted October 30, 2014 Share Posted October 30, 2014 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 ? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.