Selects the specified entity.
.NET Syntax
Visual Basic (Declaration) | |
---|
Function SelectByID2( _
ByVal Name As String, _
ByVal Type As String, _
ByVal X As Double, _
ByVal Y As Double, _
ByVal Z As Double, _
ByVal Append As Boolean, _
ByVal Mark As Integer, _
ByVal Callout As Callout, _
ByVal SelectOption As Integer _
) As Boolean |
Visual Basic (Usage) | |
---|
Dim instance As IModelDocExtension
Dim Name As String
Dim Type As String
Dim X As Double
Dim Y As Double
Dim Z As Double
Dim Append As Boolean
Dim Mark As Integer
Dim Callout As Callout
Dim SelectOption As Integer
Dim value As Boolean
value = instance.SelectByID2(Name, Type, X, Y, Z, Append, Mark, Callout, SelectOption)
|
Parameters
- Name
Name of object to select or an empty string
- Type
Type of object (uppercase) as defined in swSelectType_e or an empty string
- X
X selection location or 0
- Y
Y selection location or 0
- Z
Z selection location or 0
- Append
If... |
And if entity is... |
Then... |
True |
Not already selected |
The entity is appended to the current selection list |
|
Already selected |
The entity is removed from the current selection list |
|
|
|
false |
Not already selected |
The current selection list is cleared, and then the entity is put on the list |
|
Already selected |
The current selection list remains the same |
- Mark
Value that you want to use as a mark; this value is used by other functions that require ordered selection
- Callout
Pointer to the associated callout
- SelectOption
Selection option as defined in swSelectOption_e (see Remarks)
Return Value
True if item was successfully selected, false if not
Example
Remarks
See Also
Availability
SolidWorks 2005 FCS, Revision Number 13.0