Jump to content

Visibility of block attributes


Recommended Posts

Hello, in a drawing I use a block with attributes.

The same attributes in some cases must be shown and in other cases not.

The only system I have devised is to give membership to a specific frozen layer in cases where the attribute should not be shown.

I ask for clarification: it is not possible to set the visibility of an attribute of a block at discretion, correct?

In practice, I cannot in a file use the same block in some cases with visible attributes and in some cases with non-visible attributes, correct?

Greetings

Link to comment
Share on other sites

You can entmod a attribute.

 

(setq ent (entget (car (nentsel "\nPick an attribute to turn off"))))

(entmod (subst (cons 70 1) (assoc 70 ent) ent))

 

Turning back on is a bit harder unless you know tag name, or just turn all attributes on then do off again. (70 . 0) is on.

Edited by BIGAL
Link to comment
Share on other sites

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