Message 1 of 4
MultiLeader color and Text fromat in VBA

Not applicable
03-11-2019
02:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have created multileader in my VBA code. I want to set multileader color . i can set color by changing 'Color' option in General tab through properties option. but how can i change that in VBA. I tried LeaderLineColor, but it didnt work. I wan to change the text font for mleader text string.
Dim leaderObj As AcadMLeader Dim points(0 To 8) As Double
points(0) = x: points(1) = y: points(2) = 0 points(3) = x + 0.5: points(4) = y + 0.5: points(5) = 0 points(6) = x + 0.8: points(7) = y + 0.8: points(8) = 0 Set leaderObj = ThisDrawing.ModelSpace.AddMLeader(points, 0) leaderObj.textString = textString leaderObj.TextHeight = 0.3 leaderObj.TextFrameDisplay = 1 leaderObj.Update ZoomAll