chavlji Posted April 1, 2009 Posted April 1, 2009 If i select block's attribut using nentsel the function returns atribute's entity name as a first element of returned list. How would I then get the name of parent entity - that is the name of the block that contains this attribute? In help I found this under entnext: "you can find the parent entity by stepping forward with entnext until a seqend entity is found, then extracting the -2 group from that entity, which is the main entity's name." But if I step forward using (entnext AttrEntName) i always come to nil... Can anyone give me an example? Quote
VVA Posted April 1, 2009 Posted April 1, 2009 (setq att (car(nentsel "\nSelect attribute"))) (setq parent (cdr(assoc 330 (entget att)))) 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.