@parth_moradiya wrote:
But the problem is when I use this snippet with component name for example 000842:1, it is not including balloon for that component in drawing.
@parth_moradiya, is the balloon for 000842:1 ending up on the layer described in my last post? If that is the case then that is the indicating that it can not find suitable geometry to attach to.
Having said that, and explored your current approach, let me say that I have moved away from using these iLogic functions, and have just started to use and recommend the Balloons.Add function. I find this to be a more reliable approach overall.
See the attached 2022 file set to explore this.
Hope this helps,
Curtis

Dim Sheet_1 = ThisDrawing.Sheets.ItemByName("Sheet:1")
Dim VIEW1 = Sheet_1.DrawingViews.ItemByName("VIEW1")
Dim Pt1 = VIEW1.SheetPoint(1.4, 0.4)
Dim Face = VIEW1.GetIntent("BBBB", "Face1", intent := PointIntentEnum.kMidPointIntent , nearPoint := Pt1)
Dim balloon1 = Sheet_1.Balloons.Add("ComponentA:1 balloon", {Pt1}, Face)
open the assembly and run the rule, then go to the drawing and run the rule to see it update the balloon

