.NET

Reply
Mentor
166 Posts
9 Kudos
Registered: ‎06-16-2008
Post 1 of 4

Text Justification

715 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
8 Posts
0 Kudos
Registered: ‎01-26-2008
Post 2 of 4

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*
753 Posts
54 Kudos
Registered: ‎02-13-2008
Post 3 of 4

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
191 Posts
26 Kudos
Registered: ‎08-17-2007
Post 4 of 4

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 interested in helping shape the future of the Autodesk Community? To participate in this brief usability study, please click here. Your time and input is greatly appreciated!