Selects the specified entity.
.NET Syntax
Visual Basic (Declaration) | |
---|
Function SelectByID2( _
ByVal Name As System.String, _
ByVal Type As System.String, _
ByVal X As System.Double, _
ByVal Y As System.Double, _
ByVal Z As System.Double, _
ByVal Append As System.Boolean, _
ByVal Mark As System.Integer, _
ByVal Callout As Callout, _
ByVal SelectOption As System.Integer _
) As System.Boolean |
Visual Basic (Usage) | |
---|
Dim instance As IModelDocExtension
Dim Name As System.String
Dim Type As System.String
Dim X As System.Double
Dim Y As System.Double
Dim Z As System.Double
Dim Append As System.Boolean
Dim Mark As System.Integer
Dim Callout As Callout
Dim SelectOption As System.Integer
Dim value As System.Boolean
value = instance.SelectByID2(Name, Type, X, Y, Z, Append, Mark, Callout, SelectOption) |
C++/CLI | |
---|
System.bool SelectByID2(
& System.String^ Name,
& System.String^ Type,
& System.double X,
& System.double Y,
& System.double Z,
& System.bool Append,
& System.int Mark,
& Callout^ Callout,
& System.int 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