Posts: 4
Registered: ‎05-11-2012
Message 1 of 3 (271 Views)
Accepted Solution

Problem with Text JIG Alignment point

271 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: 750
Registered: ‎02-13-2008
Message 2 of 3 (240 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
Posts: 4
Registered: ‎05-11-2012
Message 3 of 3 (217 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! 

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Welcome to the new Autodesk Community!
If this is your first visit, click here to get started and make the most of the Community. Let us know what you think of the new experience in the Community Feedback Forum.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community