.NET

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

Text Justification

711 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 (692 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 (662 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: 186
Registered: ‎08-17-2007
Message 4 of 4 (349 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
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.