Odd attribute behavior

Odd attribute behavior

peterjwinberg
Advocate Advocate
738 Views
9 Replies
Message 1 of 10

Odd attribute behavior

peterjwinberg
Advocate
Advocate

I've got this simple DB of a shower, which is used multiple times in a given drawing. If the attribute is rotated, it ends up moving after the drawing is closed an opened again. I have attached a couple screen captures showing what I mean. ATTSYNC will put it back in place, but I find the behavior odd and was hoping someone could shed some light on why it's happening. I have attached a DWG as well if you would like to poke around. Thanks!

 

Capture.JPG  Capture2.JPG

0 Likes
739 Views
9 Replies
Replies (9)
Message 2 of 10

peterjwinberg
Advocate
Advocate

To clarify, the left capture shows the block before saving and closing the drawing. I then close it, and open it again. Upon opening it again, the attribute has moved on its own, as shown on the right capture. The grip is where it's supposed to be, but the text is not. It only happens if rotated (dynamic rotate action).

0 Likes
Message 3 of 10

h_s_walker
Mentor
Mentor

It's something to do with the attribute behaviour that's messing it up.

 

I created a mtext box with a couple of fields in it of the lengths of the lines and attached it to the rotate parameter. It stayed where it was supposed to when I closed and opened the drawing.

 

See the attached

Howard Walker
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Left Handed and Proud

0 Likes
Message 4 of 10

h_s_walker
Mentor
Mentor

I've updated the block a bit. See the attached drawing

 

 

Howard Walker
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Left Handed and Proud

0 Likes
Message 5 of 10

peterjwinberg
Advocate
Advocate

Quick question though - when you opened and closed my DWG with the original block, were you experiencing the behavior I described?

 

When I tried yours, your new mtext did stay in place, but my attribute still moved. The main reason I put the fields in an attribute is so I could mirror the block without the text mirroring. I also want the other text editable.

 

I saved your version as "Shower2" and saved another version of my original as "Shower3". I removed the fields from the attribute in Shower3 to see if they had something to do with the issue, but the behavior still occurs. On top of that, the fields are still showing up even though they don't show up in block editor. I have attached another DWG

 

Am I losing my mind?

 

0 Likes
Message 6 of 10

h_s_walker
Mentor
Mentor

Yeah I had the same problem you did.

I've updated Shower2 block. You can have fields in single line text. You just need to start the text before right clicking to insert the field. I've also made the SHWR (FIBRE... a single line attribute as well.

 

See the attached drawing. Shower2 is the block on screen.

Howard Walker
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Left Handed and Proud

0 Likes
Message 7 of 10

peterjwinberg
Advocate
Advocate

So does the original issue have something to do with there being fields in an mtext attribute?

0 Likes
Message 8 of 10

h_s_walker
Mentor
Mentor

I do not know, but seeing as the problem went away when the fields were taken out of the attribute, the answer is probably yes.

Howard Walker
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Left Handed and Proud

0 Likes
Message 9 of 10

Libbya
Mentor
Mentor

There is a bug with multiline attributes that makes them not work with rotate actions.  That's just the way it is.  My best suggestion I have is to make the lines into separate attributes when rotate actions are needed.  See attached.

0 Likes
Message 10 of 10

peterjwinberg
Advocate
Advocate

Bummer, but thank you.

 

My office is still on 2015, so I couldn't open the file, but that's ok - I can tweak my original as needed.

 

Would moderators want an answer marked as a solution, even though the problem technically wasn't solved?

0 Likes