Retain User Comments In NASTRAN .bdf File

Altair Forum User
Altair Forum User
Altair Employee
edited July 2023 in Community Q&A

Hey everyone,

 

I have a .bdf file (the solver deck file required for NASTRAN). Hypermesh creates this file by the export process. 

 

My work requires that I edit the .bdf text, but also use the graphical features of Hypermesh.
I would like to find a way of retaining user-added comments in the .bdf.


Let me explain:

1. Create mesh
2. Export as .bdf
3. Comment the .bdf file appropriately
-BUT-
4. When I re-import to HM and export, my comments are removed.

 

Is there a way to keep them? Hypermesh will keep comments that are attached to material properties (for example, if I add a comment to a MAT1 card, they will stay with import/export)

 

Thanks for any help!

Tagged:

Answers

  • tinh
    tinh Altair Community Member
    edited May 2018

    Hi

    in hm gui, try editting card of material and setting option for user comment as 'show in export'

    so you can add comments in card editor then export

  • Q.Nguyen-Dai
    Q.Nguyen-Dai Altair Community Member
    edited May 2018

    Yes, you can add comments from inside Hypermesh and eventually export them to BDF output.

    However, I don't think you can import comments with your BDF file.

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited May 2018

    Thanks for you replies guys, I'll look at those options!

    The files I am editing have large revision comments. I need to keep them when I import and export:

    i.e.

    ' Date, Revision Number, comments about revision '
    ' Date, Revision Number, comments about revision '

    etc.

     

    Thanks again for you replies, if you think of other options, let me know!

  • tinh
    tinh Altair Community Member
    edited May 2018

    example with MAT1, any previous line starting with $ (not $$) will be imported as comment

    you just need to change the option in card editor  to 'Show in menu/Export', it will be exported again

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited May 2018

    I noticed that! :D/emoticons/default_biggrin.png' srcset='/emoticons/biggrin@2x.png 2x' title=':D' width='20' />  I was wondering why this was. Other comments (if I comment a range of GRIDS) don't stay. I had a MAT1 card that I commented, and the comment stayed, but my comments above my GRIDS were deleted.

    Is there a way to 'trick' HM to keep the comments on the GRIDS?

  • tinh
    tinh Altair Community Member
    edited May 2018

    comment of grid is at the end of GRID line

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited September 2020