@kylei7449 wrote:
How do you change a single property of the mleaderstyle? What I'm trying to do is modify existing mleaders to set the angle of the arrow to a specific degree. But I don't want to create a new style for it, I just want a macro that will allow me to change leaders on the fly. So for instance, I'm wanting to have multiple macros that have preset angles and I can simply click on the leaders I need to change. The property (I think) is 'FirstSegmentAngleConstraint'. Does anyone know or have a simple code snippet for something like this? If you click on the mleader and look at Properties there's nothing there for the angle of the arrow, so not sure how to access that? Thx
That isn't possible with the FirstSegmentAngleConstraint Property since it pertains to a MLeader style and through that MLeaders with that style. It will therefore affect all MLeaders of a specific style, and cannot be changed on the fly for existing MLeaders. The property requires an long integer value, therefore it isn't possible to specify a specific "degree" angle :
The default setting for the FirstSegmentAngleConstraint is 0 (no constraint)
Setting this to 1 will constrain the first segment to intervals of 15 degrees
The settings are as follows:
1 = 15 degrees (available angles for first segment 0, 15, 30 , 45, 60.....................345)
2 = 30 degrees (available angles 0, 30 ,60.................................330)
3 = 45 degrees etc
.............
6 = 90 degrees
etc
All angles are measured from Autocad 0 angle (positive x axis)
I am not one of the robots you're looking for