Gets the selected component in an assembly or drawing.
.NET Syntax
Visual Basic (Declaration) | |
---|
Function GetSelectedObjectsComponent4( _
ByVal Index As System.Integer, _
ByVal Mark As System.Integer _
) As System.Object |
Visual Basic (Usage) | |
---|
Dim instance As ISelectionMgr
Dim Index As System.Integer
Dim Mark As System.Integer
Dim value As System.Object
value = instance.GetSelectedObjectsComponent4(Index, Mark) |
C# | |
---|
System.object GetSelectedObjectsComponent4(
System.int Index,
System.int Mark
) |
C++/CLI | |
---|
System.Object^ GetSelectedObjectsComponent4(
& System.int Index,
& System.int Mark
) |
Parameters
- Index
Index position within the current list of selected items, where the index ranges from 1 to ISelectionMgr::GetSelectedObjectCount2 (see Remarks)
- Mark
- -1 = All selections regardless of marks
-
0 = Only the selections without marks
-
Any other value = Value that was used to mark and select an object
Return Value
Component or
Drawing component
Example
Remarks
See Also
Availability
SOLIDWORKS 2013 SP03, Revision Number 21.3