i try to identify the name of each tabular note table on drawing, so i find the following and try to add the last two lines:
'edit tab note cell text revised by me
Imports System
Imports NXOpen
Imports NXOpen.Annotations
Imports NXOpen.UI
Imports NXOpen.UF
Imports NXOpen.Utilities
Imports System.Windows.Forms
Imports System.Environment
Module find_name_of_tabular
Dim theSession As Session = Session.GetSession()
Dim ufs As UFSession = NXOpen.UF.UFSession.GetUFSession()
Dim theUI As UI = UI.GetUI()
Dim lw As ListingWindow = theSession.ListingWindow
Sub Main()
Dim displayPart As Part = theSession.Parts.Display
lw.Open()
Dim workPartTag As NXOpen.Tag = displayPart.Tag
For Each tabularNote As NXOpen.Tag In workPartTag
error is: expression of nxopen.tag is not a collection of type
i just try to mimic the way i did for note which is: or Each theNote As Note In displayPart.Notes
but here it doesnt work.
what will be the correct way to state For...each....in ? thanks
'edit tab note cell text revised by me
Imports System
Imports NXOpen
Imports NXOpen.Annotations
Imports NXOpen.UI
Imports NXOpen.UF
Imports NXOpen.Utilities
Imports System.Windows.Forms
Imports System.Environment
Module find_name_of_tabular
Dim theSession As Session = Session.GetSession()
Dim ufs As UFSession = NXOpen.UF.UFSession.GetUFSession()
Dim theUI As UI = UI.GetUI()
Dim lw As ListingWindow = theSession.ListingWindow
Sub Main()
Dim displayPart As Part = theSession.Parts.Display
lw.Open()
Dim workPartTag As NXOpen.Tag = displayPart.Tag
For Each tabularNote As NXOpen.Tag In workPartTag
error is: expression of nxopen.tag is not a collection of type
i just try to mimic the way i did for note which is: or Each theNote As Note In displayPart.Notes
but here it doesnt work.
what will be the correct way to state For...each....in ? thanks