Imports System
Imports NXOpen
Imports NXOpen.UF
Imports NXOpen.UI
Imports NXOpen.Utilities
Module measurecurelength
Dim s As Session = Session.GetSession()
Dim ufs As UFSession = UFSession.GetUFSession()
Dim workpart As Part = s.Parts.Display
Sub Main()
Dim curves() As NXOpen.Tag
Dim num_curves As Integer
Dim n As String = vbCrLf
Dim cnt As Integer = 0
Dim response As Integer
Dim inx As Integer = 0
Dim prompt As String = "select curve or edge"
Dim mask_crvs As UFUi.SelInitFnT = AddressOf mask_for_curves
Dim nullUnit As Unit = Nothing
Dim objects1(100) As DisplayableObject