Hi all,
I've been stuck for a while trying to add multiple leaders to a balloon in my code. could anybody please shed some light on what the best way of doing it is? or if it's even possible in C#?
what I have so far is this:
swDrawing.ActivateView("Drawing View2");
swModelExt.SelectByRay(InchesToMeters(locX), InchesToMeters(locY), 0, 0, 0, -1, 1e-5, 2, false, 0,1);
//swModelExt.SelectByRay(InchesToMeters(locX), InchesToMeters(locY+h/4), 0, 0, 0, -1, 1e-5, 2, true, 1, 1);
BalloonOptions balloonParams = swModelExt.CreateBalloonOptions();
balloonParams.Style = 1;
balloonParams.Size = 2;
Note balloon = swModelExt.InsertBOMBalloon2(balloonParams); //creates the balloon, but the parameters specified in balloonParams are not used
balloon.SetBomBalloonText(1, "13", 0, null); //changes the text of the balloon
balloon.SetTextPoint(InchesToMeters(locX + OD / scale), InchesToMeters(locY), 0); //moves the location of the text
swModel.ClearSelection2(true);
swModel.EditRebuild3();
swModel.WindowRedraw();
i'm probably missing a lot of information in this question, but thank you in advance for taking the time to help!
SolidworksApi/macros