RufussMcGee
Technical User
The following code will add a leader to the drawing but what I am looking for is something like qleader whereas I have text to follow the leader and act as one.
Sub addleader_example()
Dim objLeader As AcadLeader
Dim dblPoints(0 To 8) As Double
Dim intleadertype As Integer
Dim objannotation As AcadObject
Dim objText As String
dblPoints(0) = 0: dblPoints(1) = 0: dblPoints(2) = 0:
dblPoints(3) = 3: dblPoints(4) = 3: dblPoints(5) = 0:
dblPoints(6) = 6: dblPoints(7) = 3: dblPoints(6) = 0:
intleadertype = acLineWithArrow
Set objannotation = Nothing
Set objLeader = ThisDrawing.ModelSpace.AddLeader(dblPoints, objannotation, intleadertype)
objLeader.Update
End Sub
So my question is how do I get these results?
Thanks
Sub addleader_example()
Dim objLeader As AcadLeader
Dim dblPoints(0 To 8) As Double
Dim intleadertype As Integer
Dim objannotation As AcadObject
Dim objText As String
dblPoints(0) = 0: dblPoints(1) = 0: dblPoints(2) = 0:
dblPoints(3) = 3: dblPoints(4) = 3: dblPoints(5) = 0:
dblPoints(6) = 6: dblPoints(7) = 3: dblPoints(6) = 0:
intleadertype = acLineWithArrow
Set objannotation = Nothing
Set objLeader = ThisDrawing.ModelSpace.AddLeader(dblPoints, objannotation, intleadertype)
objLeader.Update
End Sub
So my question is how do I get these results?
Thanks