Hello,
I'm having a problem where CAT attribute in my ACADE block isn't justifying to the center correctly.
For example, the attribute will say 750-431, and in the block on file the center grip will correctly center at the hyphen "-". In this drawing and this drawing only though, the center grip will show up around the "4", as if there are are spaces to the right, but there aren't.
There's something wrong with the block attribute definition, but I have no idea what's causing it. BATTMAN shows me nothing. ATTSYNC and AESWAPBLOCK updates don't seem to fix it. Any ideas? DWG is uploaded.
The topic title has been edited to improve findability by @alina.balkanskaia. Original: Block attribute text not center justifying correctly
Sorry couldn't find the edit post button.
This problem is now affecting the rest of my drawings. Some offset property in my database must have changed. Doing an ATTSYNC on my dynamic blocks now changes everything else that WAS right to the incorrect configuration. Another drawing loaded to show the problem. The 2nd line with the date is not centering, but doing an ATTSYNC on someone else's computer works.
Block definition still looks fine. Deleting and purging the block doesn't change it.
Funny enough. When I put a space on either side of the text to offset manually, the text always moves more left both ways. Weird.
I've had a similar problem with attributes after someone has opened a dwg in another program or without the correct font installed.
Check that the font that is being used is correct and the file for the selected font is actually on your system.
As for the Edit Post button, click on the Options link on the post and it should be in there. I know Edit Reply is there.
Regards Brad
Brad Coleman, Electrical Draftsman
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.
Hello thanks for the reply.
The font is just standard Bold Arial so I don't think that is the case. Furthermore I'm the only one opening the drawings. I've had other people open them to test though, and the dynamic blocks seem to revert back to normal...up until I open them again.
I've noticed the problem starts when I stretch the blocks. This is when I manipulate the block using the grips that look like arrows in my 2nd upload. That wouldn't explain my problem in the 1st upload though.
Hi!
I'm not sure WHY AutoCAD Does this, but I created a small VBA-macro to fix it.
THe only thing this macro do, is to go through each block in the drawing, and then step through all the attributes in these blocks, and just update them. Then, they're all ok.
Public Sub test() Dim AcadEnt As AcadEntity Dim BlockRef As AcadBlockReference Dim Atts() As AcadAttributeReference Dim AttCounter As Integer For Each AcadEnt In ActiveDocument.ModelSpace If TypeName(AcadEnt) = "IAcadBlockReference" Then Set BlockRef = AcadEnt If BlockRef.HasAttributes Then Atts = BlockRef.GetAttributes For AttCounter = LBound(Atts) To UBound(Atts) Atts(AttCounter).Update Next ReDim Atts(0) End If Set BlockRef = Nothing End If Next Set AcadEnt = Nothing End Sub
Here is both the reason and solution
Starting after ACADE 2016 I believe it is, Autodesk in their infinite wisdom stop supplying the romans.shx file with the application in an attempt to force everyone to move to true type fonts, which is obviously causing problems for many as the conversion isn't there yet, especially regarding existing drawings and blocks.
To correct this, place a copy of the attached romans.shx file in the following directory:
C:\Users\yourusernamehere\AppData\Roaming\Autodesk\AutoCAD Electrical 2018\R22.0\enu\Support
If you found this helpful, please give me a thumbs up.
There is a simpler command solution for this problem. I'm trying to remember myself, having the issue again. I'll reply when I think of it again.
Did you figure it out?