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