$# Session file C:\Temp\test_Run400\read_sol400_template_v02.ses.01 started 
$# recording at 19-Dec-17 14:09:13
$# Build: 23.0.491258 Thu May 25 20:14:03 PDT 2017
$# Recorded by: Patran 2017
uil_file_new.go( "C:\MSC.Software\Patran_x64\20190/template.db",  @
"$DIR\tmp.db" )
$# Question from application FILE
$#     Database $DIR\tmp.db already exists.
$# Do you wish to delete the existing database and create a new one ?
$? YES 36000002 
$# Copying C:\MSC.Software\Patran_x64\20190/template.db to 
$# $DIR\tmp.db
$# Template copy complete.
$# Database version 3.18 created by Patran 2017 successfully opened.
$# Creating journal file $DIR\tmp.db.jou at 19-Dec-17 14:09:27
$# Synchronizing the User Data Manager
set_current_dir( "$DIR" )
$# The current working directory has been changed to the database location 
$# shown.                                                                     
$#                                                                            
$#

msc_dra_init_stream(  )
msc_dra_add_param( "DATABASE", "$DIR\tmp.db" )
msc_dra_add_param( "JOBNAME", "$NAME" )
msc_dra_add_param( "RESULTS FILE", "$HF5" )
msc_dra_add_param( "OBJECT", "Both" )
msc_dra_add_param( "GROUP", "default_group" )
msc_dra_add_param( "ANALYSIS TYPE", "Structural" )
msc_dra_add_param( "DIVISION TOLERANCE", "1.0E-8" )
msc_dra_add_param( "NUMERICAL TOLERANCE", "1.0E-4" )
msc_dra_add_param( "MODEL TOLERANCE", "0.0049999999" )
msc_dra_add_param( "MODEL DESIGN CYCLE", "" )
msc_dra_add_param( "SUPER ELEMENT PREFIX", "" )
msc_dra_add_param( "SUPER ELEMENT LIST", "" )
msc_dra_add_param( "CREATE GROUPS BY PIDS", "" )
msc_dra_add_param( "ROTATIONAL NODAL RESULTS", "OFF" )
msc_dra_add_param( "STRESS/STRAIN INVARIANTS", "OFF" )
msc_dra_add_param( "PRINCIPAL DIRECTIONS", "OFF" )
msc_dra_add_param( "CREATE P-ORDER FIELD", "OFF" )
msc_dra_add_param( "ELEMENT RESULTS POSITIONS", "Nodal       " )
msc_dra_add_param( "NASTRAN VERSION", "2018." )
msc_dra_add_param( "TITLE DESCRIPTION", "ON" )
msc_dra_finish_stream(  )
analysis_import( "MSC.Nastran", "$NAME", "Attach HDF5 Results File",  @
"$HF5", TRUE )
$#  End adding extra ses_lines
res_data_load_dbresult( 0, "Nodal", "Scalar", "SC1:$LOADCASE:",  @
"A1:Non-linear: $PERCENTAGE of Load", "Stress Tensor", "", "(NON-LAYERED)", "VONM", @
 "Default", "DeriveAverage", "All", "ShapeFunc" )
res_data_dbres_list( 0, "Nodal", "Scalar", 2, ["SC1:$LOADCASE:", "SC1:$LOADCASE:"],  @
["A1:Non-linear: $PERCENTAGE of Load", "A1:Non-linear: $PERCENTAGE of Load"], [ @
"Stress Tensor", "Stress Tensor"], ["", ""], ["At Z1", "At Z2"] )
res_data_list_max( 0, "Nodal", "Scalar", "Algebraic", "VONM" )
res_data_title( 0, "Nodal", "Scalar", 1, [ @
"$POFF@@@$PT: @@@$LCN, @@@$SCN, @@@$PRN, @@@$SRN, @@@$DRVL, 3 of 3 layers " // @
"(Maximum)"] )
res_display_fringe_create( "", "FreeFaces", 0, [""], 12, [ @
"Range:Fri_default_Fringe", "RangeOverwrite:ON", "FringeStyle:Discrete/Smooth" @
, "Shade:None", "ElemEdge:ElemEdge,Black,Solid,1", "Shrink:0",  @
"TitleDisplay:ON", "MinMaxDisplay:ON", "ValueDisplay:OFF", "Filter:None",  @
"ScaleFactor:1.", "LabelStyle:Exponential, 12, White, 3"], TRUE )
res_display_fringe_post( "", 0, "Nodal", TRUE, TRUE )
res_data_load_dbresult( 0, "Nodal", "Vector", "SC1:$LOADCASE:",  @
"A1:Non-linear: $PERCENTAGE of Load", "Displacements", "Translational",  @
"(NON-LAYERED)", "", "Global", "", "", "" )
res_data_title( 0, "Nodal", "Vector", 1, [ @
"$POFF@@@$PT: @@@$LCN, @@@$SCN, @@@$PRN, @@@$SRN, @@@$DRVL"] )
res_display_deformation_create( "", "Elements", 0, [""], 9, [ @
"DeformedStyle:White,Solid,1,Wireframe", "DeformedScale:True=1.",  @
"UndeformedStyle:OFF,Blue,Solid,1,Wireframe", "TitleDisplay:ON",  @
"MinMaxDisplay:ON", "ScaleFactor:1.", "LabelStyle:Exponential, 12, White, 3",  @
"DeformDisplay:Resultant", "DeformComps:OFF,OFF,OFF"] )
res_display_deformation_post( "", 0 )
$? YES 11009015 
sys_poll_option( 2 )
ga_db_range_set_label_style_m( 1, 7, 1, 12, 3, 2, "Fri_default_Fringe" )
ga_db_range_set_label_display_m( 1, 1, 0, 0, 0, 0, 2, "Fri_default_Fringe" )
ga_db_range_set_label_control_m( 0, "", "", "", 2, "Fri_default_Fringe" )
ga_db_range_set_no_subrange_m( 1, 0, "", 7, 2, "Fri_default_Fringe" )
ga_db_range_set_attributes_m( 1, 1, 0, 0, 2, "Fri_default_Fringe" )
ga_db_range_set_threshold_m( 1, 0, 0, 0., 0., 0, 0, "", "", 2,  @
"Fri_default_Fringe" )
ga_db_range_set_data_method_m( 1, 0, 2, 0, 0, [400., 0.], [0], [""], 15, 2,  @
"Fri_default_Fringe" )
ga_db_range_set_subranges_flt_m( 15, [400., 373.33301, 346.66699, 320.,  @
293.33301, 266.66699, 240., 213.33299, 186.66701, 160., 133.33299, 106.667,  @
80., 53.333302, 26.6667], [373.33301, 346.66699, 320., 293.33301, 266.66699,  @
240., 213.33299, 186.66701, 160., 133.33299, 106.667, 80., 53.333302, 26.6667, @
 0.], [386.66699, 360., 333.33301, 306.66699, 280., 253.33299, 226.66701,  @
200., 173.33299, 146.66701, 120., 93.333298, 66.666702, 40., 13.3333], 2,  @
"Fri_default_Fringe" )
ga_db_range_set_custom_labels_m( 0, [0], [0], [""], 2, "Fri_default_Fringe" )
sys_poll_option( 0 )
res_display_tool_animate_scale( "Ramped", "Fringe", "", 0. )
res_display_tool_animate_scale( "Ramped", "Deformation", "", 0. )
res_display_anim_setup_3d( 16, "Linear" )
res_display_anim_run( 10 )
res_display_anim_method( "Bounce" )
res_display_anim_step(  )
