Hide Table of Contents
AutoBalloon4 Method (IDrawingDoc)

Obsolete. Superseded by IDrawingDoc::AutoBalloon5.

.NET Syntax

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

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 2008 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) 2013 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.