Single-Line Text Justification

Single-Line Text Justification

ericbouwkamp
Advocate Advocate
445 Views
2 Replies
Message 1 of 3

Single-Line Text Justification

ericbouwkamp
Advocate
Advocate

I have a tool that takes data from other pages, and creates tags to be laser etched. This tool grabs a dwt, loads it into a side database, inserts a block from another dwg, creates references as needed, then populates the attribute values per the gathered data. 

Upon an initial save (Database.SaveAs()), we have weird single line text behavior when the drawing is opened in DWG TrueView. The text all seems middle left justified. This is resolved once I open the dwg normally in AutoCAD and save it again. 

 

Any ideas or things that I should look at?

Pictures attached.

 

Thanks

0 Likes
Accepted solutions (1)
446 Views
2 Replies
Replies (2)
Message 2 of 3

norman.yuan
Mentor
Mentor
Accepted solution

I suppose you mean the Justification of attribute (AttributeReferences of the block reference). 

 

This issue as you described (inserting block reference and its attributes via a side database) is a known issue and has been discussed in this forum for quite a few times. The trick is to set the side database as WorkDatabase before inserting blocks/attributes.

 

See these old posts:

https://forums.autodesk.com/t5/net/attribute-alignment/m-p/12099621#M77816 

https://forums.autodesk.com/t5/net/attribute-alignment/m-p/3182590#M25488 

 

 

Norman Yuan

Drive CAD With Code

EESignature

0 Likes
Message 3 of 3

ericbouwkamp
Advocate
Advocate

That was it. Thank you!

0 Likes