What do you do when you have more than 26 balloons in the drawing?
For the balloons We start with A-Z (not using Q becaue it looks too much like a 0) then go to AA, AB - AZ , then BA, BB- BZ etc.
They picked this method years ago. In our case the number of characters in a balloon never exeeds 2 characters.
based on The base code from Niels It should be something like
'open a drawing with balloons
'Macro to change all balloons to custom property: SAPMaterial
Dim swApp As Object
Dim Drw As Object
Dim View As Object
Dim Note As Object
Dim Bool As Boolean
'Dim swAnnotation As Annotation
'Dim BaloonType As Integer
Set swApp = Application.SldWorks
Set Drw = swApp.ActiveDoc
If Not Drw Is Nothing Then
If Drw.GetType = 3 Then 'Activedoc = Drawing?
Set View = Drw.GetFirstView '= drawing sheet
Set View = View.GetNextView '= first real view
While Not View Is Nothing 'loop through views
Set Note = View.GetFirstNote
While Not Note Is Nothing 'loop through notes
If Note.IsBomBalloon Then
' swAnnotation = Note.GetAnnotation
' Get the Annotation in the Balloon
' Do some kind of change the Number to a Letter based on our custom array voodoo
Set Note = Note.GetNext
Set View = View.GetNextView
Since it's all kins of new to me.. Where can I find a good overview of all the calls I can make in a macro?
For example.. look at the above Code... you do a swAnnotation = Note.GetAnnotation
so now you have the Annotation in the balloon..
Where can I find how I can set the new annotaion in a balloon.
Sorry if this is a basic question.. but I'm having a Hard time finding the right calls.
Is there good API reference somewhere that can give me all I can do with a Balloon in Solidworks,
I'm having difficult time finding any type of reference about it in the online Help