Hi,
First off, pyNastran is a fantastic tool and I am super impressed with its quality and usefulness - thank you for all the development efforts!
I am trying to export/write some cards after having modified them in pyNastran. I would like to export them sorted by their new Element ID.
However, when using either update_card() or directly editing the field of the card (eg. cbush.eid = 1234), the original dictionary IDs of the read BDF remain the same. Since the order of model.elements.items() is determined by the original ID, the cards are written following the order of their old IDs.
Is there a way to update these dictionary IDs? Or is there a way to write out sorting on the card ID, not the BDF dictionary ID.
Thank you very much!
Stephan
Example:
Modified CBUSH cards using:
model.update_card('CBUSH', 6010001, 1, 329001)
model.elements.items()
Output is:
dict_items([(6010001, CBUSH 329001 319010 141240 320291 319001