TCL / saving ONLY the properties
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
Answers
-
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.
0 -
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.
0 -
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
0 -
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 /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 !
0 -
Export Option 'Custom' and selecting only 'Property' should work as well.
Regards
0 -
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
0 -
I do what HETTEL commented and also at the export panel, I un-check 'Write HM comments'.
0