iLogic auto balloon in drawing

iLogic auto balloon in drawing

FeelGoodGirl
Advocate Advocate
528 Views
2 Replies
Message 1 of 3

iLogic auto balloon in drawing

FeelGoodGirl
Advocate
Advocate

hi

 

I am trying to automate drawings. I work with Inventor 2023.

 

The next step is to add the balloons via iLogic. I did find with the snippet how to add the balloon. Only now the leader is stuck at the bottom of the model in the corner. I do not find this clear. However, I cannot manage to move this point. Could someone help me?

 

FeelGoodGirl_0-1751892794840.png

 

Dim Sheet_1 = ThisDrawing.Sheets.ItemByName("Sheet:1") 
Dim VIEW1 = Sheet_1.DrawingViews.ItemByName("VIEW1") 
Dim ptCyl = VIEW1.SheetPoint(-0.1, 0.5) 
Dim balloon1 = Sheet_1.Balloons.Add("Part2 balloon", {ptCyl }, VIEW1.GetIntent("Part2:1", "Part2_Edge0"))

 

0 Likes
Accepted solutions (1)
529 Views
2 Replies
Replies (2)
Message 2 of 3

mateusz_baczewski
Advocate
Advocate
Accepted solution

Hi,

The optional parameter of the GetIntent function is Intent. This is the place where the balloon’s anchor point (arrow) will be attached. Add something like this to your code:

 

edge1 = WIDOK3.GetIntent("Part2:1", "Part2_Edge0",PointIntentEnum.kMidPointIntent)
Dim balloon1 = Sheet_1.Balloons.Add("Part2 balloon", {ptCyl }, edge1)

lub po prostu

 

Dim balloon1 = Sheet_1.Balloons.Add("Part2 balloon", {ptCyl }, WIDOK3.GetIntent("Part2:1", "Part2_Edge0",PointIntentEnum.kMidPointIntent))

 

IManagedDrawingView.GetIntent

If you found it helpful, a "Like" would be much appreciated!
If this post solved your problem, please mark it as "Solution.".

0 Likes
Message 3 of 3

FeelGoodGirl
Advocate
Advocate

Thank you for your help!

0 Likes