Hide Table of Contents
GetSelectionSpecification Method (ISelectionMgr)

Gets the selection specification at the specified index of the current selection list.

.NET Syntax

Visual Basic (Declaration) 
Function GetSelectionSpecification( _
   ByVal Index As System.Integer, _
   ByRef SelectByString As System.String, _
   ByRef ObjectType As System.String, _
   ByRef Type As System.Integer, _
   ByRef X As System.Double, _
   ByRef Y As System.Double, _
   ByRef Z As System.Double _
) As System.Boolean
Visual Basic (Usage) 
Dim instance As ISelectionMgr
Dim Index As System.Integer
Dim SelectByString As System.String
Dim ObjectType As System.String
Dim Type As System.Integer
Dim X As System.Double
Dim Y As System.Double
Dim Z As System.Double
Dim value As System.Boolean
 
value = instance.GetSelectionSpecification(Index, SelectByString, ObjectType, Type, X, Y, Z)
C# 
System.bool GetSelectionSpecification( 
   System.int Index,
   out System.string SelectByString,
   out System.string ObjectType,
   out System.int Type,
   out System.double X,
   out System.double Y,
   out System.double Z
)
C++/CLI 
System.bool GetSelectionSpecification( 
&   System.int Index,
&   [Out] System.String^ SelectByString,
&   [Out] System.String^ ObjectType,
&   [Out] System.int Type,
&   [Out] System.double X,
&   [Out] System.double Y,
&   [Out] System.double Z
) 

Parameters

Index
1 <= Index in the current list of selected items <= ISelectionMgr::GetSelectedObjectCount2
SelectByString
Feature name of object at Index; "" if object is not a feature
ObjectType
Type of object at Index
Type
Type of object at Index as defined in swSelectType_e
X
X coordinate of object at Index; 0 if SelectByString is not ""
Y
Y coordinate of object at Index; 0 if SelectByString is not ""
Z
Z coordinate of object at Index; 0 if SelectByString is not ""

Return Value

True if successful, false if not

Example

 

See Also

Availability

SOLIDWORKS 2015 FCS, Revision Number 23.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:   GetSelectionSpecification Method (ISelectionMgr)
*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) 2017 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.