Message 1 of 6
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to creating a simple leader in code ... a line with an arrow that points to a feature, connected to a short horizontal line, followed by a single line of text. I started with this example from the documentation:
Sub Ch5_CreateLeader() Dim leaderObj As AcadLeader Dim points(0 To 8) As Double Dim leaderType As Integer Dim annotationObject As AcadObject points(0) = 0: points(1) = 0: points(2) = 0 points(3) = 4: points(4) = 4: points(5) = 0 points(6) = 4: points(7) = 5: points(8) = 0 leaderType = acLineWithArrow Set annotationObject = Nothing ' Create the leader object in model space Set leaderObj = ThisDrawing.ModelSpace. _ AddLeader(points, annotationObject, leaderType) ZoomAll End Sub
My question is how do I specify the text I want to use? I see there is a reference to an annotation object, but I don't know what I need to do with it.
Can anyone help me out with a code sample that shows what I need to do? Thanks for any help...
Solved! Go to Solution.