Model.summary#
- Model.summary(template_file, output_file, print_flag, all)#
Prints or displays a summary from a specified template.
- Parameters:
template_file (hwString) – The name of the template file from which the format of the summary file will be obtained.
output_file (hwString) – The name of the file that the information will be printed out to (information will still be displayed on screen).
print_flag (int) –
0 - Information will be printed only to screen.
1 - Information will also be sent to printer.
all (int) –
0 - Only displayed portions of model will be taken into account when creating the summary template.
1 - Everything will be taken into account regardless of whether it is displayed or not.
Example#
Obtain a component by component summary for everything in a Nastran model without print it#import hm import hm.entities as ent model = hm.Model() model.summary( template_file="nastran/components", output_file="output.txt", print_flag=0, all=1 )