Model.feoutput_singleinclude#
- Model.feoutput_singleinclude(id, shortname, export_template, filename, reserved1, reserved2, export_type, string_array=s_defaultStringList)#
Creates an export file based on an output template, for a single include file.
- Parameters:
id (unsigned int) – The ID of the include to export. If shortname is specified, may be set as “”.
shortname (hwString) – The short name (portion without the path) of the include to export. If id is specified, this may be set as “”.
export_template (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.
reserved1 (int) – Reserved for future development. Must be set to 0.
reserved2 (int) – Reserved for future development. Must be set to 0.
export_type (int) –
Flag indicating which entities will be output:
0 - Only the displayed entities will be output.
1 - All entities will be output.
2 - Entities will be output based on their/their parent collector’s output bit (custom output). This bit can be set using the
Model.allsuppressoutput(),Model.includesuppressoutput()andsetvalue()functions or using the Entity State Browser.string_array (hwStringList) – The string array that contains the additional output parameters.
Example#
Export all entities in the include with ID 10, using the OptiStruct template, to a file named C:/temp/myinclude.fem, skipping the export of connectors#import hm import hm.entities as ent model = hm.Model() model.feoutput_singleinclude( id=10, shortname="", export_template="C:/Altair/2025.1/hwdesktop/templates/optistruct/", filename="C:/temp/myinclude.fem", reserved1=0, reserved2=0, export_type=1, string_array=["CONNECTORS_SKIP"])