Author Topic: 2 block inserts. Same name blocks. One with attributes, one without... HOW?  (Read 3097 times)

0 Members and 1 Guest are viewing this topic.

Eddie D.

  • Newt
  • Posts: 29
The attached drawing has two inserts of the same block. One insert has attributes. The other does not. How is this possible?
Explode the attributed one, the attritute definitions disappear.
Redefine the block with no attributes, the attributes remain.
What the heck?
In my 30 years of AutoCAD usage, I've never seen this.






Rob...

  • King Gator
  • Posts: 3824
  • Take a little time to stop and smell the roses.
Re: 2 block inserts. Same name blocks. One with attributes, one without... HOW?
« Reply #1 on: September 15, 2016, 02:48:45 PM »
I'm thinking the block was redefined without the attributes. I cannot figure out why ATTSYNC won't work though.
CAD Tech

Eddie D.

  • Newt
  • Posts: 29
Re: 2 block inserts. Same name blocks. One with attributes, one without... HOW?
« Reply #2 on: September 15, 2016, 03:05:08 PM »
Rob, it looks like that may just be culprit. In another drawing, I redefined an attributed block without the attributes and got the same result with a block that still has attributes. Attsync does nothing, doesn't even recognize any blocks with attributes. I can still edit the attributes, though.
Weird... I've never seen this before. I guess it's just something I've never done before (the drawing with the issue was not created by me).


Thanks for looking.

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: 2 block inserts. Same name blocks. One with attributes, one without... HOW?
« Reply #3 on: September 15, 2016, 03:13:06 PM »
Attributes can easily be added during block instancing (independent/contrary to the block def'n) and can be deleted post instancing.
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

mjfarrell

  • Seagull
  • Posts: 14444
  • Every Student their own Lesson
Re: 2 block inserts. Same name blocks. One with attributes, one without... HOW?
« Reply #4 on: September 15, 2016, 03:18:53 PM »
yep


those two blocks are not the same


the original most likely had attributes,

then they were removed

thus attsync wont work because the parent block definition has no attributes defined.

A simple wblock of the block with attributes yields a drawing with no attributes. (symptom)

There are no attributes within the original block definition (diagnosis)
Be your Best


Michael Farrell
http://primeservicesglobal.com/

Jeff H

  • Needs a day job
  • Posts: 6150
Re: 2 block inserts. Same name blocks. One with attributes, one without... HOW?
« Reply #5 on: September 15, 2016, 03:40:17 PM »
When you insert a block it looks to see if it contains any attribute definitions in the block definition and if it does then it creates attribute references then translates them and are part of the block reference.

If you think about it there is no way attributes could be part of the block definition because the attributes could not vary.

So attribute references are part the block reference and have nothing to do with definition just use it as template.

If a block contains no attributes ATTSYNC will not erase attribute references, but if add one attribute definition to block definition and then do ATTSYNC, then remove the attribute you just added to definition and ATTSYNC again it will remove all of them.

Rob...

  • King Gator
  • Posts: 3824
  • Take a little time to stop and smell the roses.
Re: 2 block inserts. Same name blocks. One with attributes, one without... HOW?
« Reply #6 on: September 15, 2016, 04:22:25 PM »
When you insert a block it looks to see if it contains any attribute definitions in the block definition and if it does then it creates attribute references then translates them and are part of the block reference.

If you think about it there is no way attributes could be part of the block definition because the attributes could not vary.

So attribute references are part the block reference and have nothing to do with definition just use it as template.

If a block contains no attributes ATTSYNC will not erase attribute references, but if add one attribute definition to block definition and then do ATTSYNC, then remove the attribute you just added to definition and ATTSYNC again it will remove all of them.

Nice explanation.
CAD Tech

mjfarrell

  • Seagull
  • Posts: 14444
  • Every Student their own Lesson
Re: 2 block inserts. Same name blocks. One with attributes, one without... HOW?
« Reply #7 on: September 15, 2016, 04:37:39 PM »
Interesting thing to note, if you either

edit the block(that appears to have attributes) in block  editor

or edit in place

The 'attributes' do not show up in the block editor, nor can you select them as part of the block/nested items to be edited.


Be your Best


Michael Farrell
http://primeservicesglobal.com/

T.Willey

  • Needs a day job
  • Posts: 5251
Re: 2 block inserts. Same name blocks. One with attributes, one without... HOW?
« Reply #8 on: September 16, 2016, 02:58:55 AM »
Michael,

That makes sense since those commands most likely look at the block definition, and since the attributes were added to the insert (not the block definition) then the definition would know nothing of what has happened to an insert.

One can use the code at the link to add attributes to any 'insert'.  This means you could create thousands of inserts that all have different amounts of attributes.

https://www.theswamp.org/index.php?topic=8037.msg426208#msg426208
Tim

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

Please think about donating if this post helped you.

mjfarrell

  • Seagull
  • Posts: 14444
  • Every Student their own Lesson
Re: 2 block inserts. Same name blocks. One with attributes, one without... HOW?
« Reply #9 on: September 16, 2016, 08:50:28 AM »
Michael,

That makes sense since those commands most likely look at the block definition, and since the attributes were added to the insert (not the block definition) then the definition would know nothing of what has happened to an insert.

One can use the code at the link to add attributes to any 'insert'.  This means you could create thousands of inserts that all have different amounts of attributes.

https://www.theswamp.org/index.php?topic=8037.msg426208#msg426208

I know that you can, however as a matter of practice WHY would you introduce such randomness to a drawing?
Seems like an excellent example of; just because one can, doesn't mean you should.
Be your Best


Michael Farrell
http://primeservicesglobal.com/

T.Willey

  • Needs a day job
  • Posts: 5251
Re: 2 block inserts. Same name blocks. One with attributes, one without... HOW?
« Reply #10 on: September 16, 2016, 05:32:39 PM »
I use it sometimes.  Just to add more information to a block and keep all the information associated together.  To each their own.
Tim

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

Please think about donating if this post helped you.

danallen

  • Guest
Re: 2 block inserts. Same name blocks. One with attributes, one without... HOW?
« Reply #11 on: September 16, 2016, 05:48:06 PM »
sometimes it's by accident - for example I'll make a block, insert it a few times, then decide I need to add some or additional attributes. I'll update definition but not get around to reinserting all the old inserts to include the attributes.

Rod

  • Newt
  • Posts: 185
Re: 2 block inserts. Same name blocks. One with attributes, one without... HOW?
« Reply #12 on: September 19, 2016, 06:26:05 PM »
Unfortunately this is something I have to correct often, I use these steps (this is from memory)
1. Attout
2. Redefine Block with a correct version
3. Fix CSV (from attout) column headings, delete unnecessary columns and ensure columns are in the right order
4. attsync
5. attin

Cheers, Rod.
 
"All models are wrong, some models are useful" - George Box