rog1n Posted February 20, 2020 Share Posted February 20, 2020 Hello, is possible to get the color of a polyline inside a dynamic block? I want to click at the end of a polyline inside a block and draw a polyline with the same color like the example below. example.dwg Quote Link to comment Share on other sites More sharing options...
ronjonp Posted February 20, 2020 Share Posted February 20, 2020 Sure: (if (setq e (car (nentsel))) (alert (itoa (cdr (assoc 62 (entget e))))) ) 1 Quote Link to comment Share on other sites More sharing options...
rog1n Posted February 20, 2020 Author Share Posted February 20, 2020 Once again you helped me, thank you @ronjonp I didn't know about nentsel. Quote Link to comment Share on other sites More sharing options...
ronjonp Posted February 20, 2020 Share Posted February 20, 2020 1 hour ago, rog1n said: Once again you helped me, thank you @ronjonp I didn't know about nentsel. Glad to help! Quote Link to comment Share on other sites More sharing options...
BIGAL Posted February 21, 2020 Share Posted February 21, 2020 I use nentsel to pick an attribute you want to change, you can get properties like att tagname, textstring, a little extra code and can get block name. Handy for global change an attribute in multiple blocks. 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.