Small Fish Posted November 9, 2009 Posted November 9, 2009 Hi How can I return the value of an attributted tag selected? So far I can only return the block name. (defun c:ATTvalue (/ blk tag val tg ) (setq ESel (entsel "\nSelect attribuite tag: ")) (setq EL (entget (car ESel)));Entity list (setq blk (cdr (assoc 2 EL)));block name (princ) ) thanks Quote
gile Posted November 9, 2009 Posted November 9, 2009 Hi use nentsel: (cdr (assoc 1 (entget (car (nentsel))))) Quote
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.