Hide Table of Contents
IGetBreakLineInfo2 Method (IView)

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

.NET Syntax

Visual Basic (Declaration) 
Function IGetBreakLineInfo2( _
   ByVal ArraySize As System.Integer _
) As System.Double
Visual Basic (Usage) 
Dim instance As IView
Dim ArraySize As System.Integer
Dim value As System.Double
 
value = instance.IGetBreakLineInfo2(ArraySize)
C# 
System.double IGetBreakLineInfo2( 
   System.int ArraySize
)
C++/CLI 
System.double IGetBreakLineInfo2( 
&   System.int ArraySize
) 

Parameters

ArraySize
Number of break lines

Return Value

Array of break line information (see Remarks)

Remarks

Before calling this method, call IView::GetBreakLineCount2 to get the value for ArraySize.

 

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] ] 

 

breaklineStyle

Valid returns are found in swBreakLineStyle_e.

color

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

lineType

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

lineStyleIndex

Valid line styles can be found in swLineStyles_e.

lineWeight

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

layerId

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.

layerOverride

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 pairs of lines in the break line.

number of arcs

Number of pairs 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...

Then...

swBreakLineStraight

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

swBreakLineZigZag

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

swBreakLine_SmallZigZag

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

swBreakLine_Curve

Each arc in the pair is packed as follows:

  • arcDirection (1 double)

  • startPoint (3 doubles)

  • EndPoint (3 doubles)

  • CenterPoint (3 doubles)

 

 

See Also

Availability

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

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