Jump to content

Recommended Posts

Posted

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

Posted

Sure:

(if (setq e (car (nentsel)))
  (alert (itoa (cdr (assoc 62 (entget e)))))
)

 

  • Like 1
Posted
1 hour ago, rog1n said:

Once again you helped me, thank you @ronjonp

 

I didn't know about nentsel. 🙃

Glad to help! 🍻

Posted

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.

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