PCL Examples > Results Postprocessing Functions > Plot Tool Creation and Modification Functions
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX''">XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX''">   
Plot Tool Creation and Modification Functions
This section contains examples of some of the functions used to create display tools in the database.
 
()
#
#  Purpose          :  This file provides an example of a call to the
#                      function res_display_fringe_create()
#
#                      This session file creates a fringe plot tool
#                      definition.
#
#                      Before running this session file run spool.ses
#                      and create result file spool.op2 as per the
#                      instructions given in it. Import this result
#                      file spool.op2 into spool.db. For instructions
#                      see file spool.ses
#
#                      This file can be run by starting a session of
#                      Patran, and running this session file
#                      through the "File","Session","Play" pulldown
#                      menus on the menu bar.
#  
#  The function res_display_fringe_create()
#  has the following arguments:
#
#  res_display_fringe_create
#     (  plot_name,
#        entity_type,
#        ntargets,
#        targets,
#        nattribs,
#        attributes,
#        deformed_flag )
#
#---------------------------------------------------------------------
#  Variable Declarations
STRING   s_plot_name[16]
STRING   s_entity_type[16]
INTEGER  i_ntargets
STRING   sa_targets[2](1)
INTEGER  i_nattribs
STRING   sa_attributes[64](12) 
LOGICAL  l_deformed_flag
INTEGER  i_return_value
#---------------------------------------------------------------------
# Opens the file spool.db
uil_file_open.go ("spool.db")
#---------------------------------------------------------------------
# Defining a register
i_return_value =                                 @
   res_data_load_dbresult( 0, "Nodal", "Scalar", @
      "SPOOL_LOADS", "Static Subcase",           @
      "Stress Tensor", "", "At Z1", "VONM",      @
      "Default", "DeriveAverage", "All", "ShapeFunc" )
dump i_return_value
 
i_return_value =                                 @
   res_data_title( 0, "Nodal", "Scalar", 1,      @
      ["SPOOL_LOADS, Static Subcase: Stress Tensor, -At Z1 (VONM)"] )
dump i_return_value
#---------------------------------------------------------------------
# Argument initialization
s_plot_name        = ""
s_entity_type      = "FreeFaces"
i_ntargets         = 0
sa_targets         = [""]
i_nattribs         = 12
sa_attributes(1)   = "Range:Fri_default_Fringe"
sa_attributes(2)   = "RangeOverwrite:ON"
sa_attributes(3)   = "FringeStyle:Discrete/Smooth"
sa_attributes(4)   = "Shade:None"
sa_attributes(5)   = "ElemEdge:FreeEdge,Blue,Solid,1"
sa_attributes(6)   = "Shrink:0" 
sa_attributes(7)   = "TitleDisplay:ON" 
sa_attributes(8)   = "MinMaxDisplay:ON" 
sa_attributes(9)   = "ValueDisplay:OFF"  
sa_attributes(10)  = "Filter:None"  
sa_attributes(11)  = "ScaleFactor:1." 
sa_attributes(12)  = "LabelStyle:Fixed, 12, LtOrange, 4" 
l_deformed_flag    = TRUE
#---------------------------------------------------------------------
# Creating a fringe plot tool
i_return_value =                                 @
   res_display_fringe_create                     @
      (  s_plot_name,                            @
         s_entity_type,                          @
         i_ntargets,                             @
         sa_targets,                             @
         i_nattribs,                             @
         sa_attributes,                          @
         l_deformed_flag )
dump i_return_value
#---------------------------------------------------------------------
# Displays the plot
i_return_value =                                 @
   res_display_fringe_post( "", 0, "Nodal", TRUE, TRUE )
dump i_return_value
#---------------------------------------------------------------------
 
()
#
#  Purpose          :  This file provides an example of a call to the
#                      function res_display_fringe_modify()
#
#                      This session file modifies a fringe plot tool
#                      definition.
#
#                      Before running this session file run spool.ses
#                      and create result file spool.op2 as per the
#                      instructions given in it. Import this result
#                      file spool.op2 into spool.db. For instructions
#                      see file spool.ses
#
#                      This file can be run by starting a session of
#                      Patran, and running this session file
#                      through the "File","Session","Play" pulldown
#                      menus on the menu bar.
#
#  The function res_display_fringe_modify()
#  has the following arguments:
#
#  res_display_fringe_modify
#     (  plot_name,
#        new_name,
#        entity_type,
#        ntargets,
#        targets,
#        nattribs,
#        attributes,
#        deformed_flag )
#
#---------------------------------------------------------------------
#  Variable Declarations
STRING   s_plot_name[16]
STRING   s_new_name[16]
STRING   s_entity_type[16]
INTEGER  i_ntargets
STRING   sa_targets[2](1)
INTEGER  i_nattribs
STRING   sa_attributes[64](12)
LOGICAL  l_deformed_flag
INTEGER  i_return_value
#---------------------------------------------------------------------
# Opens the file spool.db
uil_file_open.go ("spool.db")
#---------------------------------------------------------------------
# Defines a register
i_return_value =                                 @
   res_data_load_dbresult( 0, "Nodal", "Scalar", @
      "SPOOL_LOADS", "Static Subcase",           @
      "Stress Tensor", "", "At Z1", "VONM",      @
      "Default", "DeriveAverage", "All", "ShapeFunc" )
dump i_return_value
 
i_return_value =                                 @
   res_data_title( 0, "Nodal", "Scalar", 1,      @
      ["SPOOL_LOADS, Static Subcase: Stress Tensor, -At Z1 (VONM)"] )
dump i_return_value
#---------------------------------------------------------------------
# Creates a plot
i_return_value =                                 @
   res_display_fringe_create( "old_fringe_plot", @ 
      "FreeFaces", 0, [""], 12,                  @
      ["Range:Fri_default_Fringe",               @
      "RangeOverwrite:ON",                       @
      "FringeStyle:Discrete/Smooth", "Shade:None"@
      , "ElemEdge:FreeEdge,Blue,Solid,1",        @
      "Shrink:0", "TitleDisplay:ON",             @
      "MinMaxDisplay:ON", "ValueDisplay:OFF",    @
      "Filter:None", "ScaleFactor:1.",           @
      "LabelStyle:Exponential, 12, White, 3"], TRUE )
dump i_return_value
 
i_return_value =                                 @
   res_display_fringe_post( "old_fringe_plot", 0, "Nodal", TRUE, TRUE)
dump i_return_value
#---------------------------------------------------------------------
sf_pause()
# Press Resume to continue
#---------------------------------------------------------------------
# Argument initialization
s_plot_name        = "old_fringe_plot"
s_new_name         = "new_fringe_plot"
s_entity_type      = "FreeFaces"
i_ntargets         = 0
sa_targets         = [""]
i_nattribs         = 12
sa_attributes(1)   = "Range:Fri_new_Fringe_plot"
sa_attributes(2)   = "RangeOverwrite:ON"
sa_attributes(3)   = "FringeStyle:Discrete/Smooth"
sa_attributes(4)   = "Shade:None"
sa_attributes(5)   = "ElemEdge:FreeEdge,Red,Solid,1"
sa_attributes(6)   = "Shrink:0"
sa_attributes(7)   = "TitleDisplay:ON"
sa_attributes(8)   = "MinMaxDisplay:ON"
sa_attributes(9)   = "ValueDisplay:OFF"
sa_attributes(10)  = "Filter:None"
sa_attributes(11)  = "ScaleFactor:1."
sa_attributes(12)  = "LabelStyle:Fixed, 12, White, 3" 
l_deformed_flag    = TRUE
#---------------------------------------------------------------------
# Modifies the fringe plot
i_return_value =                                 @
   res_display_fringe_modify                     @
      (  s_plot_name,                            @
         s_new_name,                             @
         s_entity_type,                          @
         i_ntargets,                             @
         sa_targets,                             @
         i_nattribs,                             @
         sa_attributes,                          @
         l_deformed_flag )
dump i_return_value
#---------------------------------------------------------------------
# Displays the modified plot
i_return_value =                                 @
   res_display_fringe_post( "new_fringe_plot", 0, "Nodal", TRUE, TRUE)
dump i_return_value
#---------------------------------------------------------------------
 
()
#
#  Purpose          :  This file provides an example of a call to the
#                      function res_display_vector_create()
#
#                      This session file creates a vector plot tool
#                      definition.
#
#                      Before running this session file run spool.ses
#                      and create result file spool.op2 as per the
#                      instructions given in it. Import this result
#                      file spool.op2 into spool.db. For instructions
#                      see file spool.ses
#
#                      This file can be run by starting a session of
#                      Patran, and running this session file
#                      through the "File","Session","Play" pulldown
#                      menus on the menu bar.
#
#  The function res_display_vector_create()
#  has the following arguments:
#
#  res_display_vector_create
#     (  plot_name,
#        entity_type,
#        ntargets,
#        targets,
#        nattribs,
#        attributes,
#        deformed_flag )
#
#---------------------------------------------------------------------
#  Variable Declarations
STRING   s_plot_name[32]
STRING   s_entity_type[32]
INTEGER  i_ntargets
STRING   sa_targets[2](1)
INTEGER  i_nattribs
STRING   sa_attributes[64](16)
LOGICAL  l_deformed_flag
INTEGER  i_return_value
#---------------------------------------------------------------------
# Opens the file spool.db
uil_file_open.go ("spool.db")
#---------------------------------------------------------------------
# Defining a register
i_return_value =                                 @
   res_data_load_dbresult( 0, "Nodal", "Vector", @
      "SPOOL_LOADS", "Static Subcase",           @
      "Displacements", "Translational",          @
      "(NON-LAYERED)", "", "AsIs", "", "", "", "", 0.)
dump i_return_value
 
i_return_value =                                 @
   res_data_title( 0, "Nodal", "Vector", 1,      @
      ["SPOOL_LOADS, Static Subcase,             @
      Displacements, Translational, (NON-LAYERED)"] )
dump i_return_value
#---------------------------------------------------------------------
# Argument initialization
s_plot_name      = "Vector_plot"
s_entity_type    = "Nodes"
i_ntargets       = 0
sa_targets       = [""]
i_nattribs       = 16 
sa_attributes(1) = "Range:Vec_Vector_plot"
sa_attributes(2) = "RangeOverwrite:ON" 
sa_attributes(3) = "VectorDisplay:Resultant"
sa_attributes(4) = "VectorComps:ON"
sa_attributes(5) = "VectorColors:Spectrum"
sa_attributes(6) = "VectorScale:ScreenConstant=0.1"
sa_attributes(7) = "VectorAttachment:Tail"
sa_attributes(8) = "HeadStyle:Single"
sa_attributes(9) = "VectorStyle:Solid"
sa_attributes(10)= "TailDisplay:ON"
sa_attributes(11)= "TitleDisplay:ON" 
sa_attributes(12)= "MinMaxDisplay:OFF"
sa_attributes(13)= "LabelStyle:Fixed, 12, White, 4"
sa_attributes(14)= "ValueDisplay:OFF"
sa_attributes(15)= "Filter:Exclude=-1e-36,1e-36"
sa_attributes(16)= "ScaleFactor:1."
l_deformed_flag  = TRUE
#---------------------------------------------------------------------
# Creates a vector plot tool
i_return_value =                                 @
   res_display_vector_create                     @
      (  s_plot_name,                            @
         s_entity_type,                          @
         i_ntargets,                             @
         sa_targets,                             @
         i_nattribs,                             @
         sa_attributes,                          @
         l_deformed_flag )
dump i_return_value
#---------------------------------------------------------------------
# Displays the plot
i_return_value =                                 @
   res_display_vector_post( "Vector_plot", 0, "Nodal", TRUE, TRUE )
dump i_return_value
#---------------------------------------------------------------------
 
()
#
#  Purpose          :  This file provides an example of a call to the
#                      function res_display_vector_modify()
#
#                      This session file modifies a vector plot tool
#                      definition.
#
#                      Before running this session file run spool.ses
#                      and create result file spool.op2 as per the
#                      instructions given in it. Import this result
#                      file spool.op2 into spool.db. For instructions
#                      see file spool.ses
#
#                      This file can be run by starting a session of
#                      Patran, and running this session file
#                      through the "File","Session","Play" pulldown
#                      menus on the menu bar.
#
#  The function res_display_vector_modify()
#  has the following arguments:
#
#  res_display_vector_modify
#     (  plot_name,
#        new_name,
#        entity_type,
#        ntargets,
#        targets,
#        nattribs,
#        attributes,
#        deformed_flag )
#
#---------------------------------------------------------------------
#  Variable Declarations
STRING   s_plot_name[32]
STRING   s_new_name[32]
STRING   s_entity_type[16]
INTEGER  i_ntargets
STRING   sa_targets[2](1)
INTEGER  i_nattribs
STRING   sa_attributes[64](16)
LOGICAL  l_deformed_flag
INTEGER  i_return_value
#---------------------------------------------------------------------
# Opens the file spool.db
uil_file_open.go ("spool.db")
#---------------------------------------------------------------------
# Defining a register
i_return_value =                                 @
   res_data_load_dbresult( 0, "Nodal", "Vector", @
      "SPOOL_LOADS", "Static Subcase",           @
      "Displacements", "Translational",          @
      "(NON-LAYERED)", "", "AsIs", "", "", "", "", 0.)
dump i_return_value
 
i_return_value =                                 @
   res_data_title( 0, "Nodal", "Vector", 1,      @
      ["SPOOL_LOADS, Static Subcase,             @
      Displacements, Translational, (NON-LAYERED)"] )
dump i_return_value
#---------------------------------------------------------------------
# Creates a vector plot
i_return_value =                                 @
   res_display_vector_create( "Vector_plot",     @
      "Nodes", 0, [""], 16,                      @
      ["Range:Vec_default_Vector",               @
      "RangeOverwrite:ON",                       @
      "VectorDisplay:Resultant", "VectorComps:ON"@
      , "VectorColors:Spectrum",                 @
      "VectorScale:ScreenConstant=0.1",          @
      "VectorAttachment:Tail", "HeadStyle:Single"@
      , "VectorStyle:Solid", "TailDisplay:ON",   @
      "TitleDisplay:ON", "MinMaxDisplay:ON",     @
      "LabelStyle:Exponential, 12, White, 3",    @
      "ValueDisplay:OFF",                        @
      "Filter:Exclude=-1e-36,1e-36", "ScaleFactor:1."], TRUE )
dump i_return_value
 
i_return_value =                                 @
   res_display_vector_post( "Vector_plot", 0, "Nodal", TRUE, TRUE )
dump i_return_value
#---------------------------------------------------------------------
# Press Resume to continue
sf_pause()
#---------------------------------------------------------------------
# Argument initialization
s_plot_name      = "Vector_plot"
s_new_name       = "New_vector_plot"
s_entity_type    = "Nodes"
i_ntargets       = 0
sa_targets       = [""]
i_nattribs       = 16
sa_attributes(1) = "Range:Vec_Vector_plot"
sa_attributes(2) = "RangeOverwrite:ON"
sa_attributes(3) = "VectorDisplay:Resultant"
sa_attributes(4) = "VectorComps:ON"
sa_attributes(5) = "VectorColors:Spectrum"
sa_attributes(6) = "VectorScale:ScreenConstant=0.1"
sa_attributes(7) = "VectorAttachment:Tail"
sa_attributes(8) = "HeadStyle:Double"
sa_attributes(9) = "VectorStyle:Solid"
sa_attributes(10)= "TailDisplay:ON"
sa_attributes(11)= "TitleDisplay:ON"
sa_attributes(12)= "MinMaxDisplay:ON"
sa_attributes(13)= "LabelStyle:Fixed, 12, Green, 4"
sa_attributes(14)= "ValueDisplay:OFF"
sa_attributes(15)= "Filter:Exclude=-1e-36,1e-36"
sa_attributes(16)= "ScaleFactor:1."
l_deformed_flag  = TRUE
#---------------------------------------------------------------------
# Modifies the vector plot
i_return_value =                                 @
   res_display_vector_modify                     @
      (  s_plot_name,                            @
         s_new_name,                             @
         s_entity_type,                          @
         i_ntargets,                             @
         sa_targets,                             @
         i_nattribs,                             @
         sa_attributes,                          @
         l_deformed_flag )
dump i_return_value
#---------------------------------------------------------------------
# Displays the plot
i_return_value =                                 @
   res_display_vector_post("New_vector_plot", 0, "Nodal", TRUE, TRUE)
dump i_return_value
#---------------------------------------------------------------------
 
()
#
#  Purpose          :  This file provides an example of a call to the
#                      function res_display_tensor_create()
#
#                      This session file creates a tensor plot tool
#                      definition
#
#                      Before running this session file run spool.ses
#                      and create result file spool.op2 as per the
#                      instructions given in it. Import this result
#                      file spool.op2 into spool.db. For instructions
#                      see file spool.ses
#
#                      This file can be run by starting a session of
#                      Patran, and running this session file
#                      through the "File","Session","Play" pulldown
#                      menus on the menu bar.
#
#  The function res_display_tensor_create()
#  has the following arguments:
#
#  res_display_tensor_create
#     (  plot_name,
#        entity_type,
#        ntargets,
#        targets,
#        nattribs,
#        attributes,
#        deformed_flag )
#
#---------------------------------------------------------------------
#  Variable Declarations
STRING   s_plot_name[16]
STRING   s_entity_type[16]
INTEGER  i_ntargets
STRING   sa_targets[2](1)
INTEGER  i_nattribs
STRING   sa_attributes[64](17)
LOGICAL  l_deformed_flag
INTEGER  i_return_value
#---------------------------------------------------------------------
# Opens the file spool.db
uil_file_open.go ("spool.db")
#---------------------------------------------------------------------
# Defining a register
i_return_value =                                 @
   res_data_load_dbresult( 0, "Centroidal",      @
      "Tensor", "SPOOL_LOADS", "Static Subcase", @
      "Stress Tensor", "", "At Z1", "", "AsIs",  @
      "DeriveAverage", "All", "ShapeFunc", "", 0. )
dump i_return_value
 
i_return_value =                                 @
   res_data_title( 0, "Centroidal", "Tensor", 1, @
      ["SPOOL_LOADS, Static Subcase, Stress Tensor,, At Z1"] )
dump i_return_value
#---------------------------------------------------------------------
# Argument initialization
s_plot_name      = "Tensor_plot"
s_entity_type    = "Elements" 
i_ntargets       = 0
sa_targets       = [""]
i_nattribs       = 17
sa_attributes(1) = "Range:Ten_Tensor_plot" 
sa_attributes(2) = "RangeOverwrite:ON" 
sa_attributes(3) = "TensorDisplay:Component" 
sa_attributes(4) = "TensorComps:ON,ON,ON,OFF,OFF,OFF" 
sa_attributes(5) = "TensorColors:spectrum" 
sa_attributes(6) = "VectorScale:ScreenConstant=0.1" 
sa_attributes(7) = "HeadStyle:Single"
sa_attributes(8) = "VectorStyle:Solid" 
sa_attributes(9) = "BoxStyle:OFF,Wireframe" 
sa_attributes(10)= "BoxColor:Yellow"
sa_attributes(11)= "BoxScale:ScreenConstant=0.1" 
sa_attributes(12)= "TitleDisplay:ON" 
sa_attributes(13)= "MinMaxDisplay:OFF" 
sa_attributes(14)= "LabelStyle:Fixed, 12, White, 4" 
sa_attributes(15)= "ValueDisplay:OFF" 
sa_attributes(16)= "Filter:None"
sa_attributes(17)= "ScaleFactor:1." 
l_deformed_flag  = TRUE
#---------------------------------------------------------------------
# Creating a tensor plot
i_return_value =                                 @
   res_display_tensor_create                     @
      (  s_plot_name,                            @
         s_entity_type,                          @
         i_ntargets,                             @
         sa_targets,                             @
         i_nattribs,                             @
         sa_attributes,                          @
         l_deformed_flag )
dump i_return_value
#---------------------------------------------------------------------
# Displays the plot
i_return_value =                                 @
   res_display_tensor_post("Tensor_plot", 0, "Centroidal", TRUE, TRUE)
dump i_return_value
#---------------------------------------------------------------------
 
()
#
#  Purpose          :  This file provides an example of a call to the
#                      function res_display_tensor_modify()
#
#                      This session file modifies a tensor plot tool
#                      definition.
#
#                      Before running this session file run spool.ses
#                      and create result file spool.op2 as per the
#                      instructions given in it. Import this result
#                      file spool.op2 into spool.db. For instructions
#                      see file spool.ses
#
#                      This file can be run by starting a session of
#                      Patran, and running this session file
#                      through the "File","Session","Play" pulldown
#                      menus on the menu bar.
#
#  The function res_display_tensor_modify()
#  has the following arguments:
#
#  res_display_tensor_modify
#     (  plot_name,
#        new_name,
#        entity_type,
#        ntargets,
#        targets,
#        nattribs,
#        attributes,
#        deformed_flag )
#
#---------------------------------------------------------------------
#  Variable Declarations
STRING   s_plot_name[16]
STRING   s_new_name[16]
STRING   s_entity_type[16]
INTEGER  i_ntargets
STRING   sa_targets[2](1)
INTEGER  i_nattribs
STRING   sa_attributes[64](17)
LOGICAL  l_deformed_flag
INTEGER  i_return_value
#---------------------------------------------------------------------
# Opens the file spool.db
uil_file_open.go ("spool.db")
#---------------------------------------------------------------------
# Defining a register
i_return_value =                                 @
   res_data_load_dbresult( 0, "Centroidal",      @
      "Tensor", "SPOOL_LOADS", "Static Subcase", @
      "Stress Tensor", "", "At Z1", "", "AsIs",  @
      "DeriveAverage", "All", "ShapeFunc", "", 0. )
dump i_return_value
 
i_return_value =                                 @
   res_data_title( 0, "Centroidal", "Tensor", 1, @
      ["SPOOL_LOADS, Static Subcase, Stress Tensor,, At Z1"] )
dump i_return_value
#---------------------------------------------------------------------
# Creating a plot
i_return_value =                                 @
   res_display_tensor_create( "", "Elements", 0, @
      [""], 17, ["Range:Ten_default_Tensor",     @
      "RangeOverwrite:ON",                       @
      "TensorDisplay:Component",                 @
      "TensorComps:ON,ON,ON,OFF,OFF,OFF",        @
      "TensorColors:Spectrum",                   @
      "VectorScale:ScreenConstant=0.1",          @
      "HeadStyle:Single", "VectorStyle:Solid",   @
      "BoxStyle:OFF,Wireframe", "BoxColor:Yellow"@
      , "BoxScale:ScreenConstant=0.1",           @
      "TitleDisplay:ON", "MinMaxDisplay:OFF",    @
      "LabelStyle:Fixed, 12, White, 4",          @
      "ValueDisplay:OFF", "Filter:None", "ScaleFactor:1."], TRUE )
dump i_return_value
 
i_return_value =                                 @
   res_display_tensor_post( "", 0, "Centroidal", TRUE, TRUE )
dump i_return_value
#---------------------------------------------------------------------
# Press Resume to continue
sf_pause()
#--------------------------------------------------------------------
# Argument initialization
s_plot_name      = ""
s_new_name       = "New_tensor_plot" 
s_entity_type    = "Elements"
i_ntargets       = 0
sa_targets       = [""]
i_nattribs       = 17
sa_attributes(1) = "Range:Ten_Tensor_plot"
sa_attributes(2) = "RangeOverwrite:ON"
sa_attributes(3) = "TensorDisplay:Component"
sa_attributes(4) = "TensorComps:ON,ON,ON,ON,ON,ON"
sa_attributes(5) = "TensorColors:spectrum"
sa_attributes(6) = "VectorScale:ScreenConstant=0.1"
sa_attributes(7) = "HeadStyle:Single"
sa_attributes(8) = "VectorStyle:Solid"
sa_attributes(9) = "BoxStyle:OFF,Wireframe"
sa_attributes(10)= "BoxColor:Yellow"
sa_attributes(11)= "BoxScale:ScreenConstant=0.1"
sa_attributes(12)= "TitleDisplay:ON"
sa_attributes(13)= "MinMaxDisplay:OFF"
sa_attributes(14)= "LabelStyle:Fixed, 12, White, 4"
sa_attributes(15)= "ValueDisplay:OFF"
sa_attributes(16)= "Filter:None"
sa_attributes(17)= "ScaleFactor:1."
l_deformed_flag  = TRUE
#--------------------------------------------------------------------
# Modifies the tensor plot
i_return_value =                                 @
   res_display_tensor_modify                     @
      (  s_plot_name,                            @
         s_new_name,                             @
         s_entity_type,                          @
         i_ntargets,                             @
         sa_targets,                             @
         i_nattribs,                             @
         sa_attributes,                          @
         l_deformed_flag )
dump i_return_value
#---------------------------------------------------------------------
# Displays the plot
i_return_value =                                 @
   res_display_tensor_post( "New_tensor_plot", 0,@
      "Centroidal", TRUE, TRUE )
dump i_return_value
#---------------------------------------------------------------------
 
()
#
#  Purpose          :  This file provides an example of a call to the
#                      function res_display_report_create()
#
#                      This session file creates a report file 
#                      "report.1". X, Y and Z component of 
#                      displacement at each node are written in this 
#                      file. This file can be opened in vi editor to 
#                      see the results.
#
#                      Before running this session file run spool.ses
#                      and create result file spool.op2 as per the
#                      instructions given in it. Import this result
#                      file spool.op2 into spool.db. For instructions
#                      see file spool.ses
#
#                      This file can be run by starting a session of
#                      Patran, and running this session file
#                      through the "File","Session","Play" pulldown
#                      menus on the menu bar.
#
#  The function res_display_report_create()
#  has the following arguments:
#
#  res_display_report_create
#     (  report_name,
#        entity_type,
#        ntargets,
#        targets,
#        nattribs,
#        attributes )
#
#---------------------------------------------------------------------
#  Variable Declarations
STRING   s_report_name[2]
STRING   s_entity_type[16]
INTEGER  i_ntargets
STRING   sa_targets[2](1)
INTEGER  i_nattribs
STRING   sa_attributes[128](20)
INTEGER  i_return_value
#---------------------------------------------------------------------
# Opens the file spool.db
uil_file_open.go ("spool.db")
#---------------------------------------------------------------------
# Defining a register
i_return_value =                                 @
   res_data_load_dbresult( 0, "Nodal", "Vector", @
      "SPOOL_LOADS", "Static Subcase",           @
      "Displacements", "Translational",          @
      "(NON-LAYERED)", "", "AsIs", "", "", "", "" , 0. )
dump i_return_value
#---------------------------------------------------------------------
# Argument initialization
s_report_name    = ""
s_entity_type    = "Nodes"
i_ntargets       = 0
sa_targets       = [""]
i_nattribs       = 20 
sa_attributes(1) = "ReportType:Full" 
sa_attributes(2) = "ReportTitle:$PRODUCT - Analysis Code: $CODE_NAME" 
sa_attributes(3) = "ReportTitle:Load Case: $LC_NAME, $SC_NAME" 
sa_attributes(4) = "ReportTitle:Result $PRES" // @
                  "_NAME, $SRES_NAME - Layer $LYR_NAME" 
sa_attributes(5) = "ReportTitle:Entity: Node Vector" 
sa_attributes(6) = "ReportHeader:Page $PAGE" 
sa_attributes(7) = "ReportFooter:$DATE" 
sa_attributes(8) = "ReportPage:Height=52,Wid" // @
                  "th=128,TopMargin=5,LeftMargin=8,BottomMargin=5" 
sa_attributes(9) = "ReportPagination:OFF"
sa_attributes(10)= "ReportPageNumber:1" 
sa_attributes(11)= "ReportPageAlignment:Left" 
sa_attributes(12)= "ReportVColumn:1,Entity ID,ID,%I6%"
sa_attributes(13)= "ReportVColumn:2,X Component,XX,%F12.6%" 
sa_attributes(14)= "ReportVColumn:3,Y Component,YY,%F12.6%" 
sa_attributes(15)= "ReportVColumn:4,Z Component,ZZ,%F12.6%" 
sa_attributes(16)= "EntitySort:LoadCase" 
sa_attributes(17)= "ValueSort:1,Ascending,Algebraic" 
sa_attributes(18)= "ColumnHeaders:ON"
sa_attributes(19)= "Filter:None" 
sa_attributes(20)= "ScaleFactor:1."
#---------------------------------------------------------------------
# Creating a report
i_return_value =                                 @
   res_display_report_create                     @
      (  s_report_name,                          @
         s_entity_type,                          @
         i_ntargets,                             @
         sa_targets,                             @
         i_nattribs,                             @
         sa_attributes )
dump i_return_value
#---------------------------------------------------------------------
# Writing to the file
i_return_value =                                 @
   res_display_report_write( "", 0, "Vector",    @
      "Nodal", "Overwrite", "report" )
dump i_return_value
#---------------------------------------------------------------------
 
()
#
#  Purpose          :  This file provides an example of a call to the
#                      function res_display_report_modify()
#
#                      This session file modifies a report tool 
#                      definition. It changes the name of the report.
#                      Results are written in the file "patran.prt.1"
#                      which can be seen in vi editor. In old report
#                      only magnitude of displacement was written
#                      and in new report all the components of 
#                      displacement are written.
#
#                      Before running this session file run spool.ses
#                      and create result file spool.op2 as per the
#                      instructions given in it. Import this result
#                      file spool.op2 into spool.db. For instructions
#                      see file spool.ses
#
#                      This file can be run by starting a session of
#                      Patran, and running this session file
#                      through the "File","Session","Play" pulldown
#                      menus on the menu bar.
# 
#  The function res_display_report_modify()
#  has the following arguments:
#
#  res_display_report_modify
#     (  report_name,
#        new_name,
#        entity_type,
#        ntargets,
#        targets,
#        nattribs,
#        attributes )
#
#---------------------------------------------------------------------
#  Variable Declarations
STRING   s_report_name[16]
STRING   s_new_name[16]
STRING   s_entity_type[16]
INTEGER  i_ntargets
STRING   sa_targets[16](1)
INTEGER  i_nattribs
STRING   sa_attributes[128](20)
INTEGER  i_return_value
#---------------------------------------------------------------------
# Opens the file spool.db
uil_file_open.go ("spool.db")
#---------------------------------------------------------------------
# Creates a report
i_return_value =                                 @
   res_data_load_dbresult( 0, "Nodal", "Vector", @
      "SPOOL_LOADS", "Static Subcase",           @
      "Displacements", "Translational",          @
      "(NON-LAYERED)", "", "AsIs", "", "", "", "" , 0. )
dump i_return_value
 
i_return_value =                                 @
   res_display_report_create( "old_report",      @
      "Nodes", 1, ["NO:Node 1:50"], 18,          @
      ["ReportType:Full", "ReportTitle:$PRO" //  @
      "DUCT - Analysis Code: $CODE_NAME ",       @
      "ReportTitle:Load Case: $LC_NAME, $SC" //  @
      "_NAME", "ReportTitle:Result $PRES_NA" //  @
      "ME, $SRES_NAME - Layer $LYR_NAME ",       @
      "ReportTitle:Entity: Node Vector",         @
      "ReportHeader:Page $PAGE",                 @
      "ReportFooter:$DATE", "ReportPage:Hei" //  @
      "ght=52,Width=128,TopMargin=5,LeftMar" //  @
      "gin=8,BottomMargin=5",                    @
      "ReportPagination:OFF",                    @
      "ReportPageNumber:1",                      @
      "ReportPageAlignment:Left",                @
      "ReportVColumn:1,Entity ID,ID,%I6%",       @
      "ReportVColumn:2,Magnitude,MAG,%F12.6%",   @
      "EntitySort:LoadCase",                     @
      "ValueSort:1,Ascending,Algebraic",         @
      "ColumnHeaders:ON", "Filter:None", "ScaleFactor:1."] )
dump i_return_value
 
i_return_value =                                 @
   res_display_report_write( "old_report", 0,    @
      "Vector", "Nodal", "Overwrite", "patran.prt" )
dump i_return_value
#---------------------------------------------------------------------
# See the file patran.prt.1.
sf_pause()
#---------------------------------------------------------------------
# Argument initialization
s_report_name    = "old_report"
s_new_name       = "new_report"
s_entity_type    = "Nodes"
i_ntargets       = 1
sa_targets(1)    = "NO:Node 1:50" 
i_nattribs       = 20
sa_attributes(1) = "ReportType:Full"
sa_attributes(2) = "ReportTitle:$PRODUCT - Analysis Code: $CODE_NAME"
sa_attributes(3) = "ReportTitle:Load Case: $LC_NAME, $SC_NAME"
sa_attributes(4) = "ReportTitle:Result $PRES" // @
                  "_NAME, $SRES_NAME - Layer $LYR_NAME"
sa_attributes(5) = "ReportTitle:Entity: Node Vector"
sa_attributes(6) = "ReportHeader:Page $PAGE"
sa_attributes(7) = "ReportFooter:$DATE"
sa_attributes(8) = "ReportPage:Height=52,Wid" // @
                  "th=128,TopMargin=5,LeftMargin=8,BottomMargin=5"
sa_attributes(9) = "ReportPagination:OFF"
sa_attributes(10)= "ReportPageNumber:1"
sa_attributes(11)= "ReportPageAlignment:Left"
sa_attributes(12)= "ReportVColumn:1,Entity ID,ID,%I6%"
sa_attributes(13)= "ReportVColumn:2,X Component,XX,%F12.6%"
sa_attributes(14)= "ReportVColumn:3,Y Component,YY,%F12.6%"
sa_attributes(15)= "ReportVColumn:4,Z Component,ZZ,%F12.6%"
sa_attributes(16)= "EntitySort:LoadCase"
sa_attributes(17)= "ValueSort:1,Ascending,Algebraic"
sa_attributes(18)= "ColumnHeaders:ON"
sa_attributes(19)= "Filter:None"
sa_attributes(20)= "ScaleFactor:1."
#---------------------------------------------------------------------
# Modifying the report
i_return_value =                                 @
   res_display_report_modify                     @
      (  s_report_name,                          @
         s_new_name,                             @
         s_entity_type,                          @
         i_ntargets,                             @
         sa_targets,                             @
         i_nattribs,                             @
         sa_attributes )
dump i_return_value
#---------------------------------------------------------------------
# Writes to the file
i_return_value =                                 @
   res_display_report_write( "new_report", 0,    @
   "Vector", "Nodal", "Overwrite", "patran.prt" )
dump i_return_value
# See the modified file patran.prt.1. 
#---------------------------------------------------------------------
 
()
#
#  Purpose          :  This file provides an example of a call to the
#                      function res_display_graph_create()
#
#                      This session file creates graph tool. It 
#                      creates graph between displacement and 
#                      coordinates of nodes.
#
#                      Before running this session file run spool.ses
#                      and create result file spool.op2 as per the
#                      instructions given in it. Import this result
#                      file spool.op2 into spool.db. For instructions
#                      see file spool.ses
#
#                      This file can be run by starting a session of
#                      Patran, and running this session file
#                      through the "File","Session","Play" pulldown
#                      menus on the menu bar.
#
#  The function res_display_graph_create()
#  has the following arguments:
#
#  res_display_graph_create
#     (  plot_name,
#        graph_type,
#        entity_type,
#        ntargets,
#        targets,
#        nattribs,
#        attributes )
#
#---------------------------------------------------------------------
#  Variable Declarations
STRING   s_plot_name[32]
STRING   s_graph_type[32]
STRING   s_entity_type[16]
INTEGER  i_ntargets
STRING   sa_targets[32](1)
INTEGER  i_nattribs
STRING   sa_attributes[64](14)
INTEGER  i_return_value
#---------------------------------------------------------------------
# Opens the file spool.db
uil_file_open.go ("spool.db")
#---------------------------------------------------------------------
# Defining a register
i_return_value =                                 @
   res_data_load_dbresult( 0, "Nodal", "Scalar", @
      "SPOOL_LOADS", "Static Subcase",           @
      "Displacements", "Translational",          @
      "(NON-LAYERED)", "MAG", "AsIs", "", "", "", "", 0. )
dump i_return_value
 
i_return_value =                                 @
   res_data_title( 0, "Nodal", "Scalar", 1,      @
      ["Displacements, Translational, MAG"])
dump i_return_value
#---------------------------------------------------------------------
# Argument initialization
s_plot_name      = "Displacement_vs_Coordinate" 
s_graph_type     = "DataLocation" 
s_entity_type    = "Nodes" 
i_ntargets       = 1 
sa_targets(1)    = "NO:Node 1:600" 
i_nattribs       = 14 
sa_attributes(1) = "curveFitMethod:Linear" 
sa_attributes(2) = "curveStyle:Solid" 
sa_attributes(3) = "symbolDisplay:OFF" 
sa_attributes(4) = "xAxisLabelDisplay:ON" 
sa_attributes(5) = "xAxisLabel:Coordinates" 
sa_attributes(6) = "xAxisScale:Linear" 
sa_attributes(7) = "xAxisLabelFormat:Fixed, 12, White, 3" 
sa_attributes(8) = "yAxisLabelDisplay:ON" 
sa_attributes(9) = "yAxisLabel:Displacement" 
sa_attributes(10)= "yAxisScale:Linear" 
sa_attributes(11)= "yAxisLabelFormat:Fixed, 12, White, 3" 
sa_attributes(12)= "ScaleFactor:1." 
sa_attributes(13)= "Filter:None" 
sa_attributes(14)= "LocationCID:Coord 0.1" 
#--------------------------------------------------------------------
# Creating a graph
i_return_value =                                 @
   res_display_graph_create                      @
      (  s_plot_name,                            @
         s_graph_type,                           @
         s_entity_type,                          @
         i_ntargets,                             @
         sa_targets,                             @
         i_nattribs,                             @
         sa_attributes )
dump i_return_value
#---------------------------------------------------------------------
# Displays the graph
i_return_value =                                 @
   res_display_graph_post( "Displacement_vs_" // @
      "Coordinate", "Nodal", 0, -1, "Displacement Graph", FALSE )
dump i_return_value
#---------------------------------------------------------------------
 
()
#
#  Purpose          :  This file provides an example of a call to the
#                      function res_display_graph_modify()
#
#                      This session file modifies a graph plot 
#                      definition. It changes the name of graph and 
#                      xy window name.
#                      
#                      Before running this session file run spool.ses
#                      and create result file spool.op2 as per the
#                      instructions given in it. Import this result
#                      file spool.op2 into spool.db. For instructions
#                      see file spool.ses
#
#                      This file can be run by starting a session of
#                      Patran, and running this session file
#                      through the "File","Session","Play" pulldown
#                      menus on the menu bar.
# 
#  The function res_display_graph_modify()
#  has the following arguments:
#
#  res_display_graph_modify
#     (  plot_name,
#        new_name,
#        graph_type,
#        entity_type,
#        ntargets,
#        targets,
#        nattribs,
#        attributes )
#
#---------------------------------------------------------------------
#  Variable Declarations
STRING   s_plot_name[32]
STRING   s_new_name[32]
STRING   s_graph_type[16]
STRING   s_entity_type[16]
INTEGER  i_ntargets
STRING   sa_targets[32](1)
INTEGER  i_nattribs
STRING   sa_attributes[64](14)
INTEGER  i_return_value
#---------------------------------------------------------------------
# Opens the file spool.db
uil_file_open.go ("spool.db")
#---------------------------------------------------------------------
# Creates a graph
i_return_value =                                 @
   res_data_load_dbresult( 0, "Nodal", "Scalar", @
      "SPOOL_LOADS", "Static Subcase",           @
      "Displacements", "Translational",          @
      "(NON-LAYERED)", "MAG", "AsIs", "", "", "", "", 0. )
dump i_return_value
 
i_return_value =                                 @
   res_data_title( 0, "Nodal", "Scalar", 1,      @
      ["Displacements, Translational, MAG"] )
dump i_return_value
 
i_return_value =                                 @
   res_display_graph_create( "old_graph",        @
      "DataLocation", "Nodes", 1,                @
      ["NO:Node 1:600"], 14, ["curveFitMetho" // @
      "d:Linear", "curveStyle:Solid",            @
      "symbolDisplay:OFF", "xAxisLabelDisplay:ON"@
      , "xAxisLabel:Coordinates",                @
      "xAxisScale:Linear", "xAxisLabelFormat" // @
      ":Fixed, 12, White, 2",                    @
      "yAxisLabelDisplay:ON", "yAxisLabel:Di" // @
      "splacement", "yAxisScale:Linear",         @
      "yAxisLabelFormat:Fixed, 12, White, 3",    @
      "ScaleFactor:1.", "Filter:None", "LocationCID:Coord 0.1"])
dump i_return_value
 
i_return_value =                                 @
   res_display_graph_post( "old_graph", "Nodal", @
      0, -1, "Displacement_Graph", FALSE )
dump i_return_value
#---------------------------------------------------------------------
# Press Resume to continue
sf_pause()
#---------------------------------------------------------------------
# Argument initialization
s_plot_name      = "old_graph"
s_new_name       = "new_graph"
s_graph_type     = "DataLocation"
s_entity_type    = "Nodes"
i_ntargets       = 1
sa_targets(1)    = "NO:Node 1:300"
i_nattribs       = 14
sa_attributes(1) = "curveFitMethod:Linear"
sa_attributes(2) = "curveStyle:Solid"
sa_attributes(3) = "symbolDisplay:OFF"
sa_attributes(4) = "xAxisLabelDisplay:ON"
sa_attributes(5) = "xAxisLabel:Coordinates"
sa_attributes(6) = "xAxisScale:Linear"
sa_attributes(7) = "xAxisLabelFormat:Fixed, 12, Yellow, 2" 
sa_attributes(8) = "yAxisLabelDisplay:ON" 
sa_attributes(9) = "yAxisLabel:Displacements"
sa_attributes(10)= "yAxisScale:Linear" 
sa_attributes(11)= "yAxisLabelFormat:Fixed, 12, LtGreen, 3" 
sa_attributes(12)= "ScaleFactor:1."
sa_attributes(13)= "Filter:None"
sa_attributes(14)= "LocationCID:Coord 0.1" 
#---------------------------------------------------------------------
# Modifies the graph
i_return_value =                                 @
   res_display_graph_modify                      @
      (  s_plot_name,                            @
         s_new_name,                             @
         s_graph_type,                           @
         s_entity_type,                          @
         i_ntargets,                             @
         sa_targets,                             @
         i_nattribs,                             @
         sa_attributes )
dump i_return_value
#---------------------------------------------------------------------
# Displays the graph
i_return_value =                                 @
   res_display_graph_post( "new_graph", "Nodal", @
      0, -1, "Displacement_translational", TRUE )
dump i_return_value
#---------------------------------------------------------------------
 
()
#
#  Purpose          :  This file provides an example of a call to the
#                      function res_display_deformation_create()
#
#                      This session file creates a deformation plot.
#
#                      Before running this session file run spool.ses
#                      and create result file spool.op2 as per the
#                      instructions given in it. Import this result
#                      file spool.op2 into spool.db. For instructions
#                      see file spool.ses
#
#                      This file can be run by starting a session of
#                      Patran, and running this session file
#                      through the "File","Session","Play" pulldown
#                      menus on the menu bar.
# 
#  The function res_display_deformation_create()
#  has the following arguments:
#
#  res_display_deformation_create
#     (  plot_name,
#        entity_type,
#        ntargets,
#        targets,
#        nattribs,
#        attributes )
#
#---------------------------------------------------------------------
#  Variable Declarations
STRING   s_plot_name[32]
STRING   s_entity_type[16]
INTEGER  i_ntargets
STRING   sa_targets[2](1)
INTEGER  i_nattribs
STRING   sa_attributes[64](9)
INTEGER  i_return_value
#---------------------------------------------------------------------
# Opens the file spool.db
uil_file_open.go ("spool.db")
#---------------------------------------------------------------------
# Defining a register
i_return_value =                                 @
   res_data_load_dbresult( 0, "Nodal", "Vector", @
      "SPOOL_LOADS", "Static Subcase",           @
      "Displacements", "Translational",          @
      "(NON-LAYERED)", "", "AsIs", "", "", "", "", 0. )
dump i_return_value
 
i_return_value =                                 @
   res_data_title( 0, "Nodal", "Vector", 1,      @
      ["SPOOL_LOADS, Static Subcase, Displac" // @
      "ements, Translational, (NON-LAYERED)"])
dump i_return_value
#---------------------------------------------------------------------
# Argument initialization
s_plot_name      = "Deformation_plot" 
s_entity_type    = "Elements"
i_ntargets       = 0 
sa_targets       = [""]
i_nattribs       = 9 
sa_attributes(1) = "DeformedStyle:LtBlue,Solid,1,Wireframe" 
sa_attributes(2) = "DeformedScale:Model=0.1" 
sa_attributes(3) = "UndeformedStyle:OFF,Blue,Solid,1,Wireframe" 
sa_attributes(4) = "TitleDisplay:ON" 
sa_attributes(5) = "MinMaxDisplay:ON" 
sa_attributes(6) = "ScaleFactor:1." 
sa_attributes(7) = "LabelStyle:Fixed, 12, White, 4" 
sa_attributes(8) = "DeformDisplay:Resultant" 
sa_attributes(9) = "DeformComps:OFF,OFF,OFF" 
#---------------------------------------------------------------------
# Creates a deformed plot
i_return_value =                                 @
   res_display_deformation_create                @
      (  s_plot_name,                            @
         s_entity_type,                          @
         i_ntargets,                             @
         sa_targets,                             @
         i_nattribs,                             @
         sa_attributes )
dump i_return_value
#---------------------------------------------------------------------
# Displays the plot
i_return_value =                                 @
   res_display_deformation_post( "Deformation_plot", 0 )
dump i_return_value
#---------------------------------------------------------------------
 
()
#
#  Purpose          :  This file provides an example of a call to the
#                      function res_display_deformation_modify()
#
#                      This session file modifies the deformation
#                      plot.
#
#                      Before running this session file run spool.ses
#                      and create result file spool.op2 as per the
#                      instructions given in it. Import this result
#                      file spool.op2 into spool.db. For instructions
#                      see file spool.ses
#
#                      This file can be run by starting a session of
#                      Patran, and running this session file
#                      through the "File","Session","Play" pulldown
#                      menus on the menu bar.
#
#  The function res_display_deformation_modify()
#  has the following arguments:
#
#  res_display_deformation_modify
#     (  plot_name,
#        new_name,
#        entity_type,
#        ntargets,
#        targets,
#        nattribs,
#        attributes )
#
#---------------------------------------------------------------------
#  Variable Declarations
STRING   s_plot_name[32]
STRING   s_new_name[32]
STRING   s_entity_type[16]
INTEGER  i_ntargets
STRING   sa_targets[2](1)
INTEGER  i_nattribs
STRING   sa_attributes[64](9)
INTEGER  i_return_value
#---------------------------------------------------------------------
# Opens the file spool.db
uil_file_open.go ("spool.db")
#---------------------------------------------------------------------
# Creates a deformed plot 
i_return_value =                                 @
   res_data_load_dbresult( 0, "Nodal", "Vector", @
      "SPOOL_LOADS", "Static Subcase",           @
      "Displacements", "Translational",          @
      "(NON-LAYERED)", "", "AsIs", "", "", "", "", 0. )
dump i_return_value
 
i_return_value =                                 @
   res_data_title( 0, "Nodal", "Vector", 1,      @
      ["SPOOL_LOADS, Static Subcase, Displac" // @
      "ements, Translational, (NON-LAYERED)"])
dump i_return_value
 
i_return_value =                                 @
   res_display_deformation_create( "Deformat" // @
      "ion_plot", "Elements", 0, [""], 9,        @
      ["DeformedStyle:LtBlue,Solid,1,Wireframe", @
      "DeformedScale:Model=0.1", "Undeformed" // @
      "Style:ON,White,Solid,1,Wireframe",        @
      "TitleDisplay:ON", "MinMaxDisplay:ON",     @
      "ScaleFactor:1.", "LabelStyle:Fixed, 1" // @
      "2, White, 4", "DeformDisplay:Resultant",  @
      "DeformComps:OFF,OFF,OFF"] )
dump i_return_value
 
i_return_value =                                 @
   res_display_deformation_post( "Deformation_plot", 0 )
dump i_return_value
#---------------------------------------------------------------------
# Press Resume to continue 
sf_pause()
#---------------------------------------------------------------------
# Argument initialization
s_plot_name      = "Deformation_plot"
s_new_name       = "New_Deformation_plot"
s_entity_type    = "Elements"
i_ntargets       = 0
sa_targets       = [""]
i_nattribs       = 9
sa_attributes(1) = "DeformedStyle:LtGreen,Solid,1,Wireframe" 
sa_attributes(2) = "DeformedScale:Model=0.1" 
sa_attributes(3) = "UndeformedStyle:ON,LtMagenta,Solid,1,Wireframe" 
sa_attributes(4) = "TitleDisplay:ON" 
sa_attributes(5) = "MinMaxDisplay:ON"
sa_attributes(6) = "ScaleFactor:1."
sa_attributes(7) = "LabelStyle:Fixed, 12, White, 4" 
sa_attributes(8) = "DeformDisplay:Resultant" 
sa_attributes(9) = "DeformComps:OFF,OFF,OFF" 
#---------------------------------------------------------------------
# Modifies the plot
i_return_value =                                 @
   res_display_deformation_modify                @
      (  s_plot_name,                            @
         s_new_name,                             @
         s_entity_type,                          @
         i_ntargets,                             @
         sa_targets,                             @
         i_nattribs,                             @
         sa_attributes )
dump i_return_value
#---------------------------------------------------------------------
# Displays the plot
i_return_value =                                 @
   res_display_deformation_post( "New_Deformation_plot", 0 )
dump i_return_value
#---------------------------------------------------------------------