Hide Table of Contents
GetConsiderLeadersAsLines Method (IModelDoc2)

Gets whether the display data of a leader is included as lines when the lines are retrieved from a view or annotation in this document.

.NET Syntax

Visual Basic (Declaration) 
Function GetConsiderLeadersAsLines() As System.Boolean
Visual Basic (Usage) 
Dim instance As IModelDoc2
Dim value As System.Boolean
value = instance.GetConsiderLeadersAsLines()
System.bool GetConsiderLeadersAsLines()
System.bool GetConsiderLeadersAsLines(); 

Return Value

True if leaders are returned as line data, false if leaders are not returned as line data


The various GetLeaderCount and GetLeaderAtIndex mehtods return information about where the vertices of the leader are located. These methods also return the leader information as part of its line information.

Depending on what your program is trying to accomplish and which APIs it is using, this duplication of information may not be desirable. IModelDoc2::SetConsiderLeadersAsLines controls this behavior by setting a flag on the document that indicates whether the leader information should be returned as part of the line information. IModelDoc2::GetConsiderLeadersAsLines gets the current behavior for this document.


See Also


SOLIDWORKS 2001Plus FCS, Revision Number 10.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:   GetConsiderLeadersAsLines Method (IModelDoc2)
*   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.