Hide Table of Contents
IGetWitnessGeomInfo Method (IView)

Gets the geometry data for all of the virtual sharp witness lines in this drawing view.

.NET Syntax

Visual Basic (Declaration) 
Function IGetWitnessGeomInfo( _
   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.IGetWitnessGeomInfo(ArraySize)
System.double IGetWitnessGeomInfo( 
   System.int ArraySize
System.double IGetWitnessGeomInfo( 
&   System.int ArraySize


Size of the virtual sharp witness line geometry data array (see Remarks)

Return Value

  • in-process, unmanaged C++: Pointer to an array of doubles (see Remarks)
  • VBA, VB.NET, C#, and C++/CLI: Not supported

See In-process Methods for details about this type of method.


This method returns an array containing the following data for each virtual sharp in the view:


swLineStyles_e option (-1 if no line style is specified),

swLineWeights_e option (-1 if no line weight is specified),

layer ID (-1 if no layer is specified),

swLayerOverride_e option,

0 (NOTE: 0 = witness line data),

number (m) of witness lines,

witness line 1[start_point[x,y,z], end_point[x,y,z&cd;


witness line m[start_point[x,y,z], end_point[x,y,z&cd;,

1 (NOTE: 1 = witness arc data),

number (n) of witness arcs,

witness arc 1[start_point[x,y,z], end_point[x,y,z], center_point[x,y,z], normal_point[x,y,z&cd;


witness arc n[start_point[x,y,z], end_point[x,y,z], center_point[x,y,z], normal_point[x,y,z&cd;]


color_value = MAX(MIN(red_rgb_value,255),0) + MAX(MIN(green_rgb_value,255),0)*16*16 + MAX(MIN(blue_rgb_value,255),0)*16*16*16*16 

Before calling this method, call IView::GetWitnessEntitiesCount to get the size of the array returned by this method.


See Also


SOLIDWORKS 2012 FCS, Revision Number 20.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:   IGetWitnessGeomInfo 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.