MANox
Mechanical
- Apr 2, 2007
- 130
Hello,
some times ago I found in Iternet function for select table note:
But this operation is possible only in active sheet.
Can I modyfity something for selection in all sheets in drawing file?
Best regards
MANok
NX12 & TC10
NX1992 & Native
some times ago I found in Iternet function for select table note:
Code:
Function select_a_tabular_note(ByRef tabular_note As NXOpen.Tag) As Selection.Response
Dim message As String
Dim title As String = "Select a tabular note"
Dim scope As Integer = UFConstants.UF_UI_SEL_SCOPE_ANY_IN_ASSEMBLY
Dim response As Integer
Dim obj As NXOpen.Tag
Dim view As NXOpen.Tag
Dim cursor(2) As Double
Dim ip As UFUi.SelInitFnT = AddressOf init_proc
nxopenSession.Ui.LockUgAccess(UFConstants.UF_UI_FROM_CUSTOM)
Try
nxopenSession.Ui.SelectWithSingleDialog(message, title, scope, ip, Nothing, response, tabular_note, cursor, view)
Finally
nxopenSession.Ui.UnlockUgAccess(UFConstants.UF_UI_FROM_CUSTOM)
End Try
If response <> UFConstants.UF_UI_OBJECT_SELECTED Then
Return Selection.Response.Cancel
Else
Return Selection.Response.Ok
End If
End Function
Function init_proc(ByVal select_ As IntPtr, ByVal userdata As IntPtr) As Integer
' Selection initialization
Dim num_triples As Integer = 1
Dim mask_triples(0) As UFUi.Mask
mask_triples(0).object_type = UFConstants.UF_tabular_note_type
mask_triples(0).object_subtype = UFConstants.UF_tabular_note_section_subtype
mask_triples(0).solid_type = 0
theUfSession.Ui.SetSelMask(select_, UFUi.SelMaskAction.SelMaskClearAndEnableSpecific, num_triples, mask_triples)
Return UFConstants.UF_UI_SEL_SUCCESS
End Function
But this operation is possible only in active sheet.
Can I modyfity something for selection in all sheets in drawing file?
Best regards
MANok
NX12 & TC10
NX1992 & Native