Leader Line issue

Leader Line issue

Anonymous
Not applicable
428 Views
3 Replies
Message 1 of 4

Leader Line issue

Anonymous
Not applicable
How can I access the AddLeader function to tell it what Arrowhead I want to use. i.e. Dot, Arch Tic, etc. Also is there a way to tell it what linetype to use with the leader line to override the layer settings?

And if the Leader exist in the drawing is there a way to Edit it and change what type of Arrowhead and linetype is associated?
0 Likes
429 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
"keithwaite" wrote in message news:28565626.1079650952974.JavaMail.jive@jiveforum2.autodesk.com... > How can I access the AddLeader function to tell it what Arrowhead I want to use. i.e. Dot, Arch Tic, etc. Also is there a way to tell it what linetype to use with the leader line to override the layer settings? > > And if the Leader exist in the drawing is there a way to Edit it and change what type of Arrowhead and linetype is associated? Dim Annotation As AcadMText Dim LeaderObj As AcadLeader Dim Points() As Double Dim LeaderType As Integer 'set your points first 'create the mtext first LeaderType = acLineWithArrow Set LeaderObj = ThisDrawing.ModelSpace.AddLeader(Points, Annotation, LeaderType) LeaderObj.Layer="SomeLayer" 'Set the layer AFTER creating the leader LeaderObj.Linetype="SomeLineType" 'Set the Linetype AFTER creating the leader LeaderObj.ArrowheadType = acArrowDot 'Set the arrowhead type AFTER creating the leader HTH, Jeff
0 Likes
Message 3 of 4

Anonymous
Not applicable
I am able to add the leader line and text and arrowhead. What I would like to do is have an option for the user to select what type of Arrowhead and Leader Linetype to be associated with the existing leader line.

After placing our standard leader line with a Dot arrowhead and Continous linetype we need to change the arrowhead to Architectural Tick and Center linetype. Is there a way to change the Leader line using VBA on a form?

Thank you,
Keith
0 Likes
Message 4 of 4

Anonymous
Not applicable
Yes, using the same principles I showed previously. The form would need some kind of list/combo box with the different arrrowheads OR the arrowheads could all be shown as radio button controls since only one can be selected at a time. Same for the linetype. Get the selected values when the "OK" button (or whatever you want to call the button to continue the routine) is pressed, select the leader if it isn't already a stored object, change the properties to the new. Jeff "keithwaite" wrote in message news:30856912.1079709386203.JavaMail.jive@jiveforum2.autodesk.com... > I am able to add the leader line and text and arrowhead. What I would like to do is have an option for the user to select what type of Arrowhead and Leader Linetype to be associated with the existing leader line. > > After placing our standard leader line with a Dot arrowhead and Continous linetype we need to change the arrowhead to Architectural Tick and Center linetype. Is there a way to change the Leader line using VBA on a form? > > Thank you, > Keith
0 Likes