Hide Table of Contents
GetBreakLineInfo2 Method (IView)

Gets information for all of the break lines in this view.

.NET Syntax

Visual Basic (Declaration) 
Function GetBreakLineInfo2() As System.Object
Visual Basic (Usage) 
Dim instance As IView
Dim value As System.Object
value = instance.GetBreakLineInfo2()
System.object GetBreakLineInfo2()
System.Object^ GetBreakLineInfo2(); 

Return Value

Array of doubles for all break lines in the view (see Remarks)



The return value is a one-dimensional array of doubles for all break lines, consecutively. Each break line in the array consists of the following data:


              [ breaklineStyle, color, lineType, lineStyleIndex, lineWeight, layerId,

  layerOverride, number of lines, number of arcs, [break line or arc data] ]




Valid returns are found in swBreakLineStyle_e


COLORREF returned as an integer. Return value could be 0 or -1 for default color


Valid returns are found in swLineTypes_e. A lineType is a combination of a lineStyle and lineWeight.


Valid line styles can be found in swLineStyles_e.


An integer value defining the line width. Valid width values can be found in swLineWeights_e.


An integer value indicating which layer holds this entity. The ILayer object can be obtained by passing this integer value to ILayerMgr::GetLayerById and ILayerMgr::IGetLayerId.


An integer with bit flags set to determine which properties, if any, have been overridden with respect to the Layer default properties. If the bit value is set, then the specific property or properties have been overridden. Valid bit values are found in swLayerOverride_e:

  • color = 0x1

  • style = 0x2

  • width = 0x4

Therefore, if LayerOverride is returned as 3, then the color and style were specifically set for this item and may not match the default values associated with this item's layer.

number of lines

Number of line segments in the break line.

number of arcs

Number of arcs in the break line.


Each break line consists of a pair of lines or arcs. Each line in the pair consists of one or more line segments. Each line segment consists of a start point and an end point to help demarcate break line intersections. The break line or arc data returned by this API for each type of break line is as follows:


For swBreakLineStyle_e...



Break line data is packed in 12 doubles (2 lines X 1 segment X 2 points X 3 coordinates)


Break line data is packed in 60 doubles (2 lines X 5 segments X 2 points X 3 coordinates)


Break line data is packed in 60 doubles (2 lines X 5 segments X 2 points X 3 coordinates)


Each arc in the pair is packed as follows:

  • arcDirection (1 double)

  • startPoint (3 doubles)

  • EndPoint (3 doubles)

  • CenterPoint (3 doubles)


See Also


SOLIDWORKS 2011 FCS, Revision Number 19.0

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

Subject:   Feedback on Help Topics
Page:   GetBreakLineInfo2 Method (IView)
*   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:


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

Web Help Content Version: API Help (English only) 2016 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.