How to Balloon Move and/or Align

How to Balloon Move and/or Align

bradeneuropeArthur
Mentor Mentor
1,647 Views
8 Replies
Message 1 of 9

How to Balloon Move and/or Align

bradeneuropeArthur
Mentor
Mentor

Hi,

 

How can I move/reposition/align a drawing balloon with either vba/vb.net/I-logic?

 

Regards,

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Accepted solutions (3)
1,648 Views
8 Replies
Replies (8)
Message 2 of 9

bradeneuropeArthur
Mentor
Mentor

Hi,@Sergio.D.Suárez 

 

Maybe you have an idea for this!

 

Regards,

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 3 of 9

Sergio.D.Suárez
Mentor
Mentor
Accepted solution

Hello! try to take a sheet, place a view and add a ballon. Then it is necessary to create an access to its coordinates and it worked. The problem that I can not reposition to another place with code, try to match the corrected ones and do not perform any action, I keep trying and trying. regards

 

Dim doc = ThisDoc.Document

coordX = Round(doc.Activesheet.Balloons(1).Position.X,3)
coordY = Round(doc.Activesheet.Balloons(1).Position.Y,3)
MessageBox.Show(coordX & " | " & coordY )

Dim oPlacementPoint As Point2d = ThisApplication.TransientGeometry.CreatePoint2d(2,2)

'doc.Activesheet.Balloons(1).Position = oPlacementPoint

doc.Activesheet.Balloons(1).Position.X = oPlacementPoint.X
doc.Activesheet.Balloons(1).Position.Y = oPlacementPoint.Y

 


Please accept as solution and give likes if applicable.

I am attaching my Upwork profile for specific queries.

Sergio Daniel Suarez
Mechanical Designer

| Upwork Profile | LinkedIn

Message 4 of 9

bradeneuropeArthur
Mentor
Mentor

Hi @Sergio.D.Suárez 

 

That seems to be also my problem.

Repositioning with "putpointdata" does not work....

 

Thanks anyway!

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

Message 5 of 9

bradeneuropeArthur
Mentor
Mentor
Accepted solution

Hi,

 

Found it after removed the uncommented...

 

Public Sub main()
Dim doc As DrawingDocument
Set doc = ThisApplication.ActiveDocument '.Document

coordX = Round(doc.ActiveSheet.Balloons(1).Position.X, 3)
coordY = Round(doc.ActiveSheet.Balloons(1).Position.Y, 3)
MsgBox (coordX & " | " & coordY)

Dim oPlacementPoint As Point2d
Set oPlacementPoint = ThisApplication.TransientGeometry.CreatePoint2d(2, 2)

doc.ActiveSheet.Balloons(1).Position = oPlacementPoint

End Sub

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

Message 6 of 9

Sergio.D.Suárez
Mentor
Mentor

I imagined it, it must be an ilogic bug, in ilogic 2018 it does not work, or maybe you have to add a header at the beginning to make it work.
I'm glad that as always you reach the solution! Best Regards!


Please accept as solution and give likes if applicable.

I am attaching my Upwork profile for specific queries.

Sergio Daniel Suarez
Mechanical Designer

| Upwork Profile | LinkedIn

0 Likes
Message 7 of 9

bradeneuropeArthur
Mentor
Mentor

Hi, @Sergio.D.Suárez 

 

Thank you also as usual.

You really put me in the right direction, so actual you solved it.

Thanks for supporting in the forum.

 

Regards,

 

 

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 8 of 9

bradeneuropeArthur
Mentor
Mentor
Accepted solution

Hi, @Sergio.D.Suárez 

 

Also the I-logic code works fine with some modification!

 

Dim doc As DrawingDocument = ThisDoc.Document

coordX = Round(doc.Activesheet.Balloons(1).Position.X,3)
coordY = Round(doc.Activesheet.Balloons(1).Position.Y,3)
MessageBox.Show(coordX & " | " & coordY )

Dim oPlacementPoint As Point2d = ThisApplication.TransientGeometry.CreatePoint2d(20,20)

doc.Activesheet.Balloons(1).Position = oPlacementPoint

Regards,

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

Message 9 of 9

Anonymous
Not applicable

Hi, With very little knowledge  and with above reference of code,  I tweak code a bit and managed to move my balloons in horizontal, Vertical and in Diagonal direction

But, I want  my Balloons placed "AROUND" can somebody help me go in right direction.

here is my ilogic code with reference to above post:

 

 

Dim doc As DrawingDocument = ThisDoc.Document

Dim n1 As Integer = 0 
Dim n2 As Integer = 0
n1+= 10
n2+= 10
Dim i As Integer
For i = 1 To 28
coordX = Round(doc.ActiveSheet.Balloons(i).Position.X,n1)
coordY = Round(doc.ActiveSheet.Balloons(i).Position.Y,n1)
'MessageBox.Show(coordX & " | " & coordY )

'Dim oPlacementPoint As Point2d = ThisApplication.TransientGeometry.CreatePoint2d(20, ActiveSheet.View("VIEW2").View.Top)
Dim oPlacementPoint As Point2d = ThisApplication.TransientGeometry.CreatePoint2d(n1+i,ActiveSheet.View("VIEW2").View.Top)


doc.ActiveSheet.Balloons(i).Position = oPlacementPoint
Next

 

 

 

 

Regards

Hameed

0 Likes