How can I get the object ids of named selections with PyDPF from a rst file?

Daniel169
Daniel169 Member Posts: 2
First Comment
**

I tried it with

ns_scoping = model.metadata.named_selection(ns_name)
ns_scoping.id
ns_scoping.ids

but this refers only to the nodes from the named selection.

Tagged:

Best Answer

  • Mike.Thompson
    Mike.Thompson Member, Employee Posts: 391
    100 Likes 25 Answers 100 Comments Second Anniversary
    ✭✭✭✭
    Answer ✓

    The mechanical object ids are not in the results file. You will need to match the component name to the named selection solver name (NS.SolverName).
    This should be unique as you cannot have components with the same name in APDL.

Answers