Overwrite existing .fem file (Hyperworks 2024)
#Export the model
*retainmarkselections 0
*feoutputmergeincludefiles 0
*setsubmodeltype "HM_INCLUDEFILES"
*setentitytypesupportedbyenggid 1 0
*createstringarray 7 "HM_NODEELEMS_SET_COMPRESS_SKIP " "EXPORT_DMIG_LONGFORMAT " \
"HMSUBSYSTEMCOMMENTS_XML" "HMMATCOMMENTS_XML" "HMBOMCOMMENTS_XML" "INCLUDE_RELATIVE_PATH " \
"EXPORT_SOLVER_DECK_XML_1 "
*feoutputwithdata "C:/Program Files/Altair/2024/hwdesktop/templates/feoutput/optistruct/optistruct" "file_pathe.fem" 0 0 2 1 7
hm_answernext 'yes';
I am using this script to export the file. When I use this code in Hyperworks, it still asks me permission to replace the existing file. In hmbtach the file is not getting overwritten automatically. What should I do to perform this operation automatically
Answers
-
Hi Shetty,
Try placing "hm_answernext yes" before "*feoutputwithdata";
Best regards,
Flauzino, C.
1 -
Carlos Flauzino_22279 said:
Hi Shetty,
Try placing "hm_answernext yes" before "*feoutputwithdata";
Best regards,
Flauzino, C.
Did not work
0 -
Prathveraj Shetty said:
Did not work
This's the code I usually use to export files in the same directory where HM is saved.
0