Active Member
Posts: 8
Registered: ‎05-11-2012
Message 1 of 3 (320 Views)
Accepted Solution

Problem with Text JIG Alignment point

320 Views, 2 Replies
05-19-2012 09:35 PM

Protected Overrides Function WorldDraw(ByVal draw As Autodesk.AutoCAD.GraphicsInterface.WorldDraw) As Boolean

Dim acText As New DBText()

acText.Position = BasePt
acText.Height = 350
acText.TextString = "001"

' I want to set the alignment point in the mid, but it doesn't work.
' In JIG, it's still displayed in the left bottom corner, anyone can solve this problem?
acText.HorizontalMode = TextHorizontalMode.TextMid
acText.VerticalMode = TextVerticalMode.TextVerticalMid
acText.AlignmentPoint = BasePt

Return True
End Function

*Expert Elite*
Posts: 752
Registered: ‎02-13-2008
Message 2 of 3 (289 Views)

Re: Problem with Text JIG Alignment point

05-21-2012 09:09 AM in reply to: 583408432

I have two text jigs that work with non-standard alignments.  In both cases, I am jigging a Database resident DBText object, so that might be problem 1, you haven't added the new text object to the Database yet.


Along with that, inside my jig code in the Update Function, I am calling AdjustAlignment.


Edit:  To be clear, I am using an EntityJig whereas it appears you are using a DrawJig, so If the same things are going to work for you, the AdjustAlignment call should be in this WorldDraw function.

Dave O.                                                                  Sig-Logos32.png
Active Member
Posts: 8
Registered: ‎05-11-2012
Message 3 of 3 (266 Views)

Re: Problem with Text JIG Alignment point

05-22-2012 05:38 AM in reply to: chiefbraincloud


Thank you very much! Your answer is  pretty good! 

Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.