Text Justification

Text Justification

BrentBurgess1980
Collaborator Collaborator
1,407 Views
3 Replies
Message 1 of 4

Text Justification

BrentBurgess1980
Collaborator
Collaborator

I am setting my DBText's justification, and I cannot seem to set it to Top Centre (defaults back to BaseAlign). All of the others seem to work. I have attached an image.

 

Am I missing something obvious?

 

Thanks

0 Likes
1,408 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable

You might try the AdjustAlignment method of the DBText object after you've set its new justification and Alignment point.

 

Something like this?

Me.Text.AdjustAlignment.(Autodesk.AutoCAD.DatabaseServices.HostApplicationServices.WorkingDatabase);

0 Likes
Message 3 of 4

chiefbraincloud
Collaborator
Collaborator

at one time I had a problem with a certain justification, (I don't recall if it was TopCenter or not) I found that the only thing that seemed to work was to set the HorizontalMode and VerticalMode properties, instead of Justify.

Dave O.                                                                  Sig-Logos32.png
Message 4 of 4

tyronebk
Collaborator
Collaborator

Thanks ChiefBrainCloud. 

Also, the TopCenter attachment point was only failing for me if the DBText object was annotative.

0 Likes