Author Topic: Attdisp Normal vs ON  (Read 8429 times)

0 Members and 1 Guest are viewing this topic.

David Hall

  • Automatic Duh Generator
  • King Gator
  • Posts: 4075
Attdisp Normal vs ON
« on: April 29, 2010, 12:26:30 PM »
OK, this is totally baffeling me.  I have 2 instances of the same block, 1 has an attribute visable, one does not (in Normal mode).  If i set attdisp ON, they both show.  If I go back to Normal, only one shows.  How is this possible?
Everyone has a photographic memory, Some just don't have film.
They say money can't buy happiness, but it can buy Bacon and that's a close second.
Sometimes the question is more important than the answer. (Thanks Kerry for reminding me)

mjfarrell

  • Seagull
  • Posts: 14444
  • Every Student their own Lesson
Re: Attdisp Normal vs ON
« Reply #1 on: April 29, 2010, 12:32:02 PM »
Attribute modes control the behavior of attributes in blocks. For example, you can control

Whether an attribute is visible or invisible in the drawing
Whether an attribute has a constant value, such as a part number
Whether the attribute can be moved relative to the rest of the block
Whether the attribute is a single-line attribute or a multiple-line attribute
If an attribute has a constant value, you will not be prompted for its value when you insert the block. If an attribute has a variable value, such as the asset number of a computer, you will be prompted when you insert the block.

fix with BATMAN

You can edit the values and other properties of all attributes that are already attached to a block and inserted in a drawing.

You can modify attributes in block definitions with the Block Attribute Manager. For example, you can modify the following:

Properties that define how values are assigned to an attribute and whether or not the assigned value is visible in the drawing area
Properties that define how attribute text is displayed in the drawing
Properties that define the layer that the attribute is on and the attribute line's color, weight, and type
By default, attribute changes you make are applied to all existing block references in the current drawing.

« Last Edit: April 29, 2010, 12:35:58 PM by Spawn »
Be your Best


Michael Farrell
http://primeservicesglobal.com/

mjfarrell

  • Seagull
  • Posts: 14444
  • Every Student their own Lesson
Re: Attdisp Normal vs ON
« Reply #2 on: April 29, 2010, 12:38:08 PM »
by hep file definition:


Normal
Restores the visibility settings of each attribute. Visible attributes are displayed. Invisible attributes are not displayed.

On
Makes all attributes visible, overriding the original visibility settings.

Off
Makes all attributes invisible, overriding the original visibility settings.

Be your Best


Michael Farrell
http://primeservicesglobal.com/

David Hall

  • Automatic Duh Generator
  • King Gator
  • Posts: 4075
Re: Attdisp Normal vs ON
« Reply #3 on: April 29, 2010, 12:42:12 PM »
yes, I got all that, but how can it be 2 different ways at the same time?  DL the file and look at it
Everyone has a photographic memory, Some just don't have film.
They say money can't buy happiness, but it can buy Bacon and that's a close second.
Sometimes the question is more important than the answer. (Thanks Kerry for reminding me)

mjfarrell

  • Seagull
  • Posts: 14444
  • Every Student their own Lesson
Re: Attdisp Normal vs ON
« Reply #4 on: April 29, 2010, 12:44:42 PM »
someone edited one...and did not sync things up

Update Block References

You can update attributes in all block references in the current drawing with changes you made to the block definition. For example, you may have used the Block Attribute Manager to modify attribute properties in several block definitions in your drawing but elected not to automatically update existing block references when you made the changes. Now that you are satisfied with the attribute changes you made, you can apply those changes to all blocks in the current drawing.

You can also use ATTSYNC to update attribute properties in block references to match their block definition, or to update a block instance after you redefine a block attribute using BLOCK, -BLOCK, or BEDIT.

Updating attribute properties in block references does not affect any values that have been assigned to those attributes.

Be your Best


Michael Farrell
http://primeservicesglobal.com/

David Hall

  • Automatic Duh Generator
  • King Gator
  • Posts: 4075
Re: Attdisp Normal vs ON
« Reply #5 on: April 29, 2010, 12:56:45 PM »
I see what your saying, but what a PITA that would be.  That means they would have to insert 6 of these blocks, then edit the definition, and insert the next 200.
and its not just 1 drawing, but like 125
Everyone has a photographic memory, Some just don't have film.
They say money can't buy happiness, but it can buy Bacon and that's a close second.
Sometimes the question is more important than the answer. (Thanks Kerry for reminding me)

David Hall

  • Automatic Duh Generator
  • King Gator
  • Posts: 4075
Re: Attdisp Normal vs ON
« Reply #6 on: April 29, 2010, 01:02:55 PM »
someone edited one...and did not sync things up

Update Block References

You can update attributes in all block references in the current drawing with changes you made to the block definition. For example, you may have used the Block Attribute Manager to modify attribute properties in several block definitions in your drawing but elected not to automatically update existing block references when you made the changes. Now that you are satisfied with the attribute changes you made, you can apply those changes to all blocks in the current drawing.

You can also use ATTSYNC to update attribute properties in block references to match their block definition, or to update a block instance after you redefine a block attribute using BLOCK, -BLOCK, or BEDIT.

Updating attribute properties in block references does not affect any values that have been assigned to those attributes.


Also, I tried to do what you did in RED, and cannot.  How would you do that?
Everyone has a photographic memory, Some just don't have film.
They say money can't buy happiness, but it can buy Bacon and that's a close second.
Sometimes the question is more important than the answer. (Thanks Kerry for reminding me)

mjfarrell

  • Seagull
  • Posts: 14444
  • Every Student their own Lesson
Re: Attdisp Normal vs ON
« Reply #7 on: April 29, 2010, 01:05:29 PM »
sounds like it could have happened just that way...

...could be a training issue (I'm sure you folks have standards)
...could be careless
perhaps instead of using normal EATTEDIT, they used the block editor to edit the attribute values?
Be your Best


Michael Farrell
http://primeservicesglobal.com/

mjfarrell

  • Seagull
  • Posts: 14444
  • Every Student their own Lesson
Re: Attdisp Normal vs ON
« Reply #8 on: April 29, 2010, 01:06:37 PM »
someone edited one...and did not sync things up

Update Block References

You can update attributes in all block references in the current drawing with changes you made to the block definition. For example, you may have used the Block Attribute Manager to modify attribute properties in several block definitions in your drawing but elected not to automatically update existing block references when you made the changes. Now that you are satisfied with the attribute changes you made, you can apply those changes to all blocks in the current drawing.

You can also use ATTSYNC to update attribute properties in block references to match their block definition, or to update a block instance after you redefine a block attribute using BLOCK, -BLOCK, or BEDIT.

Updating attribute properties in block references does not affect any values that have been assigned to those attributes.


Also, I tried to do what you did in RED, and cannot.  How would you do that?

that is straight from HELP file...I did not attempt to perform....
Be your Best


Michael Farrell
http://primeservicesglobal.com/

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: Attdisp Normal vs ON
« Reply #9 on: April 29, 2010, 01:07:20 PM »
Eack block instance enjoys its own collection of attributes. You know this because each non constant attribute sports its own state. That "state" extends beyond the value of the textstring property (dxf group 1) to the visibility / constant states etc (dxf group 70), the tagstring (dxf group 2) etc.

I've exploited this for years, creating as many attributes as I need per block instance (yes, you can vary the number, type and tags of attributes between instances of the same block def) toggling attributes between read-only | write-able, visible | invisible etc. on the fly, at will.

If I wasn't on my blackberry I'd post some sample code but alas.
Engineering Technologist CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.com http://cadanalyst.slack.com http://linkedin.com/in/cadanalyst

T.Willey

  • Needs a day job
  • Posts: 5251
Re: Attdisp Normal vs ON
« Reply #10 on: April 29, 2010, 01:21:26 PM »
Attributes have an invisible property which can be true or false.  Here is a string of code that you can run to see what they are set to.

I wrote the code as one line, so that you can just hit the up arrow to use again in Acad.
Code: [Select]
(foreach i (vlax-invoke (vlax-ename->vla-object (car (entsel))) 'GetAttributes) (prompt (strcat "\nTag = " (vla-get-TagString i) ", Invisible = " (vl-princ-to-string (vla-get-Invisible i)))))(princ)

Returned for the left block
Quote
Tag = TERMDESC02, Invisible = :vlax-true
Tag = TERMDESC02A, Invisible = :vlax-true
Tag = WIRENO02A, Invisible = :vlax-false
Tag = WIRENO02, Invisible = :vlax-false
Tag = P_TAGSTRIP, Invisible = :vlax-false
Tag = WIRENO01A, Invisible = :vlax-false
Tag = TERMDESC01, Invisible = :vlax-true
Tag = TERMDESC01A, Invisible = :vlax-true
Tag = WIRENO01, Invisible = :vlax-false
Tag = DESC1, Invisible = :vlax-false
Tag = INST, Invisible = :vlax-true
Tag = TERM, Invisible = :vlax-false
Tag = FPT, Invisible = :vlax-true
Tag = LOC, Invisible = :vlax-false

Right block
Quote
Tag = TERMDESC02, Invisible = :vlax-true
Tag = TERMDESC02A, Invisible = :vlax-true
Tag = WIRENO02A, Invisible = :vlax-false
Tag = WIRENO02, Invisible = :vlax-false
Tag = P_TAGSTRIP, Invisible = :vlax-true
Tag = WIRENO01A, Invisible = :vlax-false
Tag = TERMDESC01, Invisible = :vlax-true
Tag = TERMDESC01A, Invisible = :vlax-true
Tag = WIRENO01, Invisible = :vlax-false
Tag = DESC1, Invisible = :vlax-false
Tag = INST, Invisible = :vlax-true
Tag = TERM, Invisible = :vlax-false
Tag = FPT, Invisible = :vlax-true
Tag = LOC, Invisible = :vlax-true
Tim

I don't want to ' end-up ', I want to ' become '. - Me

Please think about donating if this post helped you.

David Hall

  • Automatic Duh Generator
  • King Gator
  • Posts: 4075
Re: Attdisp Normal vs ON
« Reply #11 on: April 29, 2010, 01:43:16 PM »
I know that I can set the visability status on entities, my problem is the company I got this from, I dont think they are smart enough to do this.  So mostly I am trying to figure out how they could have done this with out of the box autocad
Everyone has a photographic memory, Some just don't have film.
They say money can't buy happiness, but it can buy Bacon and that's a close second.
Sometimes the question is more important than the answer. (Thanks Kerry for reminding me)

David Hall

  • Automatic Duh Generator
  • King Gator
  • Posts: 4075
Re: Attdisp Normal vs ON
« Reply #12 on: April 29, 2010, 01:44:51 PM »
I've exploited this for years, creating as many attributes as I need per block instance (yes, you can vary the number, type and tags of attributes between instances of the same block def) toggling attributes between read-only | write-able, visible | invisible etc. on the fly, at will.

But if I understand what your saying, you do this through code.  Can it be done w/o code?
Everyone has a photographic memory, Some just don't have film.
They say money can't buy happiness, but it can buy Bacon and that's a close second.
Sometimes the question is more important than the answer. (Thanks Kerry for reminding me)

T.Willey

  • Needs a day job
  • Posts: 5251
Re: Attdisp Normal vs ON
« Reply #13 on: April 29, 2010, 01:52:12 PM »
I think Acad Elec has some OOTB lisp routines that one can use to make attributes in/visible.  If that helps at all.

FYI..... Attributes have the Invisible property, and the Visible property.
Tim

I don't want to ' end-up ', I want to ' become '. - Me

Please think about donating if this post helped you.

David Hall

  • Automatic Duh Generator
  • King Gator
  • Posts: 4075
Re: Attdisp Normal vs ON
« Reply #14 on: April 29, 2010, 02:27:42 PM »
Tim, can you get to the visible property w/o code?
Everyone has a photographic memory, Some just don't have film.
They say money can't buy happiness, but it can buy Bacon and that's a close second.
Sometimes the question is more important than the answer. (Thanks Kerry for reminding me)