Sungam Posted May 12, 2010 Posted May 12, 2010 Anyone know a easy way to selecting attribute by it's tag? As for now I have this code for picking the attribute: (setq attr(nentsel "\nSelect Attribute> ")) ...but I want to get the attribute containing a specific tag instead.:wink: Quote
ReMark Posted May 12, 2010 Posted May 12, 2010 Easy? Yes. Use the Find command. You can search by Blocks and specify Block attribute values. Quote
Lee Mac Posted May 12, 2010 Posted May 12, 2010 I'm guessing you'll want it programmatically. But how would the code determine which block? What do you propose for this? Quote
Sungam Posted May 12, 2010 Author Posted May 12, 2010 But it's just an attribute, not inserted to a block (yet). So I don't have a block name. Is it still possible? Quote
Lee Mac Posted May 12, 2010 Posted May 12, 2010 But it's just an attribute, not inserted to a block (yet). So I don't have a block name. Is it still possible? You mean its an ATTDEF? Quote
Sungam Posted May 12, 2010 Author Posted May 12, 2010 I'm guessing you'll want it programmatically. But how would the code determine which block? What do you propose for this? ya, it's an attdef The block-making comes after the attribute issue. First I want to assign attributes to the geometry and then make the block. Maby not possible? Quote
Lee Mac Posted May 12, 2010 Posted May 12, 2010 ya, it's an attdefThe block-making comes after the attribute issue. First I want to assign attributes to the geometry and then make the block. Maby[sic] not possible? Is this in relation to your other thread regarding the fields? I assume you are creating the ATTDEF everytime you select an object? If you create it using entmake(x) or vla-AddAttribute you can bound the attdef entity/object to a variable for use in other parts of the code. Lee 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.