Hide Table of Contents
IGetCenterMarkInfo Method (IView)

Gets information about each center mark that is a feature in the view.

.NET Syntax

Visual Basic (Declaration) 
Function IGetCenterMarkInfo() As System.Double
Visual Basic (Usage) 
Dim instance As IView
Dim value As System.Double
 
value = instance.IGetCenterMarkInfo()
C# 
System.double IGetCenterMarkInfo()
C++/CLI 
System.double IGetCenterMarkInfo(); 

Return Value

Array of doubles (see Remarks)

Remarks

Center marks are now annotations. Previously, center marks were features. This method is only valid for center marks that are features.

The return value is the following array of doubles:

[ numCenterMarks, [ numCenterMarkLines, lineType1, plus1StartPt[3], plus1EndPt[3], lineType2, plus2StartPt[3], plus2EndPt[3], [ lineType, lineStartPt[3], lineEndPt[3] ] ] ]

where:

numCenterMarks = is the number of center marks in this view. See also IView::GetCenterMarkCount2.

The following set of data repeats itself for each center mark in the view. The number of times the information is given is numCenterMarks:

numCenterMarkLines = number of centermark lines in the current center mark. Every center mark has at least two lines. These two lines represent the plus at the center of the circle.

lineType1 = line type associated with the first plus-sign line. See the swLineTypes_e enumeration.

plus1StartPt[3] = X,Y,Z start point of the first line in the plus sign.

plus1EndPt[3] = X,Y,Z end point of the first line in the plus sign.

lineType2 = line type associated with the second plus-sign line. See the swLineTypes_e enumeration.

plus2StartPt[3] = X,Y,Z start point of the second line in the plus sign.

plus2EndPt[3] = X,Y,Z end point of the second line in the plus sign.

This set of data also repeats itself for the remaining centermark lines in this particular center mark. The number of times this information is given is (numCenterMarkLines - 2):

LineType = line type associated with the second plus-sign line. See the swLineTypes_e enumeration.

lineStartPt[3] = X,Y,Z start point for this centermark line.

lineEndPt[3] = X,Y,Z end point for this centermark line.

 

See Also



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:   IGetCenterMarkInfo 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.