• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    .NET

    Reply
    Mentor
    BrentBurgess1980
    Posts: 157
    Registered: ‎06-16-2008

    Text Justification

    557 Views, 3 Replies
    09-01-2010 10:08 PM

    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

    Please use plain text.
    Active Member
    Posts: 8
    Registered: ‎01-26-2008

    Re: Text Justification

    09-02-2010 05:24 AM in reply to: BrentBurgess1980

    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);

    Please use plain text.
    *Expert Elite*
    chiefbraincloud
    Posts: 736
    Registered: ‎02-13-2008

    Re: Text Justification

    09-02-2010 10:48 AM in reply to: BrentBurgess1980

    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
    Please use plain text.
    Distinguished Contributor
    Posts: 131
    Registered: ‎08-17-2007

    Re: Text Justification

    06-07-2011 02:57 PM in reply to: chiefbraincloud

    Thanks ChiefBrainCloud. 

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

    Please use plain text.