.NET

Reply
Mentor
BrentBurgess1980
Posts: 162
Registered: ‎06-16-2008
Message 1 of 4 (707 Views)

Text Justification

707 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

Active Member
just.nobody
Posts: 8
Registered: ‎01-26-2008
Message 2 of 4 (688 Views)

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

*Expert Elite*
chiefbraincloud
Posts: 753
Registered: ‎02-13-2008
Message 3 of 4 (658 Views)

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
Mentor
tyronebk
Posts: 184
Registered: ‎08-17-2007
Message 4 of 4 (345 Views)

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.

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!