Does anyone know if there is a way to show all the named reference sets available within a complete top assembly structure from the first assembly down to the last lowest detail?
So basically show me a list of each part/assembly and then list the reference sets within each of those.
Also is there a way to do that same thing for Arrangements?
Have you tried configuring the Assembly Navigator columns to show the reference sets and arrangements columns?
Or, are you looking for something else?
There is an example that I found on GTAC under document ID nx_api5589 that will report back the reference sets in the workpart. You can take this logic and combine it with ones that walk through an assembly to get a list of all the reference sets. I have included that code below.
Option Strict Off Imports System Imports NXOpen Module report_reference_sets_in_workpart Sub Main() Dim s As Session = Session.GetSession() Dim workpart As Part = s.Parts.Work Dim lw As ListingWindow = s.ListingWindow lw.Open() Dim refSets() As ReferenceSet = workpart.GetAllReferenceSets For Each refSet As ReferenceSet In refSets lw.WriteLine(" Reference Set: " + refSet.Name) Next End Sub Public Function GetUnloadOption(ByVal dummy As String) As Integer GetUnloadOption = NXOpen.Session.LibraryUnloadOption.Immediately End Function End Module
RonY, I do have that column, unfortunately what I need is that column basically telling me all the reference sets, not just the active one, within each part and subassembly and maybe the arrangements as well.
ScottFelber, Outstanding! I'll see what I can do with this. That gives me hope! Just need to muddle my way through how to code it taking from the other codes. Thanks again!
Corey if you start to have some issues with coding, remember there is another group call NX Customization and Programming. You maybe able to get some help over there.