Steve, Thanks so much for the quick reply.
I figured out how to use the reject_lines list that you pointed out. I will go with that.
Some explanation of my ....condition.
I'm new to Python and wanted to try the combination of the language and your pyNastran. I have always done this work with Matlab. I'm convinced now you have an excellent alternative.
I started last December and had to figure out both Python and your environment at the same time. I have a complex project and have tried to pick the quickest and simplest path through to a working Nastran problem as possible. I can make it smarter later. We have a large design spread sheet with a system parametric description. I use VBA to export the design in the EU CPACS 3.0 XML format. Then I use pyNastran to build the FEM by reading the xml file. The geometry extraction is pretty straightforward, but building a robust mesh is difficult. The project's goal is to hide as much of the Nastran modeling as possible from the spreadsheet user.
I use Spyder for an IDE. It does provide access to the object methods etc. I also use all the web pages that you expose for how tos and automatic documentation.
I do use the card functions that you provide to build the data deck. They work great.
I partitioned the Nastran deck into chunks in their own file because... different blocks of code are organized to build different pieces. There is a structural file and an aero file. The static structural solves don't need the aero file. There are several top level run decks for the various problems that include the structural deck and the aero deck. There are runs for different static loads, a modal solve, a flutter run, a static aeroelastic run, maybe someday a gust run. This file organization seems to help keep all that manageable, but leads to include files.
I still struggle with higher level language aspects, like figuring out from the hints what is a method on what thingie and what is a list or property. The debugger is very helpful for poking around. But its hard to figure out the high level strategy for using the library this way. Your intro examples help somewhat, but I don't find much guidance for applications like mine that build the entire problem deck from scratch.
My next steps, after getting the various Nastran problems to solve, is to read the answers in the .f06 and .op2 with your library. Like I said, I had always done this with Matlab and a proprietary library. So I am looking for ways similar to how I used to do it back then.
Sincerely,
Hugh