How to write a string in any feoutput file as an comment for each solver(template)
Hi,
I need to write a one string to the any file which is exported for any solver.
like for in nastran
*cardcreate('SUBTITLE')
*attributeupdateint(cards,5,3240,1,2,0,1)
*attributeupdatestring(cards,5,282,1,2,0,'hello this file is written by %username%')
*feoutput('C:/Altair/hw8.0sr1/templates/feoutput/nastran/general','C:/TEMP.dat',1,0,0)
But a single proc for any solver.....
Answers
-
The cards and attributes are separate for every solver. You could create a macro that would enter in the text you want into the appropriate attribute fields for each solver (like 'subtitle' for Nastran, 'readme' for Dyna, etc).
Another option would be to add this line of text to the output templates for the solvers you want. These are text files that are very easy to modify. For example, in the general1 file of the nastran feoutput template:
*string('$$ NASTRAN Input Deck Generated by HyperMesh Version :') *field(string,version,8) *string(' $') *end() *string(' $ Hello this file is written by') *field(string,user,32) *end()
would add a similar line of text to the input deck.
Eric
0 -
Thanks for very quick reply.
But still it does not solve my problem.
I want export the file from macro. and solver can be anyone, editing template file is again give the problem in deployment. also for next versions of Hypermesh.
0