Removing an entry from a BDF?

19 views
Skip to first unread message

Brian C

unread,
Jun 5, 2024, 9:02:34 AM6/5/24
to pyNastran Discuss
Hi,

I don't see a method to remove an entry from a BDF.  Is there a method for the BDF object or its properties (e.g. elements) to delete / remove entries?

Best,
Brian

Steven Doyle

unread,
Jun 5, 2024, 9:13:12 AM6/5/24
to pynastra...@googlegroups.com
Brian,

No. You directly delete it from elements, so/properties:
 del model.elements[eid]

Most of the cards are stored in dictionaries of objects. Loads/constraints are stored as dictionaries of lists of objects, so you’d pop the card you want to delete from those.

Best,
Steve

--
You received this message because you are subscribed to the Google Groups "pyNastran Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pynastran-disc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pynastran-discuss/71afcc0b-bc26-433e-818a-4c847c9fea4bn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages