SelectionMgr swSelMgr = swModel.SelectionManager as SelectionMgr;
Gtol myGtol = (Gtol)swSelMgr.GetSelectedObject6(1, -1);
Annotation myAnn = gtol.GetAnnotation();
int ppp = myAnn.SetArrowHeadStyleAtIndex(0, (int)swArrowStyle_e.swNO_ARROWHEAD);
Or something like this
swView = (View)swDraw.GetFirstView();
while ((swView != null))
count = (int)swView.GetGTolCount();
Gtol gtol = default(Gtol);
if (count > 0)
Object Annotations = (Object)swView.GetGTols();
for (int j = 0; j <= Annotations.GetUpperBound(0); j++)
gtol = (Gtol)Annotations[j];
Annotation UU = gtol.GetAnnotation();
int ppp = UU.SetArrowHeadStyleAtIndex(0, (int) swArrowStyle_e.swNO_ARROWHEAD);
swView = (View)swView.GetNextView();
Thanks for the response. That got rid of the arrow head but it didn't reposition the location of the leader to the box nor did it set a gap between the leader and the edge.
Now I have code that can change the gaps on leaders so that could be a work around, but what I also want is for the leader to come from the corner of the GD&T block.
If it can be done manually I would assume that there should be a way to do it through API. There has got to be a way!