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
Solved! Go to Solution.
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.
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register