Jump to content

Recommended Posts

Posted

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:

Posted

Easy? Yes. Use the Find command. You can search by Blocks and specify Block attribute values.

Posted

I'm guessing you'll want it programmatically.

 

But how would the code determine which block? What do you propose for this?

Posted

But it's just an attribute, not inserted to a block (yet). So I don't have a block name. Is it still possible?o:)

Posted
But it's just an attribute, not inserted to a block (yet). So I don't have a block name. Is it still possible?o:)

 

You mean its an ATTDEF?

Posted
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?:cry:

Posted
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[sic] not possible?:cry:

 

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

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