Hide Table of Contents
AutoBalloon4 Method (IDrawingDoc)

Automatically inserts balloons in a drawing view.

.NET Syntax

Visual Basic (Declaration) 
Function AutoBalloon4( _
   ByVal Layout As Integer, _
   ByVal IgnoreMultiple As Boolean, _
   ByVal Style As Integer, _
   ByVal Size As Integer, _
   ByVal UpperTextContent As Integer, _
   ByVal UpperText As String, _
   ByVal LowerTextContent As Integer, _
   ByVal LowerText As String, _
   ByVal Layername As String, _
   ByVal BalloonsToFaces As Boolean _
) As Object
Visual Basic (Usage) 
Dim instance As IDrawingDoc
Dim Layout As Integer
Dim IgnoreMultiple As Boolean
Dim Style As Integer
Dim Size As Integer
Dim UpperTextContent As Integer
Dim UpperText As String
Dim LowerTextContent As Integer
Dim LowerText As String
Dim Layername As String
Dim BalloonsToFaces As Boolean
Dim value As Object
 
value = instance.AutoBalloon4(Layout, IgnoreMultiple, Style, Size, UpperTextContent, UpperText, LowerTextContent, LowerText, Layername, BalloonsToFaces)
C# 
object AutoBalloon4( 
   int Layout,
   bool IgnoreMultiple,
   int Style,
   int Size,
   int UpperTextContent,
   string UpperText,
   int LowerTextContent,
   string LowerText,
   string Layername,
   bool BalloonsToFaces
)
C++/CLI 
Object^ AutoBalloon4( 
&   int Layout,
&   bool IgnoreMultiple,
&   int Style,
&   int Size,
&   int UpperTextContent,
&   String^ UpperText,
&   int LowerTextContent,
&   String^ LowerText,
&   String^ Layername,
&   bool BalloonsToFaces
) 

Parameters

Layout
Layout style of the balloons as defined by swBalloonLayoutType_e or specify -1 for this argument to use the document default layout style
IgnoreMultiple
True to apply a balloon to only one instance of a component, false to apply balloons to all instances of that component
Style
Style of the balloons as defined by swBalloonStyle_e or specify -1 to use the document default balloon style
Size
Fit of balloon as defined by swBalloonFit_e or specify -1 to use the document default balloon fit
UpperTextContent
Upper-text content style as defined by swBalloonTextContent_e or specify -1 to use the document default upper text content
UpperText
Text for upper balloon
LowerTextContent

Lower-text content style as defined by swBalloonTextContent_e or specify -1 to use the document default lower text content

NOTE: This and the next argument are only effective when Style is set to swBS_SplitCirc. See the SolidWorks Help for additional details about autoballoons.

LowerText
Text for lower balloon
Layername
Name of the layer for this balloon
BalloonsToFaces
True to attach balloons to faces; false to attach balloons to edges

Return Value

Array of newly created notes

Example

Remarks

This method automatically creates the BOM balloons for the selected drawing views. If a drawing sheet is selected, BOM balloons are automatically created for all of the drawing views on that drawing sheet.

To get or set default values for...

Use...

Layout

IModelDocExtension::GetUserPreferenceInteger(swUserPreferenceIntegerValue_e.swDetailingAutoBalloonLayout, swUserPreferenceOption_e.swDetailingNoOptionSpecified) 
- or -
IModelDocExtension::SetUserPreferenceInteger(swUserPreferenceIntegerValue_e.swDetailingAutoBalloonLayout, swUserPreferenceOption_e.swDetailingNoOptionSpecified, swBalloonLayoutType_e.<Value>)

Style

IModelDocExtension::GetUserPreferenceInteger((swUserPreferenceIntegerValue_e.swDetailingBOMBalloonStyle, swUserPreferenceOption_e.swDetailingNoOptionSpecified)
- or -
IModelDocExtension::SetUserPreferenceInteger(swUserPreferenceIntegerValue_e.swDetailingBOMBalloonFit, swUserPreferenceOption_e.swDetailingNoOptionSpecified, swBalloonFit_e.<Value>)

Size

IModelDocExtension::GetUserPreferenceInteger((swUserPreferenceIntegerValue_e.swDetailingBOMBalloonFit, swUserPreferenceOption_e.swDetailingNoOptionSpecified)
- or -
(swUserPreferenceIntegerValue_e.swDetailingBOMStackedBalloonFit, swUserPreferenceOption_e.swDetailingNoOptionSpecified, swBalloonFit_e.<Value>)

UpperTextContent

IModelDocExtension::GetUserPreferenceInteger(swUserPreferenceIntegerValue_e.swDetailingBOMUpperText, swUserPreferenceOption_e.swDetailingNoOptionSpecified)
-  or -
IModelDocExtension::SetUserPreferenceInteger(swUserPreferenceIntegerValue_e.swDetailingBOMUpperText, swUserPreferenceOption_e.swDetailingNoOptionSpecified, swBalloonTextContent_e.<Value>)

LowerTextContent

IModelDocExtension::GetUserPreferenceInteger(swUserPreferenceIntegerValue_e.swDetailingBOMLowerText, swUserPreferenceOption_e.swDetailingNoOptionSpecified)
- or -
IModelDocExtension::SetUserPreferenceInteger(swUserPreferenceIntegerValue_e.swDetailingBOMLowerText, swUserPreferenceOption_e.swDetailingNoOptionSpecified, swBalloonTextContent_e.<Value>)

This method also allows you to get only the balloons just created.

 

See Also

Availability

SolidWorks 2010 SP4, Revision Number 18.4


Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

 
*Email:  
Subject:   Feedback on Help Topics
Page:   AutoBalloon4 Method (IDrawingDoc)
*Comment:  
*   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:

x

We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again
x

Web Help Content Version: API Help (English only) 2010 SP05

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.