ansys / pyacp

Python Client for Ansys Composite PrepPost
https://acp.docs.pyansys.com
MIT License
4 stars 1 forks source link

Cloning + storing a locked ElementSet produces an empty one #565

Open greschd opened 3 weeks ago

greschd commented 3 weeks ago

When cloning and subsequently storing a locked ElementSet (e.g. All_Elements), the resulting Element Set is empty.

The reason is that locked Element Sets do not expose their element_labels (i.e., it is empty), as it is not editable.

Proposed resolution: return the filled element_labels from the API, but disallow changing them for locked objects. Note that this behavior is different from the ACP GUI scripting, where the value is always [] (empty list). However, it would produce copy / paste behavior consistent with the GUI.

Will need to be changed in the backend.

Tagging @roosre for comment.