Hide Table of Contents
GetWitnessGeomInfo Method (IView)

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

.NET Syntax

Visual Basic (Declaration) 
Function GetWitnessGeomInfo() As System.Object
Visual Basic (Usage) 
Dim instance As IView
Dim value As System.Object
 
value = instance.GetWitnessGeomInfo()
C# 
System.object GetWitnessGeomInfo()
C++/CLI 
System.Object^ GetWitnessGeomInfo(); 

Return Value

Array of doubles (see Remarks)

Example

Remarks

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

[color_value,

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

Where:

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 

Call IView::GetWitnessEntitiesCount to get the size of the array returned by this method.

 

See Also

Availability

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

 
*Email:  
Subject:   Feedback on Help Topics
Page:   GetWitnessGeomInfo 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) 2019 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.