TCL / saving ONLY the properties

Altair Forum User
Altair Forum User
Altair Employee
edited October 2020 in Community Q&A

Hi,

I am new in HyperMesh and Macros, so i'll try to do explain myself the best way i can.

I have a model with a certain quantity of properties ( a lot... named PSHELL_$nbrID ) and I would like to save those properties in a independent file.

Meaning I want only this in my file :

PSHELL 2 1 2. 1 1

PSHELL 3 1 2. 1 1

PSHELL 4 1 2. 1 1

PSHELL 5 1 2. 1 1

PSHELL 6 1 2. 1 1

PSHELL 7 1 2. 1 1

PSHELL 8 1 2. 1 1

...

I can't reach this result for now ! I still have the DVGRID/CQUAD4/PLOADS and other cards getting included in my file !

Someone has a tip/idea/solution ?

Thanks a lot in advance !

Clément

Tagged:

Answers

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited May 2012

    Clément,

    have you reviewed this script, http://www.altairhyperworks.com/Macros_Exchange_Preview.aspx?macro_id=436 ? I think this is what you need or you may modify it.

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited May 2012

    Another option is to create a copy of the solver template (NASTRAN or Optistruct) and remove all the other output types. When you export the model using this template, it will only write out property cards. It will probably flag a warning message that types of some entities are not supported.

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited June 2012

    Thanks to both of you for your answer.

    Etg's solutions seems more simple to implement...

    I am going to try both to see

    Thanks again

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited June 2012

    Another option is to create a copy of the solver template (NASTRAN or Optistruct) and remove all the other output types. When you export the model using this template, it will only write out property cards. It will probably flag a warning message that types of some entities are not supported.

    A lot of lines do delete image/emoticons/default_smile.png' alt=':)' srcset='/emoticons/smile@2x.png 2x' width='20' height='20'>

    the file had 65000 lines and for now has 26000 lines

    some errors, but it seems to work...

    A very brut and rought method !

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited June 2012

    Export Option 'Custom' and selecting only 'Property' should work as well.

    Regards

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited June 2012

    Yes i tried this, and then looking in the script window to see the code doing that

    but it did not work, when i save i still get other stuff than PSHELLs...don't know why

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited June 2012

    I do what HETTEL commented and also at the export panel, I un-check 'Write HM comments'.