I have a Block Styler application that has a Select Part from List block in it and it looks as if the Loaded Parts list is automatically sorted alphabetically by default. I would like the array of tagged objects to be in either the order I pick them or based on the sort order in the Assembly Navigator. Is this possible or am I stuck with what the block produces by default? Below is the snippet of code that gets the selected parts.
Dim theParts() As TaggedObject = selectPart0.GetProperties.GetTaggedObjectVector("SelectedObjects")
Starting with NX 8 you no longer need the GetProperties method, there is a SelectedObjects method, just if you didn't know.
I think the list order can be specified, when you define the block properties in block styler.
Production: NX10.0.3, VERICUT 8.1, FBM, MRL 3.1.7 | TcUA 10.1 MP7 Patch 0 (10.1.7.0) | TcVis 11.4
Development: C (ITK), .NET, Tcl/Tk Testing: NX12.0 | AWC 3.4 Preparing: NX12.0
Employees of the customers, together we are strong
How to Get the Most from Your Signature in the Community
NX Customization - Best Practice Guide
Well unfortunately I was unable to find and option to change the sort order of the block in the block styler application. I know that there is no event handler such as OnClick or OnSelect that is generated for the block that would capture the selection or at least I have not found it yet. Is it possible to capture the list of items as they are being selected and create my own list from that? I am needing my list of selected items to be be sorted by their selection order rather that the numerically sorted list generated after selecting the OK button?
Thanks in advance for your help,