scoping in a wizard for named selection --> property of named selection

In a wizard I am scoping for a named selection from which I want to export some data



Here a get a list where I can select the desired named selection from a drop down menu.

In a separate function I want to get the name of the selected "named selections" with the following code:

SelectParts=step.Properties["Export_Result/selected_parts"].Value

However I do not get the name.

If I use the term
SelectParts=step.Properties["Export_Result/selected_parts"].Name

I get the "selected_parts" as name but not the actual named selection Name as displayed in the tree.

How can I get the name of the named selection?

Thanks
Wolke

Answers

  • Mike.Thompson
    Mike.Thompson Member, Employee Posts: 240
    First Anniversary First Comment 5 Likes Ansys Employee

    SelectParts=step.Properties["Export_Result/selected_parts"].Value
    MyNSName=SelectParts.Name