Hi @cowski1 Thank you!
I can't find the NXOpen.UF namespace in the NXOpen API Reference for NX11. Searching "NXOpen.UF" gives nothing.
And in Visual Studio it looks like this:
Maybe it's unavailable in NX11.
Up through NX 10, all the API functions are documented in a single .chm file. For some unknown reason, they decided to split the reference into 2 .chm files for NX 11 (one contains all the UF functions).
Visual studio isn't helping because you are calling it incorrectly. You will need a reference to the UF session; then you can call the .AskEdgeTolerance method via your UF session object.
The code will end up looking something like the following:
Option Strict Off Imports System Imports NXOpen Imports NXOpen.UF Module Module112 Sub Main() Dim theSession As Session = Session.GetSession() Dim theUfSession As UFSession = UFSession.GetUFSession Dim workPart As Part = theSession.Parts.Work Dim lw As ListingWindow = theSession.ListingWindow lw.Open() Dim myEdge As Edge 'add your code to get edge of interest Dim myEdgeTol As Double theUfSession.Modl.AskEdgeTolerance(myEdge.Tag, myEdgeTol) lw.WriteLine("Edge: " & myEdge.Tag.ToString) lw.WriteLine("Edge tolerance: " & myEdgeTol.ToString) End Sub
Sorry @surfactant , I put this link, because it is easier for me to look in for doc Python that doc NXOpen.NET , I don't know Python , but when I try to find an class or an function Vb.net , the entry Quick search is very convenient
Production: NX18.104.22.168,VERICUT 8.1.2
Development: Tcl/Tk, Gnuplot