Showing results for 
Search instead for 
Do you mean 
Reply
Solved! Go to solution

Block Styler SelectPartFrom List Question

I have created a BlockStyler application that uses the SelectPartFromList block and I am not sure

how to display the name(s) of the component(s) that have been selected in a messagebox. I am using this block to select components in an assembly.

 

Thanks,

Scott

 

NX9.0

VB.Net

2 REPLIES
Solution
Solution
Accepted by topic author duder258
‎08-26-2015 07:36 PM

Re: Block Styler SelectPartFrom List Question

 

This worked for me:

 

(In the update callback)


            If block Is selectPart0 Then

                Dim theParts() As TaggedObject = _
                    selectPart0.GetProperties.GetTaggedObjectVector("SelectedObjects")

                Dim longString As String = ""
                For Each thisPart As Part In theParts
                    longString = longString & "   " & thisPart.Leaf
                Next

                MsgBox(longString, MsgBoxStyle.Information)

            End If

Re: Block Styler SelectPartFrom List Question

Thanks Steve, this did the trick!

 

Regards,

Scott