Model.feoutputincludes#
- Model.feoutputincludes(template_path, filename, includeids, type, options)#
Exports selected includes which were modified since the last export.
- Parameters:
template_path (hwString) – The full path and filename of the export template to be used. Paths with spaces must be enclosed in quotes.
filename (hwString) – The full path and filename of the output file. Paths with spaces must be enclosed in quotes.
includeids (hwIntList) – The IDs of the includes to consider for export. Only the ones modified since the last export will be exported.
type (int) –
The type of file to write:
1 - Export Engine file only
2 - Export Engine file and Starter model file separately.
3 - Export Engine file and Starter model file as a single file.
options (hwStringList) – The string of additional export options.
Example#
Export all entities of the modified includes using the LS-DYNA template to C:/temp/test.key#import hm import hm.entities as ent model = hm.Model() _, result = model.hm_getincludes_modified_since_last_export() ids = result.includesIds model.feoutputincludes( template_path="C:/Program Files/Altair/2025.1/templates/feoutput/ls-dyna971/dyna.key", filename="C:/temp/test.key", includeids=ids, type=1, options=["HMBOMCOMMENTS_XML", "HMMATCOMMENTS_XML"] )