Give you an example
Sub SelectCurve(ByRef selectedObject As NXObject, ByRef helpPoint As Point3d)
Dim ui As UI = ui.GetUI
Dim message As String = "Select curve"
Dim title As String = "Selection"
Dim scope As Selection.SelectionScope = Selection.SelectionScope.WorkPart
Dim keepHighlighted As Boolean = True
Dim includeFeatures As Boolean = True
Dim response As Selection.Response
Dim selectionAction As Selection.SelectionAction = Selection.SelectionAction.ClearAndEnableSpecific
response = ui.SelectionManager.SelectObject(message, title, scope, false, false, selectedObject, helpPoint)
If response = Selection.Response.Cancel Or response = Selection.Response.Back Then
Return
End If
End Sub |