() |
## Purpose : This file provides an example of two calls# to the function xy_axis_assign_method_get()## This file opens a new database "new.db" and# creates a window. Later it gets the labels# assignment method. Finally it changes the # assignment method and gets it again.## 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 xy_axis_assign_method_get()# has the following arguments:## xy_axis_assign_method_get# ( axis_name,# method )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_window_name[32]REAL r_x_locationREAL r_y_locationREAL r_widthREAL r_heightINTEGER i_nwindowsLOGICAL l_label_flag STRING s_axis_name[32]STRING s_method[20]INTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002# Create a new window.s_window_name = "XY_Window"r_x_location = 2.5r_y_location = 3.5r_width = 5.0r_height = 5.0i_return_value = @ xy_window_create @ ( s_window_name, @ r_x_location, @ r_y_location, @ r_width, @ r_height )dump i_return_value# Set the display label flags.s_axis_name = "X1"l_label_flag = TRUEi_return_value = @ xy_axis_display_labels_set @ ( s_axis_name, @ l_label_flag )dump i_return_value# Get the labels assignment method.i_return_value = @ xy_axis_assign_method_get @ ( s_axis_name, @ s_method )dump i_return_valuedump s_method#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the labels assignment method.IF ( s_method == "semiauto" ) THEN s_method = "automatic"ELSE s_method = "semiauto"ENDIFi_return_value = @ xy_axis_assign_method_set @ ( s_axis_name, @ s_method )dump i_return_valuedump s_method#---------------------------------------------------------------------# Reset the value.s_method = ""#---------------------------------------------------------------------# Get the labels assignment method.i_return_value = @ xy_axis_assign_method_get @ ( s_axis_name, @ s_method )dump i_return_valuedump s_method#---------------------------------------------------------------------() |
## Purpose : This file provides an example of a call to the# function xy_axis_assign_method_set()## This file opens a new database "new.db" and# creates a window. Later it gets the labels# assignment method. Finally it changes the # assignment method and gets it again.## 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 xy_axis_assign_method_set()# has the following arguments:## xy_axis_assign_method_set# ( axis_name,# method )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_window_name[32]REAL r_x_locationREAL r_y_locationREAL r_widthREAL r_heightINTEGER i_nwindowsLOGICAL l_label_flag STRING s_axis_name[32]STRING s_method[20]INTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002# Create a new window.s_window_name = "XY_Window"r_x_location = 2.5r_y_location = 3.5r_width = 5.0r_height = 5.0i_return_value = @ xy_window_create @ ( s_window_name, @ r_x_location, @ r_y_location, @ r_width, @ r_height )dump i_return_value# Set the display label flags.s_axis_name = "X1"l_label_flag = TRUEi_return_value = @ xy_axis_display_labels_set @ ( s_axis_name, @ l_label_flag )dump i_return_value# Get the labels assignment method.i_return_value = @ xy_axis_assign_method_get @ ( s_axis_name, @ s_method )dump i_return_valuedump s_method#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the labels assignment method.IF( s_method == "semiauto" ) THEN s_method = "automatic"ElSE s_method = "semiauto"ENDIFi_return_value = @ xy_axis_assign_method_set @ ( s_axis_name, @ s_method )dump i_return_valuedump s_method#---------------------------------------------------------------------# Reset the value.s_method = ""#---------------------------------------------------------------------# Get the labels assignment method.i_return_value = @ xy_axis_assign_method_get @ ( s_axis_name, @ s_method )dump i_return_valuedump s_method#---------------------------------------------------------------------() |
## Purpose : This file provides an example of two calls# to the function xy_axis_color_get()## This file opens a new database "new.db" and# creates a window. Later it gets the color# of the x axis. Finally it sets the color# and gets it again.## 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 xy_axis_color_get()# has the following arguments:## xy_axis_color_get# ( axis_name,# color_index )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_window_name[32]REAL r_x_locationREAL r_y_locationREAL r_widthREAL r_heightINTEGER i_nwindowsLOGICAL l_label_flagSTRING s_axis_name[32]INTEGER i_color_indexINTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002# Create a new window.s_window_name = "XY_Window"r_x_location = 2.5r_y_location = 3.5r_width = 5.0r_height = 5.0i_return_value = @ xy_window_create @ ( s_window_name, @ r_x_location, @ r_y_location, @ r_width, @ r_height )dump i_return_value# Set the display label flags.s_axis_name = "X1"l_label_flag = TRUEi_return_value = @ xy_axis_display_labels_set @ ( s_axis_name, @ l_label_flag )dump i_return_value# Get the axis color.i_return_value = @ xy_axis_color_get @ ( s_axis_name, @ i_color_index )dump i_return_valuedump i_color_index#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the axis color.IF( i_color_index == 2 ) THEN i_color_index = 3ELSE i_color_index = 2ENDIFi_return_value = @ xy_axis_color_set @ ( s_axis_name, @ i_color_index )dump i_return_value#---------------------------------------------------------------------# Reset the value.i_color_index = 0#---------------------------------------------------------------------# Get the axis color.i_return_value = @ xy_axis_color_get @ ( s_axis_name, @ i_color_index )dump i_return_valuedump i_color_index#---------------------------------------------------------------------() |
## Purpose : This file provides an example of a call to the# function xy_axis_color_set()## This file opens a new database "new.db" and# creates a window. Later it gets the color# of the x axis. Finally it sets the color# and gets it again.## 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 xy_axis_color_set()# has the following arguments:## xy_axis_color_set# ( axis_name,# color_index )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_window_name[32]REAL r_x_locationREAL r_y_locationREAL r_widthREAL r_heightINTEGER i_nwindowsLOGICAL l_label_flagSTRING s_axis_name[32]INTEGER i_color_indexINTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002# Create a new window.s_window_name = "XY_Window"r_x_location = 2.5r_y_location = 3.5r_width = 5.0r_height = 5.0i_return_value = @ xy_window_create @ ( s_window_name, @ r_x_location, @ r_y_location, @ r_width, @ r_height )dump i_return_value# Set the display label flags.s_axis_name = "X1"l_label_flag = TRUEi_return_value = @ xy_axis_display_labels_set @ ( s_axis_name, @ l_label_flag )dump i_return_value# Get the axis color.i_return_value = @ xy_axis_color_get @ ( s_axis_name, @ i_color_index )dump i_return_valuedump i_color_index#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the axis color.IF( i_color_index == 2 ) THEN i_color_index = 3ELSE i_color_index = 2ENDIFi_return_value = @ xy_axis_color_set @ ( s_axis_name, @ i_color_index )dump i_return_value#---------------------------------------------------------------------# Reset the value.i_color_index = 0#---------------------------------------------------------------------# Get the axis color.i_return_value = @ xy_axis_color_get @ ( s_axis_name, @ i_color_index )dump i_return_valuedump i_color_index#---------------------------------------------------------------------() |
## Purpose : This file provides an example of two calls# to the function xy_axis_display_labels_get()## This file opens a new database "new.db" and# creates a window. Later it gets the display# label flag. Finally it changes the display# flag and gets it.## 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 xy_axis_display_labels_get()# has the following arguments:## xy_axis_display_labels_get# ( axis_name,# label_flag )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_window_name[32]REAL r_x_locationREAL r_y_locationREAL r_widthREAL r_heightINTEGER i_nwindowsLOGICAL l_label_flagLOGICAL l_label_flag_cSTRING s_axis_name[32]INTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002# Create a new window.s_window_name = "XY_Window"r_x_location = 2.5r_y_location = 3.5r_width = 5.0r_height = 5.0i_return_value = @ xy_window_create @ ( s_window_name, @ r_x_location, @ r_y_location, @ r_width, @ r_height )dump i_return_value# Get the display label flag.s_axis_name = "X1"i_return_value = @ xy_axis_display_labels_get @ ( s_axis_name, @ l_label_flag )dump i_return_valuedump l_label_flag#---------------------------------------------------------------------# Session file paused press ’Resume’ to continuesf_pause()#---------------------------------------------------------------------# Set the display label flags.IF( l_label_flag = TRUE ) THEN l_label_flag = FALSEELSE l_label_flag = TRUEENDIFi_return_value = @ xy_axis_display_labels_set @ ( s_axis_name, @ l_label_flag )dump i_return_value#---------------------------------------------------------------------# Reset the valuel_label_flag = TRUE#---------------------------------------------------------------------# Get the display label flag.i_return_value = @ xy_axis_display_labels_get @ ( s_axis_name, @ l_label_flag_c )dump i_return_valuedump l_label_flag_c#---------------------------------------------------------------------() |
## Purpose : This file provides an example of a call to the# function xy_axis_display_labels_set()## This file opens a new database "new.db" and# creates a window. Later it gets the display# label flag. Finally it changes the display# flag and gets it.## 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 xy_axis_display_labels_set()# has the following arguments:## xy_axis_display_labels_set# ( axis_name,# label_flag )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_window_name[32]REAL r_x_locationREAL r_y_locationREAL r_widthREAL r_heightINTEGER i_nwindowsLOGICAL l_label_flagLOGICAL l_label_flag_cSTRING s_axis_name[32]INTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002# Create a new window.s_window_name = "XY_Window"r_x_location = 2.5r_y_location = 3.5r_width = 5.0r_height = 5.0i_return_value = @ xy_window_create @ ( s_window_name, @ r_x_location, @ r_y_location, @ r_width, @ r_height )dump i_return_value# Get the display label flag.s_axis_name = "X1"i_return_value = @ xy_axis_display_labels_get @ ( s_axis_name, @ l_label_flag )dump i_return_valuedump l_label_flag#---------------------------------------------------------------------# Session file paused press ’Resume’ to continuesf_pause()#---------------------------------------------------------------------# Set the display label flags.IF( l_label_flag = TRUE ) THEN l_label_flag = FALSEELSE l_label_flag = TRUEENDIFi_return_value = @ xy_axis_display_labels_set @ ( s_axis_name, @ l_label_flag )dump i_return_value#---------------------------------------------------------------------# Reset the valuel_label_flag_c = TRUE#---------------------------------------------------------------------# Get the display label flag.i_return_value = @ xy_axis_display_labels_get @ ( s_axis_name, @ l_label_flag_c )dump i_return_valuedump l_label_flag_c#---------------------------------------------------------------------() |
## Purpose : This file provides an example of two calls# to the function xy_axis_display_title_get()## This file opens a new database "new.db" and# creates a window. Later it gets the title# display flag. Finally it sets the title# display flag and gets it again.## 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 xy_axis_display_title_get()# has the following arguments:## xy_axis_display_title_get# ( axis_name,# title_flag )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_window_name[32]REAL r_x_locationREAL r_y_locationREAL r_widthREAL r_heightINTEGER i_nwindowsLOGICAL l_label_flagSTRING s_axis_name[32]LOGICAL l_title_flagLOGICAL l_title_flag_cINTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002# Create a new window.s_window_name = "XY_Window"r_x_location = 2.5r_y_location = 3.5r_width = 5.0r_height = 5.0i_return_value = @ xy_window_create @ ( s_window_name, @ r_x_location, @ r_y_location, @ r_width, @ r_height )dump i_return_value# Set the display label flags.s_axis_name = "X1"l_label_flag = TRUEi_return_value = @ xy_axis_display_labels_set @ ( s_axis_name, @ l_label_flag )dump i_return_value# Get the display title flag.i_return_value = @ xy_axis_display_title_get @ ( s_axis_name, @ l_title_flag )dump i_return_valuedump l_title_flag#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the display title flag.IF( l_title_flag == TRUE ) THEN l_title_flag = FALSEELSE l_title_flag = TRUEENDIFi_return_value = @ xy_axis_display_title_set @ ( s_axis_name, @ l_title_flag )dump i_return_value# Get the display title flag.i_return_value = @ xy_axis_display_title_get @ ( s_axis_name, @ l_title_flag_c )dump i_return_valuedump l_title_flag_c#---------------------------------------------------------------------() |
## Purpose : This file provides an example of a call to the# function xy_axis_display_title_set()## This file opens a new database "new.db" and# creates a window. Later it gets the title# display flag. Finally it sets the title# display flag and gets it.## 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 xy_axis_display_title_set()# has the following arguments:## xy_axis_display_title_set# ( axis_name,# title_flag )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_window_name[32]REAL r_x_locationREAL r_y_locationREAL r_widthREAL r_heightINTEGER i_nwindowsLOGICAL l_label_flagSTRING s_axis_name[32]LOGICAL l_title_flagLOGICAL l_title_flag_cINTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002# Create a new window.s_window_name = "XY_Window"r_x_location = 2.5r_y_location = 3.5r_width = 5.0r_height = 5.0i_return_value = @ xy_window_create @ ( s_window_name, @ r_x_location, @ r_y_location, @ r_width, @ r_height )dump i_return_value# Set the display label flags.s_axis_name = "X1"l_label_flag = TRUEi_return_value = @ xy_axis_display_labels_set @ ( s_axis_name, @ l_label_flag )dump i_return_value# Get the display title flag.i_return_value = @ xy_axis_display_title_get @ ( s_axis_name, @ l_title_flag )dump i_return_valuedump l_title_flag#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the display title flag.IF( l_title_flag == TRUE ) THEN l_title_flag = FALSEELSE l_title_flag = TRUEENDIFi_return_value = @ xy_axis_display_title_set @ ( s_axis_name, @ l_title_flag )dump i_return_value# Get the display title flag.i_return_value = @ xy_axis_display_title_get @ ( s_axis_name, @ l_title_flag_c )dump i_return_valuedump l_title_flag_c#---------------------------------------------------------------------() |
## Purpose : This file provides an example of two calls# to the function xy_axis_grid_display_get()## This file opens a new database "new.db" and# creates a window. Later it gets the grid# display type. Finally it sets the grid display# type and gets it again.## 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 xy_axis_grid_display_get()# has the following arguments:## xy_axis_grid_display_get# ( axis_name,# grid_type )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_window_name[32]REAL r_x_locationREAL r_y_locationREAL r_widthREAL r_heightINTEGER i_nwindowsSTRING s_axis_name[32]STRING s_grid_type[32]INTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002# Create a new window.s_window_name = "XY_Window"r_x_location = 2.5r_y_location = 3.5r_width = 5.0r_height = 5.0i_return_value = @ xy_window_create @ ( s_window_name, @ r_x_location, @ r_y_location, @ r_width, @ r_height )dump i_return_value# Get the grid display type.s_axis_name = "X1"i_return_value = @ xy_axis_grid_display_get @ ( s_axis_name, @ s_grid_type )dump i_return_valuedump s_grid_type #---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the grid display type.IF( s_grid_type == "None" ) THEN s_grid_type = "primarysecondary"ELSE s_grid_type = "None"ENDIFi_return_value = @ xy_axis_grid_display_set @ ( s_axis_name, @ s_grid_type )dump i_return_value#---------------------------------------------------------------------# Reset the values_grid_type = ""#---------------------------------------------------------------------# Get the grid display type.i_return_value = @ xy_axis_grid_display_get @ ( s_axis_name, @ s_grid_type )dump i_return_valuedump s_grid_type #---------------------------------------------------------------------() |
## Purpose : This file provides an example of a call to the# function xy_axis_grid_display_set()## This file opens a new database "new.db" and# creates a window. Later it gets the grid# display type. Finally it sets the grid display# type and gets it again.## 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 xy_axis_grid_display_set()# has the following arguments:## xy_axis_grid_display_set# ( axis_name,# grid_type )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_window_name[32]REAL r_x_locationREAL r_y_locationREAL r_widthREAL r_heightINTEGER i_nwindowsSTRING s_axis_name[32]STRING s_grid_type[32]INTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002# Create a new window.s_window_name = "XY_Window"r_x_location = 2.5r_y_location = 3.5r_width = 5.0r_height = 5.0i_return_value = @ xy_window_create @ ( s_window_name, @ r_x_location, @ r_y_location, @ r_width, @ r_height )dump i_return_value# Get the grid display type.s_axis_name = "X1"i_return_value = @ xy_axis_grid_display_get @ ( s_axis_name, @ s_grid_type )dump i_return_valuedump s_grid_type #---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the grid display type.IF( s_grid_type == "None" ) THEN s_grid_type = "primarysecondary"ELSE s_grid_type = "None"ENDIFi_return_value = @ xy_axis_grid_display_set @ ( s_axis_name, @ s_grid_type )dump i_return_value#---------------------------------------------------------------------# Reset the values_grid_type = ""#---------------------------------------------------------------------# Get the grid display type.i_return_value = @ xy_axis_grid_display_get @ ( s_axis_name, @ s_grid_type )dump i_return_valuedump s_grid_type #---------------------------------------------------------------------() |
## Purpose : This file provides an example of two calls# to the function xy_axis_grid_get()## This file opens a new database "new.db" and# creates a window. Later it gets the gridline# attributes. Finally it sets the gridline # attributes and gets it again.## 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 xy_axis_grid_get()# has the following arguments:## xy_axis_grid_get# ( axis_name,# prim_sec,# curvestyle,# thickness,# color_index )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_window_name[32]REAL r_x_locationREAL r_y_locationREAL r_widthREAL r_heightINTEGER i_nwindowsSTRING s_axis_name[32]STRING s_prim_sec[32]STRING s_grid_type[32]STRING s_curvestyle[32]INTEGER i_thicknessINTEGER i_color_indexINTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002# Create a new window.s_window_name = "XY_Window"r_x_location = 2.5r_y_location = 3.5r_width = 5.0r_height = 5.0i_return_value = @ xy_window_create @ ( s_window_name, @ r_x_location, @ r_y_location, @ r_width, @ r_height )dump i_return_value# Set the grid display type.s_axis_name = "X1"s_grid_type = "PrimarySecondary"i_return_value = @ xy_axis_grid_display_set @ ( s_axis_name, @ s_grid_type )dump i_return_value# Get the grid line attributes.s_prim_sec = "primary"i_return_value = @ xy_axis_grid_get @ ( s_axis_name, @ s_prim_sec, @ s_curvestyle, @ i_thickness, @ i_color_index )dump i_return_valuedump s_curvestyledump i_thicknessdump i_color_index#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the grid line attributes.IF ( s_curvestyle == "Dotted" ) THEN s_curvestyle = "Solid"ELSE s_curvestyle = "Dotted"ENDIFIF ( i_thickness == 6 ) THEN i_thickness = 2ELSE i_thickness = 6ENDIFIF ( i_color_index == 2 ) THEN i_color_index = 3ELSE i_color_index = 2ENDIFi_return_value = @ xy_axis_grid_set @ ( s_axis_name, @ s_prim_sec, @ s_curvestyle, @ i_thickness, @ i_color_index )dump i_return_value#---------------------------------------------------------------------# Reset the value.s_curvestyle = ""i_thickness = 0i_color_index = 0#---------------------------------------------------------------------# Get the grid line attributes.i_return_value = @ xy_axis_grid_get @ ( s_axis_name, @ s_prim_sec, @ s_curvestyle, @ i_thickness, @ i_color_index )dump i_return_valuedump s_curvestyledump i_thicknessdump i_color_index#---------------------------------------------------------------------() |
## Purpose : This file provides an example of a call to the# function xy_axis_grid_set()## This file opens a new database "new.db" and# creates a window. Later it gets the gridline# attributes. Finally it sets the gridline # attributes and gets it.## 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 xy_axis_grid_set()# has the following arguments:## xy_axis_grid_set# ( axis_name,# prim_sec,# curvestyle,# thickness,# color_index )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_window_name[32]REAL r_x_locationREAL r_y_locationREAL r_widthREAL r_heightINTEGER i_nwindowsSTRING s_axis_name[32]STRING s_prim_sec[32]STRING s_grid_type[32]STRING s_curvestyle[32]INTEGER i_thicknessINTEGER i_color_indexINTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002# Create a new window.s_window_name = "XY_Window"r_x_location = 2.5r_y_location = 3.5r_width = 5.0r_height = 5.0i_return_value = @ xy_window_create @ ( s_window_name, @ r_x_location, @ r_y_location, @ r_width, @ r_height )dump i_return_value# Set the grid display type.s_axis_name = "X1"s_grid_type = "PrimarySecondary"i_return_value = @ xy_axis_grid_display_set @ ( s_axis_name, @ s_grid_type )dump i_return_value# Get the grid line attributes.s_prim_sec = "primary"i_return_value = @ xy_axis_grid_get @ ( s_axis_name, @ s_prim_sec, @ s_curvestyle, @ i_thickness, @ i_color_index )dump i_return_valuedump s_curvestyledump i_thicknessdump i_color_index#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the grid line attributes.IF ( s_curvestyle == "Dotted" ) THEN s_curvestyle = "Solid"ELSE s_curvestyle = "Dotted"ENDIFIF ( i_thickness == 6 ) THEN i_thickness = 2ELSE i_thickness = 6ENDIFIF ( i_color_index == 2 ) THEN i_color_index = 3ELSE i_color_index = 2ENDIFi_return_value = @ xy_axis_grid_set @ ( s_axis_name, @ s_prim_sec, @ s_curvestyle, @ i_thickness, @ i_color_index )dump i_return_value#---------------------------------------------------------------------# Reset the value.s_curvestyle = ""i_thickness = 0i_color_index = 0#---------------------------------------------------------------------# Get the grid line attributes.i_return_value = @ xy_axis_grid_get @ ( s_axis_name, @ s_prim_sec, @ s_curvestyle, @ i_thickness, @ i_color_index )dump i_return_valuedump s_curvestyledump i_thicknessdump i_color_index#---------------------------------------------------------------------() |
## Purpose : This file provides an example of two calls# to the function xy_axis_label_color_get()## This file opens a new database "new.db" and# creates a window. Later it gets the color# of the label for a specified axis. Finally# it sets the color of the label and gets it.## 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 xy_axis_label_color_get()# has the following arguments:## xy_axis_label_color_get# ( axis_name,# label_color )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_window_name[32]REAL r_x_locationREAL r_y_locationREAL r_widthREAL r_heightINTEGER i_nwindowsLOGICAL l_label_flagSTRING s_axis_name[32]INTEGER i_label_colorINTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002# Create a new window.s_window_name = "XY_Window"r_x_location = 2.5r_y_location = 3.5r_width = 5.0r_height = 5.0i_return_value = @ xy_window_create @ ( s_window_name, @ r_x_location, @ r_y_location, @ r_width, @ r_height )dump i_return_value# Set the display label flags.s_axis_name = "X1"l_label_flag = TRUEi_return_value = @ xy_axis_display_labels_set @ ( s_axis_name, @ l_label_flag )dump i_return_value# Get the label color.i_return_value = @ xy_axis_label_color_get @ ( s_axis_name, @ i_label_color )dump i_return_valuedump i_label_color#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the label color.IF ( i_label_color == 7 )THEN i_label_color = 3ELSE i_label_color = 2ENDIFi_return_value = @ xy_axis_label_color_set @ ( s_axis_name, @ i_label_color )dump i_return_value#---------------------------------------------------------------------# Reset the value.i_label_color = 0#---------------------------------------------------------------------# Get the label color.i_return_value = @ xy_axis_label_color_get @ ( s_axis_name, @ i_label_color )dump i_return_valuedump i_label_color#---------------------------------------------------------------------() |
## Purpose : This file provides an example of a call to the# function xy_axis_label_color_set()## This file opens a new database "new.db" and# creates a window. Later it gets the color# of the label for a specified axis. Finally# it sets the color of the label and gets it.## 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 xy_axis_label_color_set()# has the following arguments:## xy_axis_label_color_set# ( axis_name,# label_color )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_window_name[32]REAL r_x_locationREAL r_y_locationREAL r_widthREAL r_heightINTEGER i_nwindowsLOGICAL l_label_flagSTRING s_axis_name[32]INTEGER i_label_colorINTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002# Create a new window.s_window_name = "XY_Window"r_x_location = 2.5r_y_location = 3.5r_width = 5.0r_height = 5.0i_return_value = @ xy_window_create @ ( s_window_name, @ r_x_location, @ r_y_location, @ r_width, @ r_height )dump i_return_value# Set the display label flags.s_axis_name = "X1"l_label_flag = TRUEi_return_value = @ xy_axis_display_labels_set @ ( s_axis_name, @ l_label_flag )dump i_return_value# Get the label color.i_return_value = @ xy_axis_label_color_get @ ( s_axis_name, @ i_label_color )dump i_return_valuedump i_label_color#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the label color.IF ( i_label_color == 2 )THEN i_label_color = 3ELSE i_label_color = 2ENDIFi_return_value = @ xy_axis_label_color_set @ ( s_axis_name, @ i_label_color )dump i_return_value# Reset the value.i_label_color = 0# Get the label color.i_return_value = @ xy_axis_label_color_get @ ( s_axis_name, @ i_label_color )dump i_return_valuedump i_label_color#---------------------------------------------------------------------() |
## Purpose : This file provides an example of two calls# to the function xy_axis_label_format_get()## This file opens a new database "new.db" and# creates a window. Later it gets the label # format for a specified axis. Finally it sets# the label format and gets it.## 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 xy_axis_label_format_get()# has the following arguments:## xy_axis_label_format_get# ( axis_name,# label_format )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_window_name[32]REAL r_x_locationREAL r_y_locationREAL r_widthREAL r_heightINTEGER i_nwindowsLOGICAL l_label_flagSTRING s_axis_name[32]STRING s_label_format[32]INTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002# Create a new window.s_window_name = "XY_Window"r_x_location = 2.5r_y_location = 3.5r_width = 5.0r_height = 5.0i_return_value = @ xy_window_create @ ( s_window_name, @ r_x_location, @ r_y_location, @ r_width, @ r_height )dump i_return_value# Set the display label flags.s_axis_name = "Y1"l_label_flag = TRUEi_return_value = @ xy_axis_display_labels_set @ ( s_axis_name, @ l_label_flag )dump i_return_value# Get the label format.i_return_value = @ xy_axis_label_format_get @ ( s_axis_name, @ s_label_format )dump i_return_valuedump s_label_format#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the label format.IF ( s_label_format == "fixed" ) THEN s_label_format = "exponential"ELSE s_label_format = "fixed"ENDIFi_return_value = @ xy_axis_label_format_set @ ( s_axis_name, @ s_label_format )dump i_return_value#---------------------------------------------------------------------# Reset the value.s_label_format = ""#---------------------------------------------------------------------# Get the label format.i_return_value = @ xy_axis_label_format_get @ ( s_axis_name, @ s_label_format )dump i_return_valuedump s_label_format#---------------------------------------------------------------------() |
## Purpose : This file provides an example of a call to the# function xy_axis_label_format_set()## This file opens a new database "new.db" and# creates a window. Later it gets the label # format for a specified axis. Finally it sets# the label format and gets it.## 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 xy_axis_label_format_set()# has the following arguments:## xy_axis_label_format_set# ( axis_name,# label_format )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_window_name[32]REAL r_x_locationREAL r_y_locationREAL r_widthREAL r_heightINTEGER i_nwindowsLOGICAL l_label_flagSTRING s_axis_name[32]STRING s_label_format[32]INTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002# Create a new window.s_window_name = "XY_Window"r_x_location = 2.5r_y_location = 3.5r_width = 5.0r_height = 5.0i_return_value = @ xy_window_create @ ( s_window_name, @ r_x_location, @ r_y_location, @ r_width, @ r_height )dump i_return_value# Set the display label flags.s_axis_name = "Y1"l_label_flag = TRUEi_return_value = @ xy_axis_display_labels_set @ ( s_axis_name, @ l_label_flag )dump i_return_value# Get the label format.i_return_value = @ xy_axis_label_format_get @ ( s_axis_name, @ s_label_format )dump i_return_valuedump s_label_format#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the label format.IF ( s_label_format == "fixed" ) THEN s_label_format = "exponential"ELSE s_label_format = "fixed"ENDIFi_return_value = @ xy_axis_label_format_set @ ( s_axis_name, @ s_label_format )dump i_return_value#---------------------------------------------------------------------# Reset the value.s_label_format = ""#---------------------------------------------------------------------# Get the label format.i_return_value = @ xy_axis_label_format_get @ ( s_axis_name, @ s_label_format )dump i_return_valuedump s_label_format#---------------------------------------------------------------------() |
## Purpose : This file provides an example of two calls# to the function xy_axis_label_type_get()## This file opens a new database "new.db" and# creates a window. Later it gets the axis label# type. Finally it changes the axis label type# and gets it again.## 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 xy_axis_label_type_get()# has the following arguments:## xy_axis_label_type_get# ( axis_name,# label_type )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_window_name[32]REAL r_x_locationREAL r_y_locationREAL r_widthREAL r_heightINTEGER i_nwindowsLOGICAL l_label_flagSTRING s_axis_name[32]STRING s_label_type[32]INTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002# Create a new window.s_window_name = "XY_Window"r_x_location = 2.5r_y_location = 3.5r_width = 5.0r_height = 5.0i_return_value = @ xy_window_create @ ( s_window_name, @ r_x_location, @ r_y_location, @ r_width, @ r_height )dump i_return_value# Set the display label flags.s_axis_name = "X1"l_label_flag = TRUEi_return_value = @ xy_axis_display_labels_set @ ( s_axis_name, @ l_label_flag )dump i_return_value# Get the label type.i_return_value = @ xy_axis_label_type_get @ ( s_axis_name, @ s_label_type )dump i_return_valuedump s_label_type#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the label type.IF ( s_label_type == "linear" ) THEN s_label_type = "logarithmic"ELSE s_label_type = "linear"ENDIFi_return_value = @ xy_axis_label_type_set @ ( s_axis_name, @ s_label_type )dump i_return_value#---------------------------------------------------------------------# Reset the value.s_label_type = ""#---------------------------------------------------------------------# Get the label type.i_return_value = @ xy_axis_label_type_get @ ( s_axis_name, @ s_label_type )dump i_return_valuedump s_label_type#---------------------------------------------------------------------() |
## Purpose : This file provides an example of a call to the# function xy_axis_label_type_set()## This file opens a new database "new.db" and# creates a window. Later it gets the axis label# type. Finally it changes the axis label type# and gets it again.## 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 xy_axis_label_type_set()# has the following arguments:## xy_axis_label_type_set# ( axis_name,# label_type )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_window_name[32]REAL r_x_locationREAL r_y_locationREAL r_widthREAL r_heightINTEGER i_nwindowsLOGICAL l_label_flagSTRING s_axis_name[32]STRING s_label_type[32]INTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002# Create a new window.s_window_name = "XY_Window"r_x_location = 2.5r_y_location = 3.5r_width = 5.0r_height = 5.0i_return_value = @ xy_window_create @ ( s_window_name, @ r_x_location, @ r_y_location, @ r_width, @ r_height )dump i_return_value# Set the display label flags.s_axis_name = "X1"l_label_flag = TRUEi_return_value = @ xy_axis_display_labels_set @ ( s_axis_name, @ l_label_flag )dump i_return_value# Get the label type.i_return_value = @ xy_axis_label_type_get @ ( s_axis_name, @ s_label_type )dump i_return_valuedump s_label_type#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the label type.IF ( s_label_type == "linear" ) THEN s_label_type = "logarithmic"ELSE s_label_type = "linear"ENDIFi_return_value = @ xy_axis_label_type_set @ ( s_axis_name, @ s_label_type )dump i_return_value#---------------------------------------------------------------------# Reset the value.s_label_type = ""#---------------------------------------------------------------------# Get the label type.i_return_value = @ xy_axis_label_type_get @ ( s_axis_name, @ s_label_type )dump i_return_valuedump s_label_type#---------------------------------------------------------------------() |
## Purpose : This file provides an example of two calls# to the function xy_axis_labels_get()## This file opens a new database "new.db" and# creates a window. Later it sets the labels# assignment method to "range" and gets the# labels. Finally it sets the labels and gets it.## 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 xy_axis_labels_get()# has the following arguments:## xy_axis_labels_get# ( axis_name,# labels )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_window_name[32]REAL r_x_locationREAL r_y_locationREAL r_widthREAL r_heightINTEGER i_nwindowsLOGICAL l_label_flagSTRING s_method[32]STRING s_axis_name[32]REAL ra_labels(2)INTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002# Create a new window.s_window_name = "XY_Window"r_x_location = 2.5r_y_location = 3.5r_width = 5.0r_height = 5.0i_return_value = @ xy_window_create @ ( s_window_name, @ r_x_location, @ r_y_location, @ r_width, @ r_height )dump i_return_value# Set the display label flags.s_axis_name = "X1"l_label_flag = TRUEi_return_value = @ xy_axis_display_labels_set @ ( s_axis_name, @ l_label_flag )dump i_return_value# Set the labels assignment method.s_method = "range"i_return_value = @ xy_axis_assign_method_set @ ( s_axis_name, @ s_method )dump i_return_value# Get the labels for the X axis.i_return_value = @ xy_axis_labels_get @ ( s_axis_name, @ ra_labels )dump i_return_valuedump ra_labels#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the labels for the X axis.ra_labels(1) = 1.0IF ( ra_labels(2) == 10.0 ) THEN ra_labels(2) = 20.0ELSE ra_labels(2) = 10.0ENDIFi_return_value = @ xy_axis_labels_set @ ( s_axis_name, @ ra_labels )dump i_return_value#---------------------------------------------------------------------# Reset the Values.ra_labels(1) = 0.0ra_labels(2) = 0.0#---------------------------------------------------------------------# Get the labels for the X axis.i_return_value = @ xy_axis_labels_get @ ( s_axis_name, @ ra_labels )dump i_return_valuedump ra_labels#---------------------------------------------------------------------() |
## Purpose : This file provides an example of two calls to# the function xy_axis_labels_get_count()## This file opens a new database "new.db" and# creates a window. Later it sets the labels# assignment method to "range" and gets the# number of labels defined. Finally it sets the# label assignment method to "manual" and gets# the number of defined labels again.## 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 xy_axis_labels_get_count()# has the following arguments:## xy_axis_labels_get_count# ( axis_name,# nlabels )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_axis_name[32]INTEGER i_nlabelsINTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002#---------------------------------------------------------------------# Create a new XY windowi_return_value = @ xy_window_create @ ( "new_xy_window", 2.5, 3.5, 5., 5. )dump i_return_value#---------------------------------------------------------------------# Set the display label flags to TRUEs_axis_name = "X1"i_return_value = @ xy_axis_display_labels_set @ ( s_axis_name, TRUE )dump i_return_value#---------------------------------------------------------------------# Set the labels assignment methodi_return_value = @ xy_axis_assign_method_set @ ( s_axis_name, "range" )dump i_return_value#---------------------------------------------------------------------# Get the number of labels defined for the X axisi_return_value = @ xy_axis_labels_get_count @ ( s_axis_name, @ i_nlabels )dump i_return_valuedump i_nlabels#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the labels assignment methodi_return_value = @ xy_axis_assign_method_set @ ( s_axis_name, "manual" )dump i_return_value#---------------------------------------------------------------------# Reset the value.i_nlabels = 0#---------------------------------------------------------------------# Get the number of labels defined for the X axisi_return_value = @ xy_axis_labels_get_count @ ( s_axis_name, @ i_nlabels )dump i_return_valuedump i_nlabels#---------------------------------------------------------------------() |
## Purpose : This file provides an example of a call to the# function xy_axis_labels_set()## This file opens a new database "new.db" and# creates a window. Later it sets the labels# assignment method to "range" and gets the# labels. Finally it sets the labels and gets it.## 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 xy_axis_labels_set()# has the following arguments:## xy_axis_labels_set# ( axis_name,# labels )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_window_name[32]REAL r_x_locationREAL r_y_locationREAL r_widthREAL r_heightINTEGER i_nwindowsLOGICAL l_label_flagSTRING s_method[32]STRING s_axis_name[32]REAL ra_labels(2)INTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002# Create a new window.s_window_name = "XY_Window"r_x_location = 2.5r_y_location = 3.5r_width = 5.0r_height = 5.0i_return_value = @ xy_window_create @ ( s_window_name, @ r_x_location, @ r_y_location, @ r_width, @ r_height )dump i_return_value# Set the display label flags.s_axis_name = "X1"l_label_flag = TRUEi_return_value = @ xy_axis_display_labels_set @ ( s_axis_name, @ l_label_flag )dump i_return_value# Set the labels assignment method.s_method = "range"i_return_value = @ xy_axis_assign_method_set @ ( s_axis_name, @ s_method )dump i_return_value# Get the labels for the X axis.i_return_value = @ xy_axis_labels_get @ ( s_axis_name, @ ra_labels )dump i_return_valuedump ra_labels#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the labels for the X axis.ra_labels(1) = 1.0IF ( ra_labels(2) == 10.0 ) THEN ra_labels(2) = 20.0ELSE ra_labels(2) = 10.0ENDIFi_return_value = @ xy_axis_labels_set @ ( s_axis_name, @ ra_labels )dump i_return_value#---------------------------------------------------------------------# Reset the Values.ra_labels(1) = 0.0ra_labels(2) = 0.0#---------------------------------------------------------------------# Get the labels for the X axis.i_return_value = @ xy_axis_labels_get @ ( s_axis_name, @ ra_labels )dump i_return_valuedump ra_labels#---------------------------------------------------------------------() |
## Purpose : This file provides an example of two calls# to the function xy_axis_linestyle_get()## This file opens a new database "new.db" and# creates a window. Later it gets the axis # curve style. Finally it changes the axis# curve style and gets it.## 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 xy_axis_linestyle_get()# has the following arguments:## xy_axis_linestyle_get# ( axis_name,# curve_style )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_window_name[32]REAL r_x_locationREAL r_y_locationREAL r_widthREAL r_heightINTEGER i_nwindowsSTRING s_axis_name[32]STRING s_curve_style[30]INTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002# Create a new window.s_window_name = "XY_Window"r_x_location = 2.5r_y_location = 3.5r_width = 5.0r_height = 5.0i_return_value = @ xy_window_create @ ( s_window_name, @ r_x_location, @ r_y_location, @ r_width, @ r_height )dump i_return_value# Get the axis curve style.s_axis_name = "X1"i_return_value = @ xy_axis_linestyle_get @ ( s_axis_name, @ s_curve_style )dump i_return_valuedump s_curve_style#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the axis curve style.IF ( s_curve_style == "solid" ) THEN s_curve_style = "dotted"ELSE s_curve_style = "solid"ENDIFi_return_value = @ xy_axis_linestyle_set @ ( s_axis_name, @ s_curve_style )dump i_return_value#---------------------------------------------------------------------# Reset the value.s_curve_style = ""#---------------------------------------------------------------------# Get the axis curve style.i_return_value = @ xy_axis_linestyle_get @ ( s_axis_name, @ s_curve_style )dump i_return_valuedump s_curve_style#---------------------------------------------------------------------() |
## Purpose : This file provides an example of a call to the# function xy_axis_linestyle_set()## This file opens a new database "new.db" and# creates a window. Later it gets the axis # curve style. Finally it changes the axis# curve style and gets it.## 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 xy_axis_linestyle_set()# has the following arguments:## xy_axis_linestyle_set# ( axis_name,# curve_style )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_window_name[32]REAL r_x_locationREAL r_y_locationREAL r_widthREAL r_heightINTEGER i_nwindowsSTRING s_axis_name[32]STRING s_curve_style[30]INTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002# Create a new window.s_window_name = "XY_Window"r_x_location = 2.5r_y_location = 3.5r_width = 5.0r_height = 5.0i_return_value = @ xy_window_create @ ( s_window_name, @ r_x_location, @ r_y_location, @ r_width, @ r_height )dump i_return_value# Get the axis curve style.s_axis_name = "X1"i_return_value = @ xy_axis_linestyle_get @ ( s_axis_name, @ s_curve_style )dump i_return_valuedump s_curve_style#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the axis curve style.IF ( s_curve_style == "solid" ) THEN s_curve_style = "dotted"ELSE s_curve_style = "solid"ENDIFi_return_value = @ xy_axis_linestyle_set @ ( s_axis_name, @ s_curve_style )dump i_return_value#---------------------------------------------------------------------# Reset the value.s_curve_style = ""#---------------------------------------------------------------------# Get the axis curve style.i_return_value = @ xy_axis_linestyle_get @ ( s_axis_name, @ s_curve_style )dump i_return_valuedump s_curve_style#---------------------------------------------------------------------() |
## Purpose : This file provides an example of two calls# to the function xy_axis_location_get()## This file opens a new database "new.db" and# creates a window. Later it gets the display# location of the axis. Finally it changes the# display location of the axis and gets it.## 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 xy_axis_location_get()# has the following arguments:## xy_axis_location_get# ( axis_name,# display_location )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_window_name[32]REAL r_x_locationREAL r_y_locationREAL r_widthREAL r_heightINTEGER i_nwindowsSTRING s_axis_name[32]STRING s_display_location[16]INTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002# Create a new window.s_window_name = "XY_Window"r_x_location = 2.5r_y_location = 3.5r_width = 5.0r_height = 5.0i_return_value = @ xy_window_create @ ( s_window_name, @ r_x_location, @ r_y_location, @ r_width, @ r_height )dump i_return_value# Get the location of the axis.s_axis_name = "X1"i_return_value = @ xy_axis_location_get @ ( s_axis_name, @ s_display_location )dump i_return_valuedump s_display_location#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the location of the axis.IF( s_display_location == "bottom" ) THEN s_display_location = "topbottom"ELSE s_display_location = "bottom"ENDIFi_return_value = @ xy_axis_location_set @ ( s_axis_name, @ s_display_location )dump i_return_value#---------------------------------------------------------------------# Reset the value.s_display_location = ""#---------------------------------------------------------------------# Get the location of the axis.i_return_value = @ xy_axis_location_get @ ( s_axis_name, @ s_display_location )dump i_return_valuedump s_display_location#---------------------------------------------------------------------() |
## Purpose : This file provides an example of a call to the# function xy_axis_location_set()## This file opens a new database "new.db" and# creates a window. Later it gets the display# location of the axis. Finally it changes the# display location of the axis and gets it.## 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 xy_axis_location_set()# has the following arguments:## xy_axis_location_set# ( axis_name,# display_location )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_window_name[32]REAL r_x_locationREAL r_y_locationREAL r_widthREAL r_heightINTEGER i_nwindowsSTRING s_axis_name[32]STRING s_display_location[16]INTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002# Create a new window.s_window_name = "XY_Window"r_x_location = 2.5r_y_location = 3.5r_width = 5.0r_height = 5.0i_return_value = @ xy_window_create @ ( s_window_name, @ r_x_location, @ r_y_location, @ r_width, @ r_height )dump i_return_value# Get the location of the axis.s_axis_name = "X1"i_return_value = @ xy_axis_location_get @ ( s_axis_name, @ s_display_location )dump i_return_valuedump s_display_location#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the location of the axis.IF( s_display_location == "bottom" ) THEN s_display_location = "topbottom"ELSE s_display_location = "bottom"ENDIFi_return_value = @ xy_axis_location_set @ ( s_axis_name, @ s_display_location )dump i_return_value#---------------------------------------------------------------------# Reset the value.s_display_location = ""#---------------------------------------------------------------------# Get the location of the axis.i_return_value = @ xy_axis_location_get @ ( s_axis_name, @ s_display_location )dump i_return_valuedump s_display_location#---------------------------------------------------------------------() |
## Purpose : This file provides an example of two calls# to the function xy_axis_nvalues_get()## This file opens a new database "new.db" and# creates a window. Later it gets the number# of values for the specified axis. Finally# it sets the number of values and gets it.## 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 xy_axis_nvalues_get()# has the following arguments:## xy_axis_nvalues_get# ( axis_name,# num_vals )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_window_name[32]REAL r_x_locationREAL r_y_locationREAL r_widthREAL r_heightINTEGER i_nwindowsLOGICAL l_label_flagSTRING s_axis_name[32]INTEGER i_num_valsINTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002# Create a new window.s_window_name = "XY_Window"r_x_location = 2.5r_y_location = 3.5r_width = 5.0r_height = 5.0i_return_value = @ xy_window_create @ ( s_window_name, @ r_x_location, @ r_y_location, @ r_width, @ r_height )dump i_return_value# Set the display label flags.s_axis_name = "Y1"l_label_flag = TRUEi_return_value = @ xy_axis_display_labels_set @ ( s_axis_name, @ l_label_flag )dump i_return_value# Get the number of values for the specified axis.i_return_value = @ xy_axis_nvalues_get @ ( s_axis_name, @ i_num_vals )dump i_return_valuedump i_num_vals#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the number of values for the specified axis.IF ( i_num_vals == 7 ) THEN i_num_vals = 12ELSE i_num_vals = 7ENDIFi_return_value = @ xy_axis_nvalues_set @ ( s_axis_name, @ i_num_vals )dump i_return_value#---------------------------------------------------------------------# Reset the value.i_num_vals = 0#---------------------------------------------------------------------# Get the number of values for the specified axis.i_return_value = @ xy_axis_nvalues_get @ ( s_axis_name, @ i_num_vals )dump i_return_valuedump i_num_vals#---------------------------------------------------------------------() |
## Purpose : This file provides an example of a call to the# function xy_axis_nvalues_set()## This file opens a new database "new.db" and# creates a window. Later it gets the number# of values for the specified axis. Finally# it sets the number of values and gets it.## 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 xy_axis_nvalues_set()# has the following arguments:## xy_axis_nvalues_set# ( axis_name,# num_vals )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_window_name[32]REAL r_x_locationREAL r_y_locationREAL r_widthREAL r_heightINTEGER i_nwindowsLOGICAL l_label_flagSTRING s_axis_name[32]INTEGER i_num_valsINTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002# Create a new window.s_window_name = "XY_Window"r_x_location = 2.5r_y_location = 3.5r_width = 5.0r_height = 5.0i_return_value = @ xy_window_create @ ( s_window_name, @ r_x_location, @ r_y_location, @ r_width, @ r_height )dump i_return_value# Set the display label flags.s_axis_name = "Y1"l_label_flag = TRUEi_return_value = @ xy_axis_display_labels_set @ ( s_axis_name, @ l_label_flag )dump i_return_value# Get the number of values for the specified axis.i_return_value = @ xy_axis_nvalues_get @ ( s_axis_name, @ i_num_vals )dump i_return_valuedump i_num_vals#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the number of values for the specified axis.IF ( i_num_vals == 7 ) THEN i_num_vals = 12ELSE i_num_vals = 7ENDIFi_return_value = @ xy_axis_nvalues_set @ ( s_axis_name, @ i_num_vals )dump i_return_value#---------------------------------------------------------------------# Reset the value.i_num_vals = 0#---------------------------------------------------------------------# Get the number of values for the specified axis.i_return_value = @ xy_axis_nvalues_get @ ( s_axis_name, @ i_num_vals )dump i_return_valuedump i_num_vals#---------------------------------------------------------------------() |
## Purpose : This file provides an example of two calls# to the function xy_axis_sig_digits_get()## This file opens a new database "new.db" and# creates a window. Later it gets the number of# significant digits. Finally it sets the number# of significant digits and gets it.## 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 xy_axis_sig_digits_get()# has the following arguments:## xy_axis_sig_digits_get# ( axis_name,# sig_digits )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_window_name[32]REAL r_x_locationREAL r_y_locationREAL r_widthREAL r_heightINTEGER i_nwindowsLOGICAL l_label_flagSTRING s_axis_name[32]INTEGER i_sig_digitsINTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002# Create a new window.s_window_name = "XY_Window"r_x_location = 2.5r_y_location = 3.5r_width = 5.0r_height = 5.0i_return_value = @ xy_window_create @ ( s_window_name, @ r_x_location, @ r_y_location, @ r_width, @ r_height )dump i_return_value# Set the display label flags.s_axis_name = "Y1"l_label_flag = TRUEi_return_value = @ xy_axis_display_labels_set @ ( s_axis_name, @ l_label_flag )dump i_return_value# Get the number of significant digits.i_return_value = @ xy_axis_sig_digits_get @ ( s_axis_name, @ i_sig_digits )dump i_return_valuedump i_sig_digits#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the number of significant digits.IF ( i_sig_digits == 3 ) THEN i_sig_digits = 5ELSE i_sig_digits = 3ENDIFi_return_value = @ xy_axis_sig_digits_set @ ( s_axis_name, @ i_sig_digits )dump i_return_value#---------------------------------------------------------------------# Reset the valuei_sig_digits = 0#---------------------------------------------------------------------# Get the number of significant digits.i_return_value = @ xy_axis_sig_digits_get @ ( s_axis_name, @ i_sig_digits )dump i_return_valuedump i_sig_digits#---------------------------------------------------------------------() |
## Purpose : This file provides an example of a call to the# function xy_axis_sig_digits_set()## This file opens a new database "new.db" and# creates a window. Later it gets the number of# significant digits. Finally it sets the number# of significant digits and gets it.## 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 xy_axis_sig_digits_set()# has the following arguments:## xy_axis_sig_digits_set# ( axis_name,# sig_digits )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_window_name[32]REAL r_x_locationREAL r_y_locationREAL r_widthREAL r_heightINTEGER i_nwindowsLOGICAL l_label_flagSTRING s_axis_name[32]INTEGER i_sig_digitsINTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002# Create a new window.s_window_name = "XY_Window"r_x_location = 2.5r_y_location = 3.5r_width = 5.0r_height = 5.0i_return_value = @ xy_window_create @ ( s_window_name, @ r_x_location, @ r_y_location, @ r_width, @ r_height )dump i_return_value# Set the display label flags.s_axis_name = "Y1"l_label_flag = TRUEi_return_value = @ xy_axis_display_labels_set @ ( s_axis_name, @ l_label_flag )dump i_return_value# Get the number of significant digits.i_return_value = @ xy_axis_sig_digits_get @ ( s_axis_name, @ i_sig_digits )dump i_return_valuedump i_sig_digits#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the number of significant digits.IF ( i_sig_digits == 3 ) THEN i_sig_digits = 5ELSE i_sig_digits = 3ENDIFi_return_value = @ xy_axis_sig_digits_set @ ( s_axis_name, @ i_sig_digits )dump i_return_value#---------------------------------------------------------------------# Reset the valuei_sig_digits = 0#---------------------------------------------------------------------# Get the number of significant digits.i_return_value = @ xy_axis_sig_digits_get @ ( s_axis_name, @ i_sig_digits )dump i_return_valuedump i_sig_digits#---------------------------------------------------------------------() |
## Purpose : This file provides an example of two calls# to the function xy_axis_thickness_get()## This file opens a new database "new.db" and# creates a window. Later it gets the axis# thickness. Finally it sets the axis thickness# and gets it.## 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 xy_axis_thickness_get()# has the following arguments:## xy_axis_thickness_get# ( axis_name,# thickness )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_window_name[32]REAL r_x_locationREAL r_y_locationREAL r_widthREAL r_heightINTEGER i_nwindowsSTRING s_axis_name[32]INTEGER i_thicknessINTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002# Create a new window.s_window_name = "XY_Window"r_x_location = 2.5r_y_location = 3.5r_width = 5.0r_height = 5.0i_return_value = @ xy_window_create @ ( s_window_name, @ r_x_location, @ r_y_location, @ r_width, @ r_height )dump i_return_value# Get the axis thickness.s_axis_name = "X1"i_return_value = @ xy_axis_thickness_get @ ( s_axis_name, @ i_thickness )dump i_return_valuedump i_thickness#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the axis thickness.IF ( i_thickness == 1 ) THEN i_thickness = 5ELSE i_thickness = 1ENDIFi_return_value = @ xy_axis_thickness_set @ ( s_axis_name, @ i_thickness )dump i_return_value#---------------------------------------------------------------------# Reset the value.i_thickness = 0#---------------------------------------------------------------------# Get the axis thickness.i_return_value = @ xy_axis_thickness_get @ ( s_axis_name, @ i_thickness )dump i_return_valuedump i_thickness#---------------------------------------------------------------------e() |
## Purpose : This file provides an example of a call to the# function xy_axis_thickness_set()## This file opens a new database "new.db" and# creates a window. Later it gets the axis# thickness. Finally it sets the axis thickness# and gets it.## 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 xy_axis_thickness_set()# has the following arguments:## xy_axis_thickness_set# ( axis_name,# thickness )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_window_name[32]REAL r_x_locationREAL r_y_locationREAL r_widthREAL r_heightINTEGER i_nwindowsSTRING s_axis_name[32]INTEGER i_thicknessINTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002# Create a new window.s_window_name = "XY_Window"r_x_location = 2.5r_y_location = 3.5r_width = 5.0r_height = 5.0i_return_value = @ xy_window_create @ ( s_window_name, @ r_x_location, @ r_y_location, @ r_width, @ r_height )dump i_return_value# Get the axis thickness.s_axis_name = "X1"i_return_value = @ xy_axis_thickness_get @ ( s_axis_name, @ i_thickness )dump i_return_valuedump i_thickness#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the axis thickness.IF ( i_thickness == 1 ) THEN i_thickness = 5ELSE i_thickness = 1ENDIFi_return_value = @ xy_axis_thickness_set @ ( s_axis_name, @ i_thickness )dump i_return_value#---------------------------------------------------------------------# Reset the value.i_thickness = 0#---------------------------------------------------------------------# Get the axis thickness.i_return_value = @ xy_axis_thickness_get @ ( s_axis_name, @ i_thickness )dump i_return_valuedump i_thickness#---------------------------------------------------------------------() |
## Purpose : This file provides an example of two calls# to the function xy_axis_tic_display_get()## This file opens a new database "new.db" and# creates a window. Later it gets the ticmark# display type. Finally it changes the ticmark# display and gets the type again.## 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 xy_axis_tic_display_get()# has the following arguments:## xy_axis_tic_display_get# ( axis_name,# ticmark_type )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_window_name[32]REAL r_x_locationREAL r_y_locationREAL r_widthREAL r_heightINTEGER i_nwindowsLOGICAL l_label_flagSTRING s_axis_name[32]STRING s_ticmark_type[32]INTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002# Create a new window.s_window_name = "XY_Window"r_x_location = 2.5r_y_location = 3.5r_width = 5.0r_height = 5.0i_return_value = @ xy_window_create @ ( s_window_name, @ r_x_location, @ r_y_location, @ r_width, @ r_height )dump i_return_value# Set the display label flags.s_axis_name = "X1"l_label_flag = TRUEi_return_value = @ xy_axis_display_labels_set @ ( s_axis_name, @ l_label_flag )dump i_return_value# Get the ticmark display type.i_return_value = @ xy_axis_tic_display_get @ ( s_axis_name, @ s_ticmark_type )dump i_return_valuedump s_ticmark_type#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the ticmark display type.IF ( s_ticmark_type == "primary" ) THEN s_ticmark_type = "primarysecondary"ELSE s_ticmark_type = "primary"ENDIFi_return_value = @ xy_axis_tic_display_set @ ( s_axis_name, @ s_ticmark_type )dump i_return_valuedump s_ticmark_type#---------------------------------------------------------------------# Reset the value.s_ticmark_type = ""#---------------------------------------------------------------------# Get the ticmark display type.i_return_value = @ xy_axis_tic_display_get @ ( s_axis_name, @ s_ticmark_type )dump i_return_valuedump s_ticmark_type#---------------------------------------------------------------------() |
## Purpose : This file provides an example of a call to the# function xy_axis_tic_display_set()## This file opens a new database "new.db" and# creates a window. Later it gets the ticmark# display type. Finally it changes the ticmark# display and gets the type again.## 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 xy_axis_tic_display_set()# has the following arguments:## xy_axis_tic_display_set# ( axis_name,# ticmark_type )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_window_name[32]REAL r_x_locationREAL r_y_locationREAL r_widthREAL r_heightINTEGER i_nwindowsLOGICAL l_label_flagSTRING s_axis_name[32]STRING s_ticmark_type[32]INTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002# Create a new window.s_window_name = "XY_Window"r_x_location = 2.5r_y_location = 3.5r_width = 5.0r_height = 5.0i_return_value = @ xy_window_create @ ( s_window_name, @ r_x_location, @ r_y_location, @ r_width, @ r_height )dump i_return_value# Set the display label flags.s_axis_name = "X1"l_label_flag = TRUEi_return_value = @ xy_axis_display_labels_set @ ( s_axis_name, @ l_label_flag )dump i_return_value# Get the ticmark display type.i_return_value = @ xy_axis_tic_display_get @ ( s_axis_name, @ s_ticmark_type )dump i_return_valuedump s_ticmark_type#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the ticmark display type.IF ( s_ticmark_type == "primary" ) THEN s_ticmark_type = "primarysecondary"ELSE s_ticmark_type = "primary"ENDIFi_return_value = @ xy_axis_tic_display_set @ ( s_axis_name, @ s_ticmark_type )dump i_return_valuedump s_ticmark_type#---------------------------------------------------------------------# Reset the value.s_ticmark_type = ""#---------------------------------------------------------------------# Get the ticmark display type.i_return_value = @ xy_axis_tic_display_get @ ( s_axis_name, @ s_ticmark_type )dump i_return_valuedump s_ticmark_type#---------------------------------------------------------------------() |
## Purpose : This file provides an example of two calls# to the function xy_axis_tic_get()## This file opens a new database "new.db" and# creates a window. Later it gets the ticmark# attributes. Finally it sets the ticmark# attributes and gets them again.## 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 xy_axis_tic_get()# has the following arguments:## xy_axis_tic_get# ( axis_name,# prim_sec,# location,# thickness,# color_index )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_window_name[32]REAL r_x_locationREAL r_y_locationREAL r_widthREAL r_heightINTEGER i_nwindowsLOGICAL l_label_flagSTRING s_axis_name[32]STRING s_prim_sec[32]STRING s_location[32]INTEGER i_thicknessINTEGER i_color_indexINTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002# Create a new window.s_window_name = "XY_Window"r_x_location = 2.5r_y_location = 3.5r_width = 5.0r_height = 5.0i_return_value = @ xy_window_create @ ( s_window_name, @ r_x_location, @ r_y_location, @ r_width, @ r_height )dump i_return_value# Set the display label flags.s_axis_name = "X1"l_label_flag = TRUEi_return_value = @ xy_axis_display_labels_set @ ( s_axis_name, @ l_label_flag )dump i_return_value# Get the ticmark attributes.s_prim_sec = "primary"i_return_value = @ xy_axis_tic_get @ ( s_axis_name, @ s_prim_sec, @ s_location, @ i_thickness, @ i_color_index )dump i_return_valuedump s_locationdump i_thicknessdump i_color_index#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the ticmark attributes.IF ( s_location == "outside" ) THEN s_location = "inside"ELSE s_location = "outside"ENDIFIF ( i_thickness == 5 ) THEN i_thickness = 1ELSE i_thickness = 5ENDIFIF ( i_color_index == 2 ) THEN i_color_index = 1ELSE i_color_index = 2ENDIFi_return_value = @ xy_axis_tic_set @ ( s_axis_name, @ s_prim_sec, @ s_location, @ i_thickness, @ i_color_index )dump i_return_value#---------------------------------------------------------------------# Reset the value.s_location = ""i_thickness = 0i_color_index = 0#---------------------------------------------------------------------# Get the ticmark attributes.i_return_value = @ xy_axis_tic_get @ ( s_axis_name, @ s_prim_sec, @ s_location, @ i_thickness, @ i_color_index )dump i_return_valuedump s_locationdump i_thicknessdump i_color_index#---------------------------------------------------------------------() |
## Purpose : This file provides an example of a call to the# function xy_axis_tic_numsec_get()## This file opens a new database "new.db" and# creates a window. Later it gets the number# of secondary ticmarks. Finally it sets the# number of secondary ticmarks and gets it.## 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 xy_axis_tic_numsec_get()# has the following arguments:## xy_axis_tic_numsec_get# ( axis_name,# num )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_window_name[32]REAL r_x_locationREAL r_y_locationREAL r_widthREAL r_heightINTEGER i_nwindowsSTRING s_ticmark_type[32]STRING s_axis_name[32]INTEGER i_numINTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002# Create a new window.s_window_name = "XY_Window"r_x_location = 2.5r_y_location = 3.5r_width = 5.0r_height = 5.0i_return_value = @ xy_window_create @ ( s_window_name, @ r_x_location, @ r_y_location, @ r_width, @ r_height )dump i_return_value# Set the ticmark display type.s_axis_name = "X1"s_ticmark_type = "secondary"i_return_value = @ xy_axis_tic_display_set @ ( s_axis_name, @ s_ticmark_type )dump i_return_value# Get the number of secondary ticmarks.i_return_value = @ xy_axis_tic_numsec_get @ ( s_axis_name, @ i_num )dump i_return_valuedump i_num#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the number of secondary ticmarks.IF ( i_num == 4 ) THEN i_num = 12ELSE i_num = 4ENDIFi_return_value = @ xy_axis_tic_numsec_set @ ( s_axis_name, @ i_num )dump i_return_value#---------------------------------------------------------------------# Reset the value.i_num = 0#---------------------------------------------------------------------# Get the number of secondary ticmarks.i_return_value = @ xy_axis_tic_numsec_get @ ( s_axis_name, @ i_num )dump i_return_valuedump i_num#---------------------------------------------------------------------() |
## Purpose : This file provides an example of a call to the# function xy_axis_tic_numsec_set()## This file opens a new database "new.db" and# creates a window. Later it gets the number# of secondary ticmarks. Finally it sets the# number of secondary ticmarks and gets it.## 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 xy_axis_tic_numsec_set()# has the following arguments:## xy_axis_tic_numsec_set# ( axis_name,# num )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_window_name[32]REAL r_x_locationREAL r_y_locationREAL r_widthREAL r_heightINTEGER i_nwindowsSTRING s_ticmark_type[32]STRING s_axis_name[32]INTEGER i_numINTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002# Create a new window.s_window_name = "XY_Window"r_x_location = 2.5r_y_location = 3.5r_width = 5.0r_height = 5.0i_return_value = @ xy_window_create @ ( s_window_name, @ r_x_location, @ r_y_location, @ r_width, @ r_height )dump i_return_value# Set the ticmark display type.s_axis_name = "X1"s_ticmark_type = "secondary"i_return_value = @ xy_axis_tic_display_set @ ( s_axis_name, @ s_ticmark_type )dump i_return_value# Get the number of secondary ticmarks.i_return_value = @ xy_axis_tic_numsec_get @ ( s_axis_name, @ i_num )dump i_return_valuedump i_num#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the number of secondary ticmarks.IF ( i_num == 4 ) THEN i_num = 12ELSE i_num = 4ENDIFi_return_value = @ xy_axis_tic_numsec_set @ ( s_axis_name, @ i_num )dump i_return_value#---------------------------------------------------------------------# Reset the value.i_num = 0#---------------------------------------------------------------------# Get the number of secondary ticmarks.i_return_value = @ xy_axis_tic_numsec_get @ ( s_axis_name, @ i_num )dump i_return_valuedump i_num#---------------------------------------------------------------------() |
## Purpose : This file provides an example of a call to the# function xy_axis_tic_set()## This file opens a new database "new.db" and# creates a window. Later it gets the ticmark# attributes. Finally it sets the ticmark# attributes and gets them again.## 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 xy_axis_tic_set()# has the following arguments:## xy_axis_tic_set# ( axis_name,# prim_sec,# location,# thickness,# color_index )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_window_name[32]REAL r_x_locationREAL r_y_locationREAL r_widthREAL r_heightINTEGER i_nwindowsLOGICAL l_label_flagSTRING s_axis_name[32]STRING s_prim_sec[32]STRING s_location[32]INTEGER i_thicknessINTEGER i_color_indexINTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002# Create a new window.s_window_name = "XY_Window"r_x_location = 2.5r_y_location = 3.5r_width = 5.0r_height = 5.0i_return_value = @ xy_window_create @ ( s_window_name, @ r_x_location, @ r_y_location, @ r_width, @ r_height )dump i_return_value# Set the display label flags.s_axis_name = "X1"l_label_flag = TRUEi_return_value = @ xy_axis_display_labels_set @ ( s_axis_name, @ l_label_flag )dump i_return_value# Get the ticmark attributes.s_prim_sec = "primary"i_return_value = @ xy_axis_tic_get @ ( s_axis_name, @ s_prim_sec, @ s_location, @ i_thickness, @ i_color_index )dump i_return_valuedump s_locationdump i_thicknessdump i_color_index#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the ticmark attributes.IF ( s_location == "outside" ) THEN s_location = "inside"ELSE s_location = "outside"ENDIFIF ( i_thickness == 4 ) THEN i_thickness = 1ELSE i_thickness = 4ENDIFIF ( i_color_index == 2 ) THEN i_color_index = 1ELSE i_color_index = 2ENDIFi_return_value = @ xy_axis_tic_set @ ( s_axis_name, @ s_prim_sec, @ s_location, @ i_thickness, @ i_color_index )dump i_return_value#---------------------------------------------------------------------# Reset the value.s_location = ""i_thickness = 0i_color_index = 0#---------------------------------------------------------------------# Get the ticmark attributes.i_return_value = @ xy_axis_tic_get @ ( s_axis_name, @ s_prim_sec, @ s_location, @ i_thickness, @ i_color_index )dump i_return_valuedump s_locationdump i_thicknessdump i_color_index#---------------------------------------------------------------------() |
## Purpose : This file provides an example of two calls# to the function xy_axis_title_get()## This file opens a new database "new.db" and# creates a window. Later it gets the title# attributes for a specified axis. finally it # sets the title attributes and gets it.## 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 xy_axis_title_get()# has the following arguments:## xy_axis_title_get# ( axis_name,# title,# font_size,# title_color )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_axis_name[32]STRING s_title[256]INTEGER i_font_sizeINTEGER i_title_colorINTEGER i_return_valueSTRING s_window_name[32]LOGICAL l_axis_title_flag REAL r_x_locationREAL r_y_locationREAL r_widthREAL r_height#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002# Create a xy window.s_window_name = "XY_Window"r_x_location = 2.5r_y_location = 3.5r_width = 5.0r_height = 5.0i_return_value = @ xy_window_create @ ( s_window_name, @ r_x_location, @ r_y_location, @ r_width, @ r_height )dump i_return_value# Set the display flag for axis title.s_axis_name = "X1"l_axis_title_flag = TRUE i_return_value = @ xy_axis_display_title_set @ ( s_axis_name, @ l_axis_title_flag )dump i_return_value# Get the title attributes.i_return_value = @ xy_axis_title_get @ ( s_axis_name, @ s_title, @ i_font_size, @ i_title_color )dump i_return_valuedump s_titledump i_font_sizedump i_title_color#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the title attributes.s_title = "Pressure"IF ( i_font_size == 8 ) THEN i_font_size = 12ELSE i_font_size = 8ENDIFIF ( i_title_color == 7 ) THEN i_title_color = 1ELSE i_title_color = 7ENDIFi_return_value = @ xy_axis_title_set @ ( s_axis_name, @ s_title, @ i_font_size, @ i_title_color )dump i_return_value#---------------------------------------------------------------------# Reset the value.i_font_size = 0i_title_color = 0 #---------------------------------------------------------------------# Get the title attributes.i_return_value = @ xy_axis_title_get @ ( s_axis_name, @ s_title, @ i_font_size, @ i_title_color )dump i_return_valuedump s_titledump i_font_sizedump i_title_color#---------------------------------------------------------------------() |
## Purpose : This file provides an example of a call to the# function xy_axis_title_set()## This file opens a new database "new.db" and# creates a window. Later it gets the title# attributes for a specified axis. finally it # sets the title attributes and gets it.## 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 xy_axis_title_set()# has the following arguments:## xy_axis_title_set# ( axis_name,# title,# font_size,# title_color )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_axis_name[32]STRING s_title[256]INTEGER i_font_sizeINTEGER i_title_colorINTEGER i_return_valueSTRING s_window_name[32]LOGICAL l_axis_title_flag REAL r_x_locationREAL r_y_locationREAL r_widthREAL r_height#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002# Create a xy window.s_window_name = "XY_Window"r_x_location = 2.5r_y_location = 3.5r_width = 5.0r_height = 5.0i_return_value = @ xy_window_create @ ( s_window_name, @ r_x_location, @ r_y_location, @ r_width, @ r_height )dump i_return_value# Set the display flag for axis title.s_axis_name = "X1"l_axis_title_flag = TRUE i_return_value = @ xy_axis_display_title_set @ ( s_axis_name, @ l_axis_title_flag )dump i_return_value# Get the title attributes.i_return_value = @ xy_axis_title_get @ ( s_axis_name, @ s_title, @ i_font_size, @ i_title_color )dump i_return_valuedump s_titledump i_font_sizedump i_title_color#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the title attributes.s_title = "Pressure"IF ( i_font_size == 8 ) THEN i_font_size = 12ELSE i_font_size = 8ENDIFIF ( i_title_color == 7 ) THEN i_title_color = 1ELSE i_title_color = 7ENDIFi_return_value = @ xy_axis_title_set @ ( s_axis_name, @ s_title, @ i_font_size, @ i_title_color )dump i_return_value#---------------------------------------------------------------------# Reset the value.i_font_size = 0i_title_color = 0 #---------------------------------------------------------------------# Get the title attributes.i_return_value = @ xy_axis_title_get @ ( s_axis_name, @ s_title, @ i_font_size, @ i_title_color )dump i_return_valuedump s_titledump i_font_sizedump i_title_color#---------------------------------------------------------------------() |
## Purpose : This file provides an example of two calls to# the function xy_curve_color_get()## This file opens a new database "new.db",# creates a window and a curve in it. Later it # gets the color of the curve. Finally it sets# the color and gets it again.## 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 xy_curve_color_get()# has the following arguments:## xy_curve_color_get# ( curve_name,# color_index )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_curve_name[32]STRING s_text[32]INTEGER i_color_indexINTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002#---------------------------------------------------------------------# Create a new XY windowi_return_value = @ xy_window_create @ ( "new_xy_window", 2.5, 3.5, 5., 5. )dump i_return_value#---------------------------------------------------------------------# Create XY curves_curve_name = "new_xy_curve"s_text = "new_xy_curve"i_color_index = 7i_return_value = @ xy_curve_create @ ( s_curve_name, @ s_text, @ i_color_index )dump i_return_value#---------------------------------------------------------------------# Assign data points to the curvei_return_value = @ xy_curve_data_set @ ( s_curve_name, FALSE, 5, @ [1., 3., 6., 8., 9.], @ [2., 8., 4., 9., 5.] )dump i_return_value#---------------------------------------------------------------------# Get the curve color.i_return_value = @ xy_curve_color_get @ ( s_curve_name, @ i_color_index )dump i_return_valuedump i_color_index#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the curve color.i_color_index = 2i_return_value = @ xy_curve_color_set @ ( s_curve_name, @ i_color_index )dump i_return_value#---------------------------------------------------------------------# Reset the value.i_color_index = 0#---------------------------------------------------------------------# Get the curve color.i_return_value = @ xy_curve_color_get @ ( s_curve_name, @ i_color_index )dump i_return_valuedump i_color_index#---------------------------------------------------------------------() |
## Purpose : This file provides an example of a call to the# function xy_curve_color_set()## This file opens a new database "new.db",# creates a window and a curve in it. Later it # gets the color of the curve. Finally it sets# the color and gets it again.## 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 xy_curve_color_set()# has the following arguments:## xy_curve_color_set# ( curve_name,# color_index )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_curve_name[32]STRING s_text[32]INTEGER i_color_indexINTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002#---------------------------------------------------------------------# Create a new XY windowi_return_value = @ xy_window_create @ ( "new_xy_window", 2.5, 3.5, 5., 5. )dump i_return_value#---------------------------------------------------------------------# Create XY curves_curve_name = "new_xy_curve"s_text = "new_xy_curve"i_color_index = 7i_return_value = @ xy_curve_create @ ( s_curve_name, @ s_text, @ i_color_index )dump i_return_value#---------------------------------------------------------------------# Assign data points to the curvei_return_value = @ xy_curve_data_set @ ( s_curve_name, FALSE, 5, @ [1., 3., 6., 8., 9.], @ [2., 8., 4., 9., 5.] )dump i_return_value#---------------------------------------------------------------------# Get the curve color.i_return_value = @ xy_curve_color_get @ ( s_curve_name, @ i_color_index )dump i_return_valuedump i_color_index#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the curve color.i_color_index = 2i_return_value = @ xy_curve_color_set @ ( s_curve_name, @ i_color_index )dump i_return_value#---------------------------------------------------------------------# Reset the value.i_color_index = 0#---------------------------------------------------------------------# Get the curve color.i_return_value = @ xy_curve_color_get @ ( s_curve_name, @ i_color_index )dump i_return_valuedump i_color_index#---------------------------------------------------------------------() |
## Purpose : This file provides an example of two calls to# the function xy_curve_display_symbol_get()## This file opens a new database "new.db",# creates a window and a curve in it. Later it# gets the display symbol flag for the curve.# Finally it sets the display symbol flag and# gets it again.## 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 xy_curve_display_symbol_get()# has the following arguments:## xy_curve_display_symbol_get# ( curve_name,# symbol_flag )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_curve_name[32]STRING s_text[32]INTEGER i_text_colorLOGICAL l_symbol_flagINTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002#---------------------------------------------------------------------# Create a new XY windowi_return_value = @ xy_window_create @ ( "new_xy_window", 2.5, 3.5, 5., 5. )dump i_return_value#---------------------------------------------------------------------# Create XY curves_curve_name = "new_xy_curve"s_text = "new_xy_curve"i_text_color = 7i_return_value = @ xy_curve_create @ ( s_curve_name, @ s_text, @ i_text_color )dump i_return_value#---------------------------------------------------------------------# Assign data points to the curvei_return_value = @ xy_curve_data_set @ ( s_curve_name, FALSE, 5, @ [1., 3., 6., 8., 9.], @ [2., 8., 4., 9., 5.] )dump i_return_value#---------------------------------------------------------------------# Get the display symbol flag#i_return_value = @ xy_curve_display_symbol_get @ ( s_curve_name, @ l_symbol_flag )dump i_return_valuedump l_symbol_flag#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the display symbol flagIF( l_symbol_flag == TRUE ) THEN l_symbol_flag = FALSEELSE l_symbol_flag = TRUEENDIF i_return_value = @ xy_curve_display_symbol_set @ ( s_curve_name, @ l_symbol_flag )dump i_return_value#---------------------------------------------------------------------# Get the display symbol flag#i_return_value = @ xy_curve_display_symbol_get @ ( s_curve_name, @ l_symbol_flag )dump i_return_valuedump l_symbol_flag#---------------------------------------------------------------------() |
## Purpose : This file provides an example of a call to the# function xy_curve_display_symbol_set()## This file opens a new database "new.db",# creates a window and a curve in it. Later it# gets the display symbol flag for the curve.# Finally it sets the display symbol flag and# gets it again.## 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 xy_curve_display_symbol_set()# has the following arguments:## xy_curve_display_symbol_set# ( curve_name,# symbol_flag )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_curve_name[32]STRING s_text[32]INTEGER i_text_colorLOGICAL l_symbol_flagINTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002#---------------------------------------------------------------------# Create a new XY windowi_return_value = @ xy_window_create @ ( "new_xy_window", 2.5, 3.5, 5., 5. )dump i_return_value#---------------------------------------------------------------------# Create XY curves_curve_name = "new_xy_curve"s_text = "new_xy_curve"i_text_color = 7i_return_value = @ xy_curve_create @ ( s_curve_name, @ s_text, @ i_text_color )dump i_return_value#---------------------------------------------------------------------# Assign data points to the curvei_return_value = @ xy_curve_data_set @ ( s_curve_name, FALSE, 5, @ [1., 3., 6., 8., 9.], @ [2., 8., 4., 9., 5.] )dump i_return_value#---------------------------------------------------------------------# Get the display symbol flag#i_return_value = @ xy_curve_display_symbol_get @ ( s_curve_name, @ l_symbol_flag )dump i_return_valuedump l_symbol_flag#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the display symbol flagIF( l_symbol_flag == TRUE ) THEN l_symbol_flag = FALSEELSE l_symbol_flag = TRUEENDIF i_return_value = @ xy_curve_display_symbol_set @ ( s_curve_name, @ l_symbol_flag )dump i_return_value#---------------------------------------------------------------------# Get the display symbol flag#i_return_value = @ xy_curve_display_symbol_get @ ( s_curve_name, @ l_symbol_flag )dump i_return_valuedump l_symbol_flag#---------------------------------------------------------------------() |
## Purpose : This file provides an example of two calls to# the function xy_curve_endpt_get()## This file opens a new database "new.db",# creates a window and a curve in it. Later it # gets the last data point to be displayed in the# curve. Finally it sets the last data point to # be displayed and gets it again.## 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 xy_curve_endpt_get()# has the following arguments:## xy_curve_endpt_get# ( curve_name,# end_point )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_curve_name[32]STRING s_text[32]INTEGER i_text_colorINTEGER i_end_pointINTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002#---------------------------------------------------------------------# Create a new XY windowi_return_value = @ xy_window_create @ ( "new_xy_window", 2.5, 3.5, 5., 5. )dump i_return_value#---------------------------------------------------------------------# Create XY curves_curve_name = "new_xy_curve"s_text = "new_xy_curve"i_text_color = 7i_return_value = @ xy_curve_create @ ( s_curve_name, @ s_text, @ i_text_color )dump i_return_value#---------------------------------------------------------------------# Assign data points to the curvei_return_value = @ xy_curve_data_set @ ( s_curve_name, FALSE, 5, @ [1., 3., 6., 8., 9.], @ [2., 8., 4., 9., 5.] )dump i_return_value#---------------------------------------------------------------------# Get the last data point to be displayed in the curvei_return_value = @ xy_curve_endpt_get @ ( s_curve_name, @ i_end_point )dump i_return_valuedump i_end_point#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the last data point to be displayedIF ( i_end_point == 4 ) THEN i_end_point = 5ELSE i_end_point = 4ENDIFi_return_value = @ xy_curve_endpt_set @ ( s_curve_name, @ i_end_point )dump i_return_value#---------------------------------------------------------------------# Reset the value.i_end_point = 0#---------------------------------------------------------------------# Get the last data point to be displayedi_return_value = @ xy_curve_endpt_get @ ( s_curve_name, @ i_end_point )dump i_return_valuedump i_end_point#---------------------------------------------------------------------() |
## Purpose : This file provides an example of a call to the# function xy_curve_endpt_set()## This file opens a new database "new.db",# creates a window and a curve in it. Later it # gets the last data point to be displayed in the# curve. Finally it sets the last data point to # be displayed and gets it again.## 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 xy_curve_endpt_set()# has the following arguments:## xy_curve_endpt_set# ( curve_name,# end_point )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_curve_name[32]STRING s_text[32]INTEGER i_text_colorINTEGER i_end_pointINTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002#---------------------------------------------------------------------# Create a new XY windowi_return_value = @ xy_window_create @ ( "new_xy_window", 2.5, 3.5, 5., 5. )dump i_return_value#---------------------------------------------------------------------# Create XY curves_curve_name = "new_xy_curve"s_text = "new_xy_curve"i_text_color = 7i_return_value = @ xy_curve_create @ ( s_curve_name, @ s_text, @ i_text_color )dump i_return_value#---------------------------------------------------------------------# Assign data points to the curvei_return_value = @ xy_curve_data_set @ ( s_curve_name, FALSE, 5, @ [1., 3., 6., 8., 9.], @ [2., 8., 4., 9., 5.] )dump i_return_value#---------------------------------------------------------------------# Get the last data point to be displayed in the curvei_return_value = @ xy_curve_endpt_get @ ( s_curve_name, @ i_end_point )dump i_return_valuedump i_end_point#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the last data point to be displayedIF ( i_end_point == 4 ) THEN i_end_point = 5ELSE i_end_point = 4ENDIFi_return_value = @ xy_curve_endpt_set @ ( s_curve_name, @ i_end_point )dump i_return_value#---------------------------------------------------------------------# Reset the value.i_end_point = 0#---------------------------------------------------------------------# Get the last data point to be displayedi_return_value = @ xy_curve_endpt_get @ ( s_curve_name, @ i_end_point )dump i_return_valuedump i_end_point#---------------------------------------------------------------------() |
## Purpose : This file provides an example of two calls to# the function xy_curve_freq_get()## This file opens a new database "new.db",# creates a window and a curve in it. Later it # gets the frequency of data points for the curve# Finally it sets the frequency and gets it again## 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 xy_curve_freq_get()# has the following arguments:## xy_curve_freq_get# ( curve_name,# frequency )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_curve_name[32]STRING s_text[32]INTEGER i_text_colorINTEGER i_frequencyINTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002#---------------------------------------------------------------------# Create a new XY windowi_return_value = @ xy_window_create @ ( "new_xy_window", 2.5, 3.5, 5., 5. )dump i_return_value#---------------------------------------------------------------------# Create XY curves_curve_name = "new_xy_curve"s_text = "new_xy_curve"i_text_color = 7i_return_value = @ xy_curve_create @ ( s_curve_name, @ s_text, @ i_text_color )dump i_return_value#---------------------------------------------------------------------# Assign data points to the curvei_return_value = @ xy_curve_data_set @ ( s_curve_name, FALSE, 5, @ [1., 3., 6., 8., 9.], @ [2., 8., 6., 9., 5.] )dump i_return_value#---------------------------------------------------------------------# Get the frequency of data points for the curvei_return_value = @ xy_curve_freq_get @ ( s_curve_name, @ i_frequency )dump i_return_valuedump i_frequency#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the frequency of data pointsIF ( i_frequency == 2 ) THEN i_frequency = 1ELSE i_frequency = 2ENDIFi_return_value = @ xy_curve_freq_set @ ( s_curve_name, @ i_frequency )dump i_return_value#---------------------------------------------------------------------# Reset the value.i_frequency = 0#---------------------------------------------------------------------# Get the frequency of data pointsi_return_value = @ xy_curve_freq_get @ ( s_curve_name, @ i_frequency )dump i_return_valuedump i_frequency#---------------------------------------------------------------------() |
## Purpose : This file provides an example of a call to the# function xy_curve_freq_set()## This file opens a new database "new.db",# creates a window and a curve in it. Later it # gets the frequency of data points for the curve# Finally it sets the frequency and gets it again## 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 xy_curve_freq_set()# has the following arguments:## xy_curve_freq_set# ( curve_name,# frequency )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_curve_name[32]STRING s_text[32]INTEGER i_text_colorINTEGER i_frequencyINTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002#---------------------------------------------------------------------# Create a new XY windowi_return_value = @ xy_window_create @ ( "new_xy_window", 2.5, 3.5, 5., 5. )dump i_return_value#---------------------------------------------------------------------# Create XY curves_curve_name = "new_xy_curve"s_text = "new_xy_curve"i_text_color = 7i_return_value = @ xy_curve_create @ ( s_curve_name, @ s_text, @ i_text_color )dump i_return_value#---------------------------------------------------------------------# Assign data points to the curvei_return_value = @ xy_curve_data_set @ ( s_curve_name, FALSE, 5, @ [1., 3., 6., 8., 9.], @ [2., 8., 6., 9., 5.] )dump i_return_value#---------------------------------------------------------------------# Get the frequency of data points for the curvei_return_value = @ xy_curve_freq_get @ ( s_curve_name, @ i_frequency )dump i_return_valuedump i_frequency#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the frequency of data pointsIF ( i_frequency == 2 ) THEN i_frequency = 1ELSE i_frequency = 2ENDIFi_return_value = @ xy_curve_freq_set @ ( s_curve_name, @ i_frequency )dump i_return_value#---------------------------------------------------------------------# Reset the value.i_frequency = 0#---------------------------------------------------------------------# Get the frequency of data pointsi_return_value = @ xy_curve_freq_get @ ( s_curve_name, @ i_frequency )dump i_return_valuedump i_frequency#---------------------------------------------------------------------() |
## Purpose : This file provides an example of two calls to# the function xy_curve_func_get()## This file opens a new database "new.db",# creates a window and a curve in it. Later it# gets the curve fit function. Finally it sets# the curve fit function and gets it again.## 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 xy_curve_func_get()# has the following arguments:## xy_curve_func_get# ( curve_name,# func )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_curve_name[32]STRING s_text[32]STRING s_func[30]INTEGER i_text_colorINTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002#---------------------------------------------------------------------# Create a new XY windowi_return_value = @ xy_window_create @ ( "new_xy_window", 2.5, 3.5, 5., 5. )dump i_return_value#---------------------------------------------------------------------# Create XY curves_curve_name = "new_xy_curve"s_text = "new_xy_curve"i_text_color = 7i_return_value = @ xy_curve_create @ ( s_curve_name, @ s_text, @ i_text_color )dump i_return_value#---------------------------------------------------------------------# Assign data points to the curvei_return_value = @ xy_curve_data_set @ ( s_curve_name, FALSE, 5, @ [1., 3., 6., 8., 9.], @ [2., 8., 4., 9., 5.] )dump i_return_value#---------------------------------------------------------------------# Get the curve fit function#i_return_value = @ xy_curve_func_get @ ( s_curve_name, @ s_func )dump i_return_valuedump s_func#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the curve fit functionIF( s_func == "Linear" ) THEN s_func = "Spline"ELSE s_func = "Linear"ENDIF i_return_value = @ xy_curve_func_set @ ( s_curve_name, @ s_func )dump i_return_value#---------------------------------------------------------------------# Reset the values_func = ""#---------------------------------------------------------------------# Get the curve fit function#i_return_value = @ xy_curve_func_get @ ( s_curve_name, @ s_func )dump i_return_valuedump s_func#---------------------------------------------------------------------() |
## Purpose : This file provides an example of a call to the# function xy_curve_func_set()## This file opens a new database "new.db",# creates a window and a curve in it. Later it# gets the curve fit function. Finally it sets# the curve fit function and gets it again.## 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 xy_curve_func_set()# has the following arguments:## xy_curve_func_set# ( curve_name,# func )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_curve_name[32]STRING s_text[32]STRING s_func[30]INTEGER i_text_colorINTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002#---------------------------------------------------------------------# Create a new XY windowi_return_value = @ xy_window_create @ ( "new_xy_window", 2.5, 3.5, 5., 5. )dump i_return_value#---------------------------------------------------------------------# Create XY curves_curve_name = "new_xy_curve"s_text = "new_xy_curve"i_text_color = 7i_return_value = @ xy_curve_create @ ( s_curve_name, @ s_text, @ i_text_color )dump i_return_value#---------------------------------------------------------------------# Assign data points to the curvei_return_value = @ xy_curve_data_set @ ( s_curve_name, FALSE, 5, @ [1., 3., 6., 8., 9.], @ [2., 8., 4., 9., 5.] )dump i_return_value#---------------------------------------------------------------------# Get the curve fit function#i_return_value = @ xy_curve_func_get @ ( s_curve_name, @ s_func )dump i_return_valuedump s_func#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the curve fit functionIF( s_func == "Linear" ) THEN s_func = "Spline"ELSE s_func = "Linear"ENDIF i_return_value = @ xy_curve_func_set @ ( s_curve_name, @ s_func )dump i_return_value#---------------------------------------------------------------------# Reset the values_func = ""#---------------------------------------------------------------------# Get the curve fit function#i_return_value = @ xy_curve_func_get @ ( s_curve_name, @ s_func )dump i_return_valuedump s_func#---------------------------------------------------------------------() |
## Purpose : This file provides an example of two calls to# the function xy_curve_linestyle_get()## This file opens a new database "new.db",# creates a window and a curve in it. Later it# gets the linestyle for the curve. Finally it# sets the linestyle and gets it again.## 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 xy_curve_linestyle_get()# has the following arguments:## xy_curve_linestyle_get# ( curve_name,# curve_style )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_curve_name[32]STRING s_text[32]STRING s_curve_style[32]INTEGER i_text_colorINTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002#---------------------------------------------------------------------# Create a new XY windowi_return_value = @ xy_window_create @ ( "new_xy_window", 2.5, 3.5, 5., 5. )dump i_return_value#---------------------------------------------------------------------# Create XY curves_curve_name = "new_xy_curve"s_text = "new_xy_curve"i_text_color = 7i_return_value = @ xy_curve_create @ ( s_curve_name, @ s_text, @ i_text_color )dump i_return_value#---------------------------------------------------------------------# Assign data points to the curvei_return_value = @ xy_curve_data_set @ ( s_curve_name, FALSE, 5, @ [1., 3., 6., 8., 9.], @ [2., 8., 4., 9., 5.] )dump i_return_value#---------------------------------------------------------------------# Get the linestyle for the curve#i_return_value = @ xy_curve_linestyle_get @ ( s_curve_name, @ s_curve_style )dump i_return_valuedump s_curve_style#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the linestyle for the curveIF( s_curve_style == "Solid" ) THEN s_curve_style = "Dotted"ELSE s_curve_style = "Solid"ENDIF i_return_value = @ xy_curve_linestyle_set @ ( s_curve_name, @ s_curve_style )dump i_return_value#---------------------------------------------------------------------# Reset the values_curve_style = ""#---------------------------------------------------------------------# Get the linestyle for the curve#i_return_value = @ xy_curve_linestyle_get @ ( s_curve_name, @ s_curve_style )dump i_return_valuedump s_curve_style#---------------------------------------------------------------------() |
## Purpose : This file provides an example of a call to the# function xy_curve_linestyle_set()## This file opens a new database "new.db",# creates a window and a curve in it. Later it# gets the linestyle for the curve. Finally it# sets the linestyle and gets it again.## 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 xy_curve_linestyle_set()# has the following arguments:## xy_curve_linestyle_set# ( curve_name,# curve_style )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_curve_name[32]STRING s_text[32]STRING s_curve_style[32]INTEGER i_text_colorINTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002#---------------------------------------------------------------------# Create a new XY windowi_return_value = @ xy_window_create @ ( "new_xy_window", 2.5, 3.5, 5., 5. )dump i_return_value#---------------------------------------------------------------------# Create XY curves_curve_name = "new_xy_curve"s_text = "new_xy_curve"i_text_color = 7i_return_value = @ xy_curve_create @ ( s_curve_name, @ s_text, @ i_text_color )dump i_return_value#---------------------------------------------------------------------# Assign data points to the curvei_return_value = @ xy_curve_data_set @ ( s_curve_name, FALSE, 5, @ [1., 3., 6., 8., 9.], @ [2., 8., 4., 9., 5.] )dump i_return_value#---------------------------------------------------------------------# Get the linestyle for the curve#i_return_value = @ xy_curve_linestyle_get @ ( s_curve_name, @ s_curve_style )dump i_return_valuedump s_curve_style#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the linestyle for the curveIF( s_curve_style == "Solid" ) THEN s_curve_style = "Dotted"ELSE s_curve_style = "Solid"ENDIF i_return_value = @ xy_curve_linestyle_set @ ( s_curve_name, @ s_curve_style )dump i_return_value#---------------------------------------------------------------------# Reset the values_curve_style = ""#---------------------------------------------------------------------# Get the linestyle for the curve#i_return_value = @ xy_curve_linestyle_get @ ( s_curve_name, @ s_curve_style )dump i_return_valuedump s_curve_style#---------------------------------------------------------------------() |
## Purpose : This file provides an example of two calls to# the function xy_curve_nlppc_get()## This file opens a new database "new.db",# creates a window and a curve in it. Later it# gets the number of curves per parametric cubic# for the curve. Finally it sets the number of# curves per parametric cubic and gets it again## 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 xy_curve_nlppc_get()# has the following arguments:## xy_curve_nlppc_get# ( curve_name,# value )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_curve_name[32]STRING s_text[32]STRING s_func[30]INTEGER i_text_colorINTEGER i_valueINTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002#---------------------------------------------------------------------# Create a new XY windowi_return_value = @ xy_window_create @ ( "new_xy_window", 2.5, 3.5, 5., 5. )dump i_return_value#---------------------------------------------------------------------# Create XY curves_curve_name = "new_xy_curve"s_text = "new_xy_curve"i_text_color = 7i_return_value = @ xy_curve_create @ ( s_curve_name, @ s_text, @ i_text_color )dump i_return_value#---------------------------------------------------------------------# Set the curve fit functions_func = "LeastSquares" i_return_value = @ xy_curve_func_set @ ( s_curve_name, @ s_func )dump i_return_value#---------------------------------------------------------------------# Set the number of parametric cubic curves for more prominent change# in the XY windowi_return_value = @ xy_curve_num_pc_set @ ( s_curve_name, 4 )dump i_return_value#---------------------------------------------------------------------# Assign data points to the curvei_return_value = @ xy_curve_data_set @ ( s_curve_name, FALSE, 5, @ [1., 3., 6., 8., 9.], @ [2., 8., 4., 9., 5.] )dump i_return_value#---------------------------------------------------------------------# Get the number of curves per parametric cubici_return_value = @ xy_curve_nlppc_get @ ( s_curve_name, @ i_value )dump i_return_valuedump i_value#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the number of curves per parametric cubicIF ( i_value < 3 ) THEN i_value = 100ELSE i_value = 2ENDIFi_return_value = @ xy_curve_nlppc_set @ ( s_curve_name, @ i_value )dump i_return_value#---------------------------------------------------------------------# Reset the value.i_value = 0#---------------------------------------------------------------------# Get the number of curves per parametric cubici_return_value = @ xy_curve_nlppc_get @ ( s_curve_name, @ i_value )dump i_return_valuedump i_value#---------------------------------------------------------------------() |
## Purpose : This file provides an example of a call to the# function xy_curve_nlppc_set()## This file opens a new database "new.db",# creates a window and a curve in it. Later it# gets the number of curves per parametric cubic# for the curve. Finally it sets the number of# curves per parametric cubic and gets it again## 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 xy_curve_nlppc_set()# has the following arguments:## xy_curve_nlppc_set# ( curve_name,# value )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_curve_name[32]STRING s_text[32]STRING s_func[30]INTEGER i_text_colorINTEGER i_valueINTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002#---------------------------------------------------------------------# Create a new XY windowi_return_value = @ xy_window_create @ ( "new_xy_window", 2.5, 3.5, 5., 5. )dump i_return_value#---------------------------------------------------------------------# Create XY curves_curve_name = "new_xy_curve"s_text = "new_xy_curve"i_text_color = 7i_return_value = @ xy_curve_create @ ( s_curve_name, @ s_text, @ i_text_color )dump i_return_value#---------------------------------------------------------------------# Set the curve fit functions_func = "LeastSquares" i_return_value = @ xy_curve_func_set @ ( s_curve_name, @ s_func )dump i_return_value#---------------------------------------------------------------------# Set the number of parametric cubic curves for more prominent change# in the XY windowi_return_value = @ xy_curve_num_pc_set @ ( s_curve_name, 4 )dump i_return_value#---------------------------------------------------------------------# Assign data points to the curvei_return_value = @ xy_curve_data_set @ ( s_curve_name, FALSE, 5, @ [1., 3., 6., 8., 9.], @ [2., 8., 4., 9., 5.] )dump i_return_value#---------------------------------------------------------------------# Get the number of curves per parametric cubici_return_value = @ xy_curve_nlppc_get @ ( s_curve_name, @ i_value )dump i_return_valuedump i_value#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the number of curves per parametric cubicIF ( i_value < 3 ) THEN i_value = 100ELSE i_value = 2ENDIFi_return_value = @ xy_curve_nlppc_set @ ( s_curve_name, @ i_value )dump i_return_value#---------------------------------------------------------------------# Reset the value.i_value = 0#---------------------------------------------------------------------# Get the number of curves per parametric cubici_return_value = @ xy_curve_nlppc_get @ ( s_curve_name, @ i_value )dump i_return_valuedump i_value#---------------------------------------------------------------------() |
## Purpose : This file provides an example of two calls to# the function xy_curve_num_pc_get()## This file opens a new database "new.db",# creates a window and a curve in it. Later it# gets the number of parametric cubic curves.# Finally it sets the number of parametric cubic# curves and gets it again## 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 xy_curve_num_pc_get()# has the following arguments:## xy_curve_num_pc_get# ( curve_name,# value )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_curve_name[32]STRING s_text[32]STRING s_func[30]INTEGER i_text_colorINTEGER i_valueINTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002#---------------------------------------------------------------------# Create a new XY windowi_return_value = @ xy_window_create @ ( "new_xy_window", 2.5, 3.5, 5., 5. )dump i_return_value#---------------------------------------------------------------------# Create XY curves_curve_name = "new_xy_curve"s_text = "new_xy_curve"i_text_color = 7i_return_value = @ xy_curve_create @ ( s_curve_name, @ s_text, @ i_text_color )dump i_return_value#---------------------------------------------------------------------# Set the curve fit functions_func = "LeastSquares" i_return_value = @ xy_curve_func_set @ ( s_curve_name, @ s_func )dump i_return_value#---------------------------------------------------------------------# Set the number of curves per parametric cubic for more prominent# change in the XY windowi_return_value = @ xy_curve_nlppc_set @ ( s_curve_name, 2 )dump i_return_value#---------------------------------------------------------------------# Assign data points to the curvei_return_value = @ xy_curve_data_set @ ( s_curve_name, FALSE, 5, @ [1., 3., 6., 8., 9.], @ [2., 8., 4., 9., 5.] )dump i_return_value#---------------------------------------------------------------------# Get the number of parametric cubic curvesi_return_value = @ xy_curve_num_pc_get @ ( s_curve_name, @ i_value )dump i_return_valuedump i_value#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the number of parametric cubic curvesIF ( i_value < 7 ) THEN i_value = 90ELSE i_value = 4ENDIFi_return_value = @ xy_curve_num_pc_set @ ( s_curve_name, @ i_value )dump i_return_value#---------------------------------------------------------------------# Reset the value.i_value = 0#---------------------------------------------------------------------# Get the number of parametric cubic curvesi_return_value = @ xy_curve_num_pc_get @ ( s_curve_name, @ i_value )dump i_return_valuedump i_value#---------------------------------------------------------------------() |
## Purpose : This file provides an example of a call to the# function xy_curve_num_pc_set()## This file opens a new database "new.db",# creates a window and a curve in it. Later it# gets the number of parametric cubic curves.# Finally it sets the number of parametric cubic# curves and gets it again## 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 xy_curve_num_pc_set()# has the following arguments:## xy_curve_num_pc_set# ( curve_name,# value )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_curve_name[32]STRING s_text[32]STRING s_func[30]INTEGER i_text_colorINTEGER i_valueINTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002#---------------------------------------------------------------------# Create a new XY windowi_return_value = @ xy_window_create @ ( "new_xy_window", 2.5, 3.5, 5., 5. )dump i_return_value#---------------------------------------------------------------------# Create XY curves_curve_name = "new_xy_curve"s_text = "new_xy_curve"i_text_color = 7i_return_value = @ xy_curve_create @ ( s_curve_name, @ s_text, @ i_text_color )dump i_return_value#---------------------------------------------------------------------# Set the curve fit functions_func = "LeastSquares" i_return_value = @ xy_curve_func_set @ ( s_curve_name, @ s_func )dump i_return_value#---------------------------------------------------------------------# Set the number of curves per parametric cubic for more prominent# change in the XY windowi_return_value = @ xy_curve_nlppc_set @ ( s_curve_name, 2 )dump i_return_value#---------------------------------------------------------------------# Assign data points to the curvei_return_value = @ xy_curve_data_set @ ( s_curve_name, FALSE, 5, @ [1., 3., 6., 8., 9.], @ [2., 8., 4., 9., 5.] )dump i_return_value#---------------------------------------------------------------------# Get the number of parametric cubic curvesi_return_value = @ xy_curve_num_pc_get @ ( s_curve_name, @ i_value )dump i_return_valuedump i_value#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the number of parametric cubic curvesIF ( i_value < 7 ) THEN i_value = 90ELSE i_value = 4ENDIFi_return_value = @ xy_curve_num_pc_set @ ( s_curve_name, @ i_value )dump i_return_value#---------------------------------------------------------------------# Reset the value.i_value = 0#---------------------------------------------------------------------# Get the number of parametric cubic curvesi_return_value = @ xy_curve_num_pc_get @ ( s_curve_name, @ i_value )dump i_return_valuedump i_value#---------------------------------------------------------------------() |
## Purpose : This file provides an example of a call to the# function xy_curve_rename()## This file opens a new database "new.db",# creates a window and a curve in it. Later it# gets the list of curves. Finally it renames the# curve and gets the list of curves again.## 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 xy_curve_rename()# has the following arguments:## xy_curve_rename# ( old_name,# new_name )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_old_name[32]STRING s_new_name[32]STRING s_text[32]STRING sa_curve_list[32](1)INTEGER i_text_colorINTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002#---------------------------------------------------------------------# Create a new XY windowi_return_value = @ xy_window_create @ ( "new_xy_window", 2.5, 3.5, 5., 5. )dump i_return_value#---------------------------------------------------------------------# Create XY curves_old_name = "curve_name"s_text = "xy_curve"i_text_color = 7i_return_value = @ xy_curve_create @ ( s_old_name, @ s_text, @ i_text_color )dump i_return_value#---------------------------------------------------------------------# Get the list of curves#i_return_value = @ xy_curve_list_get @ ( sa_curve_list )dump sa_curve_listdump i_return_value#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Rename the curve#s_new_name = "new_curve_name"i_return_value = @ xy_curve_rename @ ( s_old_name, @ s_new_name )dump i_return_value#---------------------------------------------------------------------# Get the list of curves#i_return_value = @ xy_curve_list_get @ ( sa_curve_list )dump sa_curve_listdump i_return_value#---------------------------------------------------------------------() |
## Purpose : This file provides an example of two calls to# the function xy_curve_startpt_get()## This file opens a new database "new.db",# creates a window and a curve in it. Later it # gets the first data point to be displayed in# the curve. Finally it sets the first data point# to be displayed and gets it again.## 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 xy_curve_startpt_get()# has the following arguments:## xy_curve_startpt_get# ( curve_name,# start_point )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_curve_name[32]STRING s_text[32]INTEGER i_text_colorINTEGER i_start_pointINTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002#---------------------------------------------------------------------# Create a new XY windowi_return_value = @ xy_window_create @ ( "new_xy_window", 2.5, 3.5, 5., 5. )dump i_return_value#---------------------------------------------------------------------# Create XY curves_curve_name = "new_xy_curve"s_text = "new_xy_curve"i_text_color = 7i_return_value = @ xy_curve_create @ ( s_curve_name, @ s_text, @ i_text_color )dump i_return_value#---------------------------------------------------------------------# Assign data points to the curvei_return_value = @ xy_curve_data_set @ ( s_curve_name, FALSE, 5, @ [1., 3., 6., 8., 9.], @ [2., 8., 4., 9., 5.] )dump i_return_value#---------------------------------------------------------------------# Get the first data point to be displayed in the curvei_return_value = @ xy_curve_startpt_get @ ( s_curve_name, @ i_start_point )dump i_return_valuedump i_start_point#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the first data point to be displayedIF ( i_start_point == 2 ) THEN i_start_point = 1ELSE i_start_point = 2ENDIFi_return_value = @ xy_curve_startpt_set @ ( s_curve_name, @ i_start_point )dump i_return_value#---------------------------------------------------------------------# Reset the value.i_start_point = 0#---------------------------------------------------------------------# Get the first data point to be displayedi_return_value = @ xy_curve_startpt_get @ ( s_curve_name, @ i_start_point )dump i_return_valuedump i_start_point#---------------------------------------------------------------------() |
## Purpose : This file provides an example of a call to the# function xy_curve_startpt_set()## This file opens a new database "new.db",# creates a window and a curve in it. Later it # gets the first data point to be displayed in# the curve. Finally it sets the first data point# to be displayed and gets it again.## 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 xy_curve_startpt_set()# has the following arguments:## xy_curve_startpt_set# ( curve_name,# start_point )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_curve_name[32]STRING s_text[32]INTEGER i_text_colorINTEGER i_start_pointINTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002#---------------------------------------------------------------------# Create a new XY windowi_return_value = @ xy_window_create @ ( "new_xy_window", 2.5, 3.5, 5., 5. )dump i_return_value#---------------------------------------------------------------------# Create XY curves_curve_name = "new_xy_curve"s_text = "new_xy_curve"i_text_color = 7i_return_value = @ xy_curve_create @ ( s_curve_name, @ s_text, @ i_text_color )dump i_return_value#---------------------------------------------------------------------# Assign data points to the curvei_return_value = @ xy_curve_data_set @ ( s_curve_name, FALSE, 5, @ [1., 3., 6., 8., 9.], @ [2., 8., 4., 9., 5.] )dump i_return_value#---------------------------------------------------------------------# Get the first data point to be displayed in the curvei_return_value = @ xy_curve_startpt_get @ ( s_curve_name, @ i_start_point )dump i_return_valuedump i_start_point#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the first data point to be displayedIF ( i_start_point == 2 ) THEN i_start_point = 1ELSE i_start_point = 2ENDIFi_return_value = @ xy_curve_startpt_set @ ( s_curve_name, @ i_start_point )dump i_return_value#---------------------------------------------------------------------# Reset the value.i_start_point = 0#---------------------------------------------------------------------# Get the first data point to be displayedi_return_value = @ xy_curve_startpt_get @ ( s_curve_name, @ i_start_point )dump i_return_valuedump i_start_point#---------------------------------------------------------------------() |
## Purpose : This file provides an example of two calls to# the function xy_curve_symbol_color_get()## This file opens a new database "new.db",# creates a window and a curve in it. Later it# gets the symbol color. Finally it sets the# symbol color and gets it again.## 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 xy_curve_symbol_color_get()# has the following arguments:## xy_curve_symbol_color_get# ( curve_name,# symbol_color )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_curve_name[32]STRING s_text[32]INTEGER i_text_colorINTEGER i_symbol_colorINTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002#---------------------------------------------------------------------# Create a new XY windowi_return_value = @ xy_window_create @ ( "new_xy_window", 2.5, 3.5, 5., 5. )dump i_return_value#---------------------------------------------------------------------# Create XY curves_curve_name = "new_xy_curve"s_text = "new_xy_curve"i_text_color = 7i_return_value = @ xy_curve_create @ ( s_curve_name, @ s_text, @ i_text_color )dump i_return_value#---------------------------------------------------------------------# Assign data points to the curvei_return_value = @ xy_curve_data_set @ ( s_curve_name, FALSE, 5, @ [1., 3., 6., 8., 9.], @ [2., 8., 4., 9., 5.] )dump i_return_value#---------------------------------------------------------------------# Set the disply symbol flag to TRUEi_return_value = @ xy_curve_display_symbol_set @ ( s_curve_name, TRUE )dump i_return_value#---------------------------------------------------------------------# Get the symbol color#i_return_value = @ xy_curve_symbol_color_get @ ( s_curve_name, @ i_symbol_color )dump i_return_valuedump i_symbol_color#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the symbol colorIF( i_symbol_color == 1 ) THEN i_symbol_color = 2ELSE i_symbol_color = 1ENDIF i_return_value = @ xy_curve_symbol_color_set @ ( s_curve_name, @ i_symbol_color )dump i_return_value#---------------------------------------------------------------------# Reset the valuei_symbol_color = 0#---------------------------------------------------------------------# Get the symbol color#i_return_value = @ xy_curve_symbol_color_get @ ( s_curve_name, @ i_symbol_color )dump i_return_valuedump i_symbol_color#---------------------------------------------------------------------() |
## Purpose : This file provides an example of a call to the# function xy_curve_symbol_color_set()## This file opens a new database "new.db",# creates a window and a curve in it. Later it# gets the symbol color. Finally it sets the# symbol color and gets it again.## 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 xy_curve_symbol_color_set()# has the following arguments:## xy_curve_symbol_color_set# ( curve_name,# symbol_color )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_curve_name[32]STRING s_text[32]INTEGER i_text_colorINTEGER i_symbol_colorINTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002#---------------------------------------------------------------------# Create a new XY windowi_return_value = @ xy_window_create @ ( "new_xy_window", 2.5, 3.5, 5., 5. )dump i_return_value#---------------------------------------------------------------------# Create XY curves_curve_name = "new_xy_curve"s_text = "new_xy_curve"i_text_color = 7i_return_value = @ xy_curve_create @ ( s_curve_name, @ s_text, @ i_text_color )dump i_return_value#---------------------------------------------------------------------# Assign data points to the curvei_return_value = @ xy_curve_data_set @ ( s_curve_name, FALSE, 5, @ [1., 3., 6., 8., 9.], @ [2., 8., 4., 9., 5.] )dump i_return_value#---------------------------------------------------------------------# Set the disply symbol flag to TRUEi_return_value = @ xy_curve_display_symbol_set @ ( s_curve_name, TRUE )dump i_return_value#---------------------------------------------------------------------# Get the symbol color#i_return_value = @ xy_curve_symbol_color_get @ ( s_curve_name, @ i_symbol_color )dump i_return_valuedump i_symbol_color#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the symbol colorIF( i_symbol_color == 1 ) THEN i_symbol_color = 2ELSE i_symbol_color = 1ENDIF i_return_value = @ xy_curve_symbol_color_set @ ( s_curve_name, @ i_symbol_color )dump i_return_value#---------------------------------------------------------------------# Reset the valuei_symbol_color = 0#---------------------------------------------------------------------# Get the symbol color#i_return_value = @ xy_curve_symbol_color_get @ ( s_curve_name, @ i_symbol_color )dump i_return_valuedump i_symbol_color#---------------------------------------------------------------------() |
## Purpose : This file provides an example of two calls to# the function xy_curve_symbol_get()## This file opens a new database "new.db",# creates a window and a curve in it. Later it# gets the symbol for the curve. Finally it sets# the symbol and gets it again.## 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 xy_curve_symbol_get()# has the following arguments:## xy_curve_symbol_get# ( curve_name,# symbol )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_curve_name[32]STRING s_text[32]STRING s_symbol[30]INTEGER i_text_colorINTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002#---------------------------------------------------------------------# Create a new XY windowi_return_value = @ xy_window_create @ ( "new_xy_window", 2.5, 3.5, 5., 5. )dump i_return_value#---------------------------------------------------------------------# Create XY curves_curve_name = "new_xy_curve"s_text = "new_xy_curve"i_text_color = 7i_return_value = @ xy_curve_create @ ( s_curve_name, @ s_text, @ i_text_color )dump i_return_value#---------------------------------------------------------------------# Assign data points to the curvei_return_value = @ xy_curve_data_set @ ( s_curve_name, FALSE, 5, @ [1., 3., 6., 8., 9.], @ [2., 8., 4., 9., 5.] )dump i_return_value#---------------------------------------------------------------------# Set the disply symbol flag to TRUEi_return_value = @ xy_curve_display_symbol_set @ ( s_curve_name, TRUE )dump i_return_value#---------------------------------------------------------------------# Get the symbol for the curve#i_return_value = @ xy_curve_symbol_get @ ( s_curve_name, @ s_symbol )dump i_return_valuedump s_symbol#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the symbol for the curveIF( s_symbol == "FillCircle" ) THEN s_symbol = "Fillsquare"ELSE s_symbol = "FillCircle"ENDIF i_return_value = @ xy_curve_symbol_set @ ( s_curve_name, @ s_symbol )dump i_return_value#---------------------------------------------------------------------# Reset the values_symbol = ""#---------------------------------------------------------------------# Get the symbol for the curve#i_return_value = @ xy_curve_symbol_get @ ( s_curve_name, @ s_symbol )dump i_return_valuedump s_symbol#---------------------------------------------------------------------() |
## Purpose : This file provides an example of a call to the# function xy_curve_symbol_set()## This file opens a new database "new.db",# creates a window and a curve in it. Later it# gets the symbol for the curve. Finally it sets# the symbol and gets it again.## 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 xy_curve_symbol_set()# has the following arguments:## xy_curve_symbol_set# ( curve_name,# symbol )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_curve_name[32]STRING s_text[32]STRING s_symbol[30]INTEGER i_text_colorINTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002#---------------------------------------------------------------------# Create a new XY windowi_return_value = @ xy_window_create @ ( "new_xy_window", 2.5, 3.5, 5., 5. )dump i_return_value#---------------------------------------------------------------------# Create XY curves_curve_name = "new_xy_curve"s_text = "new_xy_curve"i_text_color = 7i_return_value = @ xy_curve_create @ ( s_curve_name, @ s_text, @ i_text_color )dump i_return_value#---------------------------------------------------------------------# Assign data points to the curvei_return_value = @ xy_curve_data_set @ ( s_curve_name, FALSE, 5, @ [1., 3., 6., 8., 9.], @ [2., 8., 4., 9., 5.] )dump i_return_value#---------------------------------------------------------------------# Set the disply symbol flag to TRUEi_return_value = @ xy_curve_display_symbol_set @ ( s_curve_name, TRUE )dump i_return_value#---------------------------------------------------------------------# Get the symbol for the curve#i_return_value = @ xy_curve_symbol_get @ ( s_curve_name, @ s_symbol )dump i_return_valuedump s_symbol#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the symbol for the curveIF( s_symbol == "FillCircle" ) THEN s_symbol = "Fillsquare"ELSE s_symbol = "FillCircle"ENDIF i_return_value = @ xy_curve_symbol_set @ ( s_curve_name, @ s_symbol )dump i_return_value#---------------------------------------------------------------------# Reset the values_symbol = ""#---------------------------------------------------------------------# Get the symbol for the curve#i_return_value = @ xy_curve_symbol_get @ ( s_curve_name, @ s_symbol )dump i_return_valuedump s_symbol#---------------------------------------------------------------------() |
## Purpose : This file provides an example of two calls to# the function xy_curve_symbol_size_get()## This file opens a new database "new.db",# creates a window and a curve in it. Later it# gets the symbol size. Finally it sets the# symbol size and gets it again.## 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 xy_curve_symbol_size_get()# has the following arguments:## xy_curve_symbol_size_get# ( curve_name,# symbol_size )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_curve_name[32]STRING s_text[32]INTEGER i_text_colorINTEGER i_symbol_sizeINTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002#---------------------------------------------------------------------# Create a new XY windowi_return_value = @ xy_window_create @ ( "new_xy_window", 2.5, 3.5, 5., 5. )dump i_return_value#---------------------------------------------------------------------# Create XY curves_curve_name = "new_xy_curve"s_text = "new_xy_curve"i_text_color = 7i_return_value = @ xy_curve_create @ ( s_curve_name, @ s_text, @ i_text_color )dump i_return_value#---------------------------------------------------------------------# Assign data points to the curvei_return_value = @ xy_curve_data_set @ ( s_curve_name, FALSE, 5, @ [1., 3., 6., 8., 9.], @ [2., 8., 4., 9., 5.] )dump i_return_value#---------------------------------------------------------------------# Set the disply symbol flag to TRUEi_return_value = @ xy_curve_display_symbol_set @ ( s_curve_name, TRUE )dump i_return_value#---------------------------------------------------------------------# Get the symbol size#i_return_value = @ xy_curve_symbol_size_get @ ( s_curve_name, @ i_symbol_size )dump i_return_valuedump i_symbol_size#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the symbol sizeIF( i_symbol_size < 12 ) THEN i_symbol_size = 15ELSE i_symbol_size = 10ENDIF i_return_value = @ xy_curve_symbol_size_set @ ( s_curve_name, @ i_symbol_size )dump i_return_value#---------------------------------------------------------------------# Reset the valuei_symbol_size = 0#---------------------------------------------------------------------# Get the symbol size#i_return_value = @ xy_curve_symbol_size_get @ ( s_curve_name, @ i_symbol_size )dump i_return_valuedump i_symbol_size#---------------------------------------------------------------------() |
## Purpose : This file provides an example of a call to the# function xy_curve_symbol_size_set()## This file opens a new database "new.db",# creates a window and a curve in it. Later it# gets the symbol size. Finally it sets the# symbol size and gets it again.## 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 xy_curve_symbol_size_set()# has the following arguments:## xy_curve_symbol_size_set# ( curve_name,# symbol_size )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_curve_name[32]STRING s_text[32]INTEGER i_text_colorINTEGER i_symbol_sizeINTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002#---------------------------------------------------------------------# Create a new XY windowi_return_value = @ xy_window_create @ ( "new_xy_window", 2.5, 3.5, 5., 5. )dump i_return_value#---------------------------------------------------------------------# Create XY curves_curve_name = "new_xy_curve"s_text = "new_xy_curve"i_text_color = 7i_return_value = @ xy_curve_create @ ( s_curve_name, @ s_text, @ i_text_color )dump i_return_value#---------------------------------------------------------------------# Assign data points to the curvei_return_value = @ xy_curve_data_set @ ( s_curve_name, FALSE, 5, @ [1., 3., 6., 8., 9.], @ [2., 8., 4., 9., 5.] )dump i_return_value#---------------------------------------------------------------------# Set the disply symbol flag to TRUEi_return_value = @ xy_curve_display_symbol_set @ ( s_curve_name, TRUE )dump i_return_value#---------------------------------------------------------------------# Get the symbol size#i_return_value = @ xy_curve_symbol_size_get @ ( s_curve_name, @ i_symbol_size )dump i_return_valuedump i_symbol_size#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the symbol sizeIF( i_symbol_size < 12 ) THEN i_symbol_size = 15ELSE i_symbol_size = 10ENDIF i_return_value = @ xy_curve_symbol_size_set @ ( s_curve_name, @ i_symbol_size )dump i_return_value#---------------------------------------------------------------------# Reset the valuei_symbol_size = 0#---------------------------------------------------------------------# Get the symbol size#i_return_value = @ xy_curve_symbol_size_get @ ( s_curve_name, @ i_symbol_size )dump i_return_valuedump i_symbol_size#---------------------------------------------------------------------() |
## Purpose : This file provides an example of two calls to# the function xy_curve_text_get()## This file opens a new database "new.db",# creates a window and a curve in it. Later it# gets the text attributes for the curve. Finally# it sets the text attributes and gets it again.## 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 xy_curve_text_get()# has the following arguments:## xy_curve_text_get# ( curve_name,# text,# text_color )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_curve_name[32]STRING s_text[32]INTEGER i_text_colorINTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002#---------------------------------------------------------------------# Create a new XY windowi_return_value = @ xy_window_create @ ( "new_xy_window", 2.5, 3.5, 5., 5. )dump i_return_value#---------------------------------------------------------------------# Create XY curves_curve_name = "new_xy_curve"s_text = "new_xy_curve"i_text_color = 7i_return_value = @ xy_curve_create @ ( s_curve_name, @ s_text, @ i_text_color )dump i_return_value#---------------------------------------------------------------------# Assign data points to the curvei_return_value = @ xy_curve_data_set @ ( s_curve_name, FALSE, 5, @ [1., 3., 6., 8., 9.], @ [2., 8., 4., 9., 5.] )dump i_return_value#---------------------------------------------------------------------# Set the display legend flag to TRUEi_return_value = @ xy_legend_display_set @ ( TRUE )dump i_return_value#---------------------------------------------------------------------# Get the text attributes for the curve#i_return_value = @ xy_curve_text_get @ ( s_curve_name, @ s_text, @ i_text_color )dump i_return_valuedump s_textdump i_text_color#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set new text attributes for the curves_text = "old_xy_curve"i_text_color = 2 i_return_value = @ xy_curve_text_set @ ( s_curve_name, @ s_text, @ i_text_color )dump i_return_value#---------------------------------------------------------------------# Reset the valuess_text = ""i_text_color = 0#---------------------------------------------------------------------# Get the text attributes for the curve#i_return_value = @ xy_curve_text_get @ ( s_curve_name, @ s_text, @ i_text_color )dump i_return_valuedump s_textdump i_text_color#---------------------------------------------------------------------() |
## Purpose : This file provides an example of a call to the# function xy_curve_text_set()## This file opens a new database "new.db",# creates a window and a curve in it. Later it# gets the text attributes for the curve. Finally# it sets the text attributes and gets it again.## 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 xy_curve_text_set()# has the following arguments:## xy_curve_text_set# ( curve_name,# text,# text_color )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_curve_name[32]STRING s_text[32]INTEGER i_text_colorINTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002#---------------------------------------------------------------------# Create a new XY windowi_return_value = @ xy_window_create @ ( "new_xy_window", 2.5, 3.5, 5., 5. )dump i_return_value#---------------------------------------------------------------------# Create XY curves_curve_name = "new_xy_curve"s_text = "new_xy_curve"i_text_color = 7i_return_value = @ xy_curve_create @ ( s_curve_name, @ s_text, @ i_text_color )dump i_return_value#---------------------------------------------------------------------# Assign data points to the curvei_return_value = @ xy_curve_data_set @ ( s_curve_name, FALSE, 5, @ [1., 3., 6., 8., 9.], @ [2., 8., 4., 9., 5.] )dump i_return_value#---------------------------------------------------------------------# Set the display legend flag to TRUEi_return_value = @ xy_legend_display_set @ ( TRUE )dump i_return_value#---------------------------------------------------------------------# Get the text attributes for the curve#i_return_value = @ xy_curve_text_get @ ( s_curve_name, @ s_text, @ i_text_color )dump i_return_valuedump s_textdump i_text_color#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set new text attributes for the curves_text = "old_xy_curve"i_text_color = 2 i_return_value = @ xy_curve_text_set @ ( s_curve_name, @ s_text, @ i_text_color )dump i_return_value#---------------------------------------------------------------------# Reset the valuess_text = ""i_text_color = 0#---------------------------------------------------------------------# Get the text attributes for the curve#i_return_value = @ xy_curve_text_get @ ( s_curve_name, @ s_text, @ i_text_color )dump i_return_valuedump s_textdump i_text_color#---------------------------------------------------------------------() |
## Purpose : This file provides an example of two calls to# the function xy_curve_thickness_get()## This file opens a new database "new.db",# creates a window and a curve in it. Later it# gets the curve thickness. Finally it sets the# curve thickness and gets it again.## 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 xy_curve_thickness_get()# has the following arguments:## xy_curve_thickness_get# ( curve_name,# thickness )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_curve_name[32]STRING s_text[32]INTEGER i_text_colorINTEGER i_thicknessINTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002#---------------------------------------------------------------------# Create a new XY windowi_return_value = @ xy_window_create @ ( "new_xy_window", 2.5, 3.5, 5., 5. )dump i_return_value#---------------------------------------------------------------------# Create XY curves_curve_name = "new_xy_curve"s_text = "new_xy_curve"i_text_color = 7i_return_value = @ xy_curve_create @ ( s_curve_name, @ s_text, @ i_text_color )dump i_return_value#---------------------------------------------------------------------# Assign data points to the curvei_return_value = @ xy_curve_data_set @ ( s_curve_name, FALSE, 5, @ [1., 3., 6., 8., 9.], @ [2., 8., 4., 9., 5.] )dump i_return_value#---------------------------------------------------------------------# Get the curve thickness#i_return_value = @ xy_curve_thickness_get @ ( s_curve_name, @ i_thickness )dump i_return_valuedump i_thickness#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the curve thicknessIF( i_thickness < 3 ) THEN i_thickness = 5ELSE i_thickness = 1ENDIF i_return_value = @ xy_curve_thickness_set @ ( s_curve_name, @ i_thickness )dump i_return_value#---------------------------------------------------------------------# Reset the valuei_thickness = 0#---------------------------------------------------------------------# Get the curve thickness#i_return_value = @ xy_curve_thickness_get @ ( s_curve_name, @ i_thickness )dump i_return_valuedump i_thickness#---------------------------------------------------------------------() |
## Purpose : This file provides an example of a call to the# function xy_curve_thickness_set()## This file opens a new database "new.db",# creates a window and a curve in it. Later it# gets the curve thickness. Finally it sets the# curve thickness and gets it again.## 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 xy_curve_thickness_set()# has the following arguments:## xy_curve_thickness_set# ( curve_name,# thickness )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_curve_name[32]STRING s_text[32]INTEGER i_text_colorINTEGER i_thicknessINTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002#---------------------------------------------------------------------# Create a new XY windowi_return_value = @ xy_window_create @ ( "new_xy_window", 2.5, 3.5, 5., 5. )dump i_return_value#---------------------------------------------------------------------# Create XY curves_curve_name = "new_xy_curve"s_text = "new_xy_curve"i_text_color = 7i_return_value = @ xy_curve_create @ ( s_curve_name, @ s_text, @ i_text_color )dump i_return_value#---------------------------------------------------------------------# Assign data points to the curvei_return_value = @ xy_curve_data_set @ ( s_curve_name, FALSE, 5, @ [1., 3., 6., 8., 9.], @ [2., 8., 4., 9., 5.] )dump i_return_value#---------------------------------------------------------------------# Get the curve thickness#i_return_value = @ xy_curve_thickness_get @ ( s_curve_name, @ i_thickness )dump i_return_valuedump i_thickness#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the curve thicknessIF( i_thickness < 3 ) THEN i_thickness = 5ELSE i_thickness = 1ENDIF i_return_value = @ xy_curve_thickness_set @ ( s_curve_name, @ i_thickness )dump i_return_value#---------------------------------------------------------------------# Reset the valuei_thickness = 0#---------------------------------------------------------------------# Get the curve thickness#i_return_value = @ xy_curve_thickness_get @ ( s_curve_name, @ i_thickness )dump i_return_valuedump i_thickness#---------------------------------------------------------------------() |
## Purpose : This file provides an example of two calls to# the function xy_curve_xdelta_get()## This file opens a new database "new.db",# creates a window and a curve in it. Later it # gets the value of X increment to be used if# only Y data is given. Finally it sets the value# of X increment and gets it again.## 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 xy_curve_xdelta_get()# has the following arguments:## xy_curve_xdelta_get# ( curve_name,# xdelta )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_curve_name[32]STRING s_text[32]INTEGER i_text_colorREAL r_xdeltaINTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002#---------------------------------------------------------------------# Create a new XY windowi_return_value = @ xy_window_create @ ( "new_xy_window", 2.5, 3.5, 5., 5. )dump i_return_value#---------------------------------------------------------------------# Create XY curves_curve_name = "new_xy_curve"s_text = "new_xy_curve"i_text_color = 7i_return_value = @ xy_curve_create @ ( s_curve_name, @ s_text, @ i_text_color )dump i_return_value#---------------------------------------------------------------------# Assign Y data to the curvei_return_value = @ xy_curve_data_set @ ( s_curve_name, TRUE, 5, @ [0., 0., 0., 0., 0.], @ [2., 8., 4., 9., 5.] )dump i_return_value#---------------------------------------------------------------------# Get the value of X increment for the curvei_return_value = @ xy_curve_xdelta_get @ ( s_curve_name, @ r_xdelta )dump i_return_valuedump r_xdelta#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the value of X incrementIF ( r_xdelta < 2. ) THEN r_xdelta = 3.ELSE r_xdelta = 1.ENDIFi_return_value = @ xy_curve_xdelta_set @ ( s_curve_name, @ r_xdelta )dump i_return_value#---------------------------------------------------------------------# Reset the value.r_xdelta = 0.#---------------------------------------------------------------------# Get the value of X incrementi_return_value = @ xy_curve_xdelta_get @ ( s_curve_name, @ r_xdelta )dump i_return_valuedump r_xdelta#---------------------------------------------------------------------() |
## Purpose : This file provides an example of a call to the# function xy_curve_xdelta_set()## This file opens a new database "new.db",# creates a window and a curve in it. Later it # gets the value of X increment to be used if# only Y data is given. Finally it sets the value# of X increment and gets it again.## 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 xy_curve_xdelta_set()# has the following arguments:## xy_curve_xdelta_set# ( curve_name,# xdelta )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_curve_name[32]STRING s_text[32]INTEGER i_text_colorREAL r_xdeltaINTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002#---------------------------------------------------------------------# Create a new XY windowi_return_value = @ xy_window_create @ ( "new_xy_window", 2.5, 3.5, 5., 5. )dump i_return_value#---------------------------------------------------------------------# Create XY curves_curve_name = "new_xy_curve"s_text = "new_xy_curve"i_text_color = 7i_return_value = @ xy_curve_create @ ( s_curve_name, @ s_text, @ i_text_color )dump i_return_value#---------------------------------------------------------------------# Assign Y data to the curvei_return_value = @ xy_curve_data_set @ ( s_curve_name, TRUE, 5, @ [0., 0., 0., 0., 0.], @ [2., 8., 4., 9., 5.] )dump i_return_value#---------------------------------------------------------------------# Get the value of X increment for the curvei_return_value = @ xy_curve_xdelta_get @ ( s_curve_name, @ r_xdelta )dump i_return_valuedump r_xdelta#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the value of X incrementIF ( r_xdelta < 2. ) THEN r_xdelta = 3.ELSE r_xdelta = 1.ENDIFi_return_value = @ xy_curve_xdelta_set @ ( s_curve_name, @ r_xdelta )dump i_return_value#---------------------------------------------------------------------# Reset the value.r_xdelta = 0.#---------------------------------------------------------------------# Get the value of X incrementi_return_value = @ xy_curve_xdelta_get @ ( s_curve_name, @ r_xdelta )dump i_return_valuedump r_xdelta#---------------------------------------------------------------------() |
## Purpose : This file provides an example of two calls to# the function xy_curve_xinit_get()## This file opens a new database "new.db",# creates a window and a curve in it. Later it # gets the initial value of X to be used if only# Y data is given. Finally it sets the initial# value of X and gets it again.## 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 xy_curve_xinit_get()# has the following arguments:## xy_curve_xinit_get# ( curve_name,# xinit )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_curve_name[32]STRING s_text[32]INTEGER i_text_colorREAL r_xinitINTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002#---------------------------------------------------------------------# Create a new XY windowi_return_value = @ xy_window_create @ ( "new_xy_window", 2.5, 3.5, 5., 5. )dump i_return_value#---------------------------------------------------------------------# Create XY curves_curve_name = "new_xy_curve"s_text = "new_xy_curve"i_text_color = 7i_return_value = @ xy_curve_create @ ( s_curve_name, @ s_text, @ i_text_color )dump i_return_value#---------------------------------------------------------------------# Assign Y data to the curvei_return_value = @ xy_curve_data_set @ ( s_curve_name, TRUE, 5, @ [0., 0., 0., 0., 0.], @ [2., 8., 4., 9., 5.] )dump i_return_value#---------------------------------------------------------------------# Get the initial value of X for the curvei_return_value = @ xy_curve_xinit_get @ ( s_curve_name, @ r_xinit )dump i_return_valuedump r_xinit#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the initial value of XIF ( r_xinit < 5. ) THEN r_xinit = 8.ELSE r_xinit = 2.ENDIFi_return_value = @ xy_curve_xinit_set @ ( s_curve_name, @ r_xinit )dump i_return_value#---------------------------------------------------------------------# Reset the value.r_xinit = 0.#---------------------------------------------------------------------# Get the initial value of Xi_return_value = @ xy_curve_xinit_get @ ( s_curve_name, @ r_xinit )dump i_return_valuedump r_xinit#---------------------------------------------------------------------() |
## Purpose : This file provides an example of a call to the# function xy_curve_xinit_set()## This file opens a new database "new.db",# creates a window and a curve in it. Later it # gets the initial value of X to be used if only# Y data is given. Finally it sets the initial# value of X and gets it again.## 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 xy_curve_xinit_set()# has the following arguments:## xy_curve_xinit_set# ( curve_name,# xinit )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_curve_name[32]STRING s_text[32]INTEGER i_text_colorREAL r_xinitINTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002#---------------------------------------------------------------------# Create a new XY windowi_return_value = @ xy_window_create @ ( "new_xy_window", 2.5, 3.5, 5., 5. )dump i_return_value#---------------------------------------------------------------------# Create XY curves_curve_name = "new_xy_curve"s_text = "new_xy_curve"i_text_color = 7i_return_value = @ xy_curve_create @ ( s_curve_name, @ s_text, @ i_text_color )dump i_return_value#---------------------------------------------------------------------# Assign Y data to the curvei_return_value = @ xy_curve_data_set @ ( s_curve_name, TRUE, 5, @ [0., 0., 0., 0., 0.], @ [2., 8., 4., 9., 5.] )dump i_return_value#---------------------------------------------------------------------# Get the initial value of X for the curvei_return_value = @ xy_curve_xinit_get @ ( s_curve_name, @ r_xinit )dump i_return_valuedump r_xinit#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the initial value of XIF ( r_xinit < 5. ) THEN r_xinit = 8.ELSE r_xinit = 2.ENDIFi_return_value = @ xy_curve_xinit_set @ ( s_curve_name, @ r_xinit )dump i_return_value#---------------------------------------------------------------------# Reset the value.r_xinit = 0.#---------------------------------------------------------------------# Get the initial value of Xi_return_value = @ xy_curve_xinit_get @ ( s_curve_name, @ r_xinit )dump i_return_valuedump r_xinit#---------------------------------------------------------------------() |
## Purpose : This file provides an example of two calls to# the function xy_curve_xscale_get()## This file opens a new database "new.db",# creates a window and a curve in it. Later it# gets the X scale factor for the curve. Finally# it sets the X scale factor and gets it again.## 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 xy_curve_xscale_get()# has the following arguments:## xy_curve_xscale_get# ( curve_name,# xfactor )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_curve_name[32]STRING s_text[32]INTEGER i_text_colorREAL r_xfactorINTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002#---------------------------------------------------------------------# Create a new XY windowi_return_value = @ xy_window_create @ ( "new_xy_window", 2.5, 3.5, 5., 5. )dump i_return_value#---------------------------------------------------------------------# Create XY curves_curve_name = "new_xy_curve"s_text = "new_xy_curve"i_text_color = 7i_return_value = @ xy_curve_create @ ( s_curve_name, @ s_text, @ i_text_color )dump i_return_value#---------------------------------------------------------------------# Assign data points to the curvei_return_value = @ xy_curve_data_set @ ( s_curve_name, FALSE, 5, @ [1., 3., 6., 8., 9.], @ [2., 8., 4., 9., 5.] )dump i_return_value#---------------------------------------------------------------------# Get the X scale factor for the curve#i_return_value = @ xy_curve_xscale_get @ ( s_curve_name, @ r_xfactor )dump i_return_valuedump r_xfactor#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the X scale factorIF( r_xfactor == 1. ) THEN r_xfactor = 3.ELSE r_xfactor = 1.ENDIF i_return_value = @ xy_curve_xscale_set @ ( s_curve_name, @ r_xfactor )dump i_return_value#---------------------------------------------------------------------# Reset the valuer_xfactor = 0.#---------------------------------------------------------------------# Get the X scale factor#i_return_value = @ xy_curve_xscale_get @ ( s_curve_name, @ r_xfactor )dump i_return_valuedump r_xfactor#---------------------------------------------------------------------() |
## Purpose : This file provides an example of a call to the# function xy_curve_xscale_set()## This file opens a new database "new.db",# creates a window and a curve in it. Later it# gets the X scale factor for the curve. Finally# it sets the X scale factor and gets it again.## 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 xy_curve_xscale_set()# has the following arguments:## xy_curve_xscale_set# ( curve_name,# xfactor )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_curve_name[32]STRING s_text[32]INTEGER i_text_colorREAL r_xfactorINTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002#---------------------------------------------------------------------# Create a new XY windowi_return_value = @ xy_window_create @ ( "new_xy_window", 2.5, 3.5, 5., 5. )dump i_return_value#---------------------------------------------------------------------# Create XY curves_curve_name = "new_xy_curve"s_text = "new_xy_curve"i_text_color = 7i_return_value = @ xy_curve_create @ ( s_curve_name, @ s_text, @ i_text_color )dump i_return_value#---------------------------------------------------------------------# Assign data points to the curvei_return_value = @ xy_curve_data_set @ ( s_curve_name, FALSE, 5, @ [1., 3., 6., 8., 9.], @ [2., 8., 4., 9., 5.] )dump i_return_value#---------------------------------------------------------------------# Get the X scale factor for the curve#i_return_value = @ xy_curve_xscale_get @ ( s_curve_name, @ r_xfactor )dump i_return_valuedump r_xfactor#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the X scale factorIF( r_xfactor == 1. ) THEN r_xfactor = 3.ELSE r_xfactor = 1.ENDIF i_return_value = @ xy_curve_xscale_set @ ( s_curve_name, @ r_xfactor )dump i_return_value#---------------------------------------------------------------------# Reset the valuer_xfactor = 0.#---------------------------------------------------------------------# Get the X scale factor#i_return_value = @ xy_curve_xscale_get @ ( s_curve_name, @ r_xfactor )dump i_return_valuedump r_xfactor#---------------------------------------------------------------------() |
## Purpose : This file provides an example of two calls to# the function xy_curve_yscale_get()## This file opens a new database "new.db",# creates a window and a curve in it. Later it# gets the Y scale factor for the curve. Finally# it sets the Y scale factor and gets it again.## 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 xy_curve_yscale_get()# has the following arguments:## xy_curve_yscale_get# ( curve_name,# yfactor )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_curve_name[32]STRING s_text[32]INTEGER i_text_colorREAL r_yfactorINTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002#---------------------------------------------------------------------# Create a new XY windowi_return_value = @ xy_window_create @ ( "new_xy_window", 2.5, 3.5, 5., 5. )dump i_return_value#---------------------------------------------------------------------# Create XY curves_curve_name = "new_xy_curve"s_text = "new_xy_curve"i_text_color = 7i_return_value = @ xy_curve_create @ ( s_curve_name, @ s_text, @ i_text_color )dump i_return_value#---------------------------------------------------------------------# Assign data points to the curvei_return_value = @ xy_curve_data_set @ ( s_curve_name, FALSE, 5, @ [1., 3., 6., 8., 9.], @ [2., 8., 4., 9., 5.] )dump i_return_value#---------------------------------------------------------------------# Get the Y scale factor for the curve#i_return_value = @ xy_curve_yscale_get @ ( s_curve_name, @ r_yfactor )dump i_return_valuedump r_yfactor#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the Y scale factorIF( r_yfactor == 1. ) THEN r_yfactor = 3.ELSE r_yfactor = 1.ENDIF i_return_value = @ xy_curve_yscale_set @ ( s_curve_name, @ r_yfactor )dump i_return_value#---------------------------------------------------------------------# Reset the valuer_yfactor = 0.#---------------------------------------------------------------------# Get the Y scale factor#i_return_value = @ xy_curve_yscale_get @ ( s_curve_name, @ r_yfactor )dump i_return_valuedump r_yfactor#---------------------------------------------------------------------() |
## Purpose : This file provides an example of a call to the# function xy_curve_yscale_set()## This file opens a new database "new.db",# creates a window and a curve in it. Later it# gets the Y scale factor for the curve. Finally# it sets the Y scale factor and gets it again.## 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 xy_curve_yscale_set()# has the following arguments:## xy_curve_yscale_set# ( curve_name,# yfactor )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_curve_name[32]STRING s_text[32]INTEGER i_text_colorREAL r_yfactorINTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002#---------------------------------------------------------------------# Create a new XY windowi_return_value = @ xy_window_create @ ( "new_xy_window", 2.5, 3.5, 5., 5. )dump i_return_value#---------------------------------------------------------------------# Create XY curves_curve_name = "new_xy_curve"s_text = "new_xy_curve"i_text_color = 7i_return_value = @ xy_curve_create @ ( s_curve_name, @ s_text, @ i_text_color )dump i_return_value#---------------------------------------------------------------------# Assign data points to the curvei_return_value = @ xy_curve_data_set @ ( s_curve_name, FALSE, 5, @ [1., 3., 6., 8., 9.], @ [2., 8., 4., 9., 5.] )dump i_return_value#---------------------------------------------------------------------# Get the Y scale factor for the curve#i_return_value = @ xy_curve_yscale_get @ ( s_curve_name, @ r_yfactor )dump i_return_valuedump r_yfactor#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the Y scale factorIF( r_yfactor == 1. ) THEN r_yfactor = 3.ELSE r_yfactor = 1.ENDIF i_return_value = @ xy_curve_yscale_set @ ( s_curve_name, @ r_yfactor )dump i_return_value#---------------------------------------------------------------------# Reset the valuer_yfactor = 0.#---------------------------------------------------------------------# Get the Y scale factor#i_return_value = @ xy_curve_yscale_get @ ( s_curve_name, @ r_yfactor )dump i_return_valuedump r_yfactor#---------------------------------------------------------------------() |
## Purpose : This file provides an example of two calls to# the function xy_legend_attrib_get()## This file opens a new database "new.db",# creates a window and a curve in it. Later it# gets the legend attributes for the curve.# Finally it sets the legend attributes and gets# them again.## 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 xy_legend_attrib_get()# has the following arguments:## xy_legend_attrib_get# ( location,# width,# height,# bgcolor )##---------------------------------------------------------------------# Variable DeclarationsREAL ra_location(2)REAL r_widthREAL r_heightINTEGER i_bgcolorINTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002#---------------------------------------------------------------------# Create a new XY windowi_return_value = @ xy_window_create @ ( "new_xy_window", 2.5, 3.5, 5., 5. )dump i_return_value#---------------------------------------------------------------------# Create a XY curvei_return_value = @ xy_curve_create @ ( "new_curve" , "new_curve" , 7 )dump i_return_value#---------------------------------------------------------------------# Assign data points to the curvei_return_value = @ xy_curve_data_set @ ( "new_curve", FALSE, 5, @ [1., 3., 6., 8., 9.], @ [2., 8., 4., 9., 5.] )dump i_return_value#---------------------------------------------------------------------# Set the display legend flag to TRUEi_return_value = @ xy_legend_display_set @ ( TRUE )dump i_return_value#---------------------------------------------------------------------# Get the legend attributes#i_return_value = @ xy_legend_attrib_get @ ( ra_location, @ r_width, @ r_height, @ i_bgcolor )dump i_return_valuedump ra_locationdump r_widthdump r_heightdump i_bgcolor#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set new legend attributesra_location = [0., 10.]r_width = 10.r_height = 10.IF( i_bgcolor == 0 ) THEN i_bgcolor = 1ELSE i_bgcolor = 0ENDIF i_return_value = @ xy_legend_attrib_set @ ( ra_location, @ r_width, @ r_height, @ i_bgcolor )dump i_return_value#---------------------------------------------------------------------# Reset the values.ra_location = [0., 0.]r_width = 0.r_height = 0.#---------------------------------------------------------------------# Get the legend attributes#i_return_value = @ xy_legend_attrib_get @ ( ra_location, @ r_width, @ r_height, @ i_bgcolor )dump i_return_valuedump ra_locationdump r_widthdump r_heightdump i_bgcolor#---------------------------------------------------------------------() |
## Purpose : This file provides an example of a call to the# function xy_legend_attrib_set()## This file opens a new database "new.db",# creates a window and a curve in it. Later it# gets the legend attributes for the curve.# Finally it sets the legend attributes and gets# them again.## 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 xy_legend_attrib_set()# has the following arguments:## xy_legend_attrib_set# ( location,# width,# height,# bgcolor )##---------------------------------------------------------------------# Variable DeclarationsREAL ra_location(2)REAL r_widthREAL r_heightINTEGER i_bgcolorINTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002#---------------------------------------------------------------------# Create a new XY windowi_return_value = @ xy_window_create @ ( "new_xy_window", 2.5, 3.5, 5., 5. )dump i_return_value#---------------------------------------------------------------------# Create a XY curvei_return_value = @ xy_curve_create @ ( "new_curve" , "new_curve" , 7 )dump i_return_value#---------------------------------------------------------------------# Assign data points to the curvei_return_value = @ xy_curve_data_set @ ( "new_curve", FALSE, 5, @ [1., 3., 6., 8., 9.], @ [2., 8., 4., 9., 5.] )dump i_return_value#---------------------------------------------------------------------# Set the display legend flag to TRUEi_return_value = @ xy_legend_display_set @ ( TRUE )dump i_return_value#---------------------------------------------------------------------# Get the legend attributes#i_return_value = @ xy_legend_attrib_get @ ( ra_location, @ r_width, @ r_height, @ i_bgcolor )dump i_return_valuedump ra_locationdump r_widthdump r_heightdump i_bgcolor#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set new legend attributesra_location = [0., 10.]r_width = 10.r_height = 10.IF( i_bgcolor == 0 ) THEN i_bgcolor = 1ELSE i_bgcolor = 0ENDIF i_return_value = @ xy_legend_attrib_set @ ( ra_location, @ r_width, @ r_height, @ i_bgcolor )dump i_return_value#---------------------------------------------------------------------# Reset the values.ra_location = [0., 0.]r_width = 0.r_height = 0.#---------------------------------------------------------------------# Get the legend attributes#i_return_value = @ xy_legend_attrib_get @ ( ra_location, @ r_width, @ r_height, @ i_bgcolor )dump i_return_valuedump ra_locationdump r_widthdump r_heightdump i_bgcolor#---------------------------------------------------------------------() |
## Purpose : This file provides an example of two calls to# the function xy_legend_border_get()## This file opens a new database "new.db",# creates a window and a curve in it. Later it# gets the legend border attributes for the# curve. Finally it sets the legend border# attributes and gets them again.## 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 xy_legend_border_get()# has the following arguments:## xy_legend_border_get# ( style,# border_color )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_style[30]INTEGER i_border_colorINTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002#---------------------------------------------------------------------# Create a new XY windowi_return_value = @ xy_window_create @ ( "new_xy_window", 2.5, 3.5, 5., 5. )dump i_return_value#---------------------------------------------------------------------# Create a XY curvei_return_value = @ xy_curve_create @ ( "new_curve" , "new_curve" , 7 )dump i_return_value#---------------------------------------------------------------------# Assign data points to the curvei_return_value = @ xy_curve_data_set @ ( "new_curve", FALSE, 5, @ [1., 3., 6., 8., 9.], @ [2., 8., 4., 9., 5.] )dump i_return_value#---------------------------------------------------------------------# Set the display border flag to TRUEi_return_value = @ xy_legend_display_border_set @ ( TRUE )dump i_return_value#---------------------------------------------------------------------# Set the display legend flag to TRUEi_return_value = @ xy_legend_display_set @ ( TRUE )dump i_return_value#---------------------------------------------------------------------# Get the legend border attributes#i_return_value = @ xy_legend_border_get @ ( s_style, @ i_border_color )dump i_return_valuedump s_styledump i_border_color#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set new legend border attributesIF( s_style == "Solid" ) THEN s_style = "Dotted"ELSE s_style = "Solid"ENDIFIF( i_border_color == 7 ) THEN i_border_color = 6ELSE i_border_color = 7ENDIFi_return_value = @ xy_legend_border_set @ ( s_style, @ i_border_color )dump i_return_value#---------------------------------------------------------------------# Reset the values.s_style = ""#---------------------------------------------------------------------# Get the legend border attributes#i_return_value = @ xy_legend_border_get @ ( s_style, @ i_border_color )dump i_return_valuedump s_styledump i_border_color#---------------------------------------------------------------------xy_legend_border_set | () |
## Purpose : This file provides an example of a call to the# function xy_legend_border_set()## This file opens a new database "new.db",# creates a window and a curve in it. Later it# gets the legend border attributes for the# curve. Finally it sets the legend border# attributes and gets them again.## 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 xy_legend_border_set()# has the following arguments:## xy_legend_border_set# ( style,# border_color )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_style[30]INTEGER i_border_colorINTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002#---------------------------------------------------------------------# Create a new XY windowi_return_value = @ xy_window_create @ ( "new_xy_window", 2.5, 3.5, 5., 5. )dump i_return_value#---------------------------------------------------------------------# Create a XY curvei_return_value = @ xy_curve_create @ ( "new_curve" , "new_curve" , 7 )dump i_return_value#---------------------------------------------------------------------# Assign data points to the curvei_return_value = @ xy_curve_data_set @ ( "new_curve", FALSE, 5, @ [1., 3., 6., 8., 9.], @ [2., 8., 4., 9., 5.] )dump i_return_value#---------------------------------------------------------------------# Set the display border flag to TRUEi_return_value = @ xy_legend_display_border_set @ ( TRUE )dump i_return_value#---------------------------------------------------------------------# Set the display legend flag to TRUEi_return_value = @ xy_legend_display_set @ ( TRUE )dump i_return_value#---------------------------------------------------------------------# Get the legend border attributes#i_return_value = @ xy_legend_border_get @ ( s_style, @ i_border_color )dump i_return_valuedump s_styledump i_border_color#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set new legend border attributesIF( s_style == "Solid" ) THEN s_style = "Dotted"ELSE s_style = "Solid"ENDIFIF( i_border_color == 7 ) THEN i_border_color = 6ELSE i_border_color = 7ENDIFi_return_value = @ xy_legend_border_set @ ( s_style, @ i_border_color )dump i_return_value#---------------------------------------------------------------------# Reset the values.s_style = ""#---------------------------------------------------------------------# Get the legend border attributes#i_return_value = @ xy_legend_border_get @ ( s_style, @ i_border_color )dump i_return_valuedump s_styledump i_border_color#---------------------------------------------------------------------() |
# Purpose : This file provides an example of two calls to# the function xy_legend_display_border_get()## This file opens a new database "new.db" and# creates a window and a curve in it. Later it# gets the display border flag. Finally it sets# the display border flag and gets it again.## 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 xy_legend_display_border_get()# has the following arguments:## xy_legend_display_border_get# ( border_flag )##---------------------------------------------------------------------# Variable DeclarationsLOGICAL l_border_flagINTEGER i_return_value##---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002#---------------------------------------------------------------------# Create a new XY windowi_return_value = @ xy_window_create @ ( "new_xy_window", 2.5, 3.5, 5., 5. )dump i_return_value#---------------------------------------------------------------------# Create XY curvei_return_value = @ xy_curve_create @ ( "new_curve" , "new_curve" , 7 )dump i_return_value#---------------------------------------------------------------------# Assign data points to the curvei_return_value = @ xy_curve_data_set @ ( "new_curve", FALSE, 5, @ [1., 3., 6., 8., 9.], @ [2., 8., 4., 9., 5.] )dump i_return_value#---------------------------------------------------------------------# Set the display legend flagi_return_value = @ xy_legend_display_set @ ( TRUE )dump i_return_value#---------------------------------------------------------------------# Get the display border flag#i_return_value = @ xy_legend_display_border_get @ ( l_border_flag )dump i_return_valuedump l_border_flag#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the display border flagIF( l_border_flag == TRUE ) THEN l_border_flag = FALSEELSE l_border_flag = TRUEENDIF i_return_value = @ xy_legend_display_border_set @ ( l_border_flag )dump i_return_value#---------------------------------------------------------------------# Get the display border flag#i_return_value = @ xy_legend_display_border_get @ ( l_border_flag )dump i_return_valuedump l_border_flag#---------------------------------------------------------------------() |
## Purpose : This file provides an example of a call to the# function xy_legend_display_border_set()## This file opens a new database "new.db" and# creates a window and a curve in it. Later it# gets the display border flag. Finally it sets# the display border flag and gets it again.## 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 xy_legend_display_border_set()# has the following arguments:## xy_legend_display_border_set# ( border_flag )##---------------------------------------------------------------------# Variable DeclarationsLOGICAL l_border_flagINTEGER i_return_value##---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002#---------------------------------------------------------------------# Create a new XY windowi_return_value = @ xy_window_create @ ( "new_xy_window", 2.5, 3.5, 5., 5. )dump i_return_value#---------------------------------------------------------------------# Create XY curvei_return_value = @ xy_curve_create @ ( "new_curve" , "new_curve" , 7 )dump i_return_value#---------------------------------------------------------------------# Assign data points to the curvei_return_value = @ xy_curve_data_set @ ( "new_curve", FALSE, 5, @ [1., 3., 6., 8., 9.], @ [2., 8., 4., 9., 5.] )dump i_return_value#---------------------------------------------------------------------# Set the display legend flagi_return_value = @ xy_legend_display_set @ ( TRUE )dump i_return_value#---------------------------------------------------------------------# Get the display border flag#i_return_value = @ xy_legend_display_border_get @ ( l_border_flag )dump i_return_valuedump l_border_flag#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the display border flagIF( l_border_flag == TRUE ) THEN l_border_flag = FALSEELSE l_border_flag = TRUEENDIF i_return_value = @ xy_legend_display_border_set @ ( l_border_flag )dump i_return_value#---------------------------------------------------------------------# Get the display border flag#i_return_value = @ xy_legend_display_border_get @ ( l_border_flag )dump i_return_valuedump l_border_flag#---------------------------------------------------------------------() |
## Purpose : This file provides an example of two calls to# the function xy_legend_display_get()## This file opens a new database "new.db",# creates a window and a curve in it. Later it# gets the display legend flag. Finally it sets# the display legend flag and gets it again.## 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 xy_legend_display_get()# has the following arguments:## xy_legend_display_get# ( legend_flag )##---------------------------------------------------------------------# Variable DeclarationsLOGICAL l_legend_flagINTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002#---------------------------------------------------------------------# Create a new XY windowi_return_value = @ xy_window_create @ ( "new_xy_window", 2.5, 3.5, 5., 5. )dump i_return_value#---------------------------------------------------------------------# Create a XY curvei_return_value = @ xy_curve_create @ ( "new_curve" , "new_curve" , 7 )dump i_return_value#---------------------------------------------------------------------# Assign data points to the curvei_return_value = @ xy_curve_data_set @ ( "new_curve", FALSE, 5, @ [1., 3., 6., 8., 9.], @ [2., 8., 4., 9., 5.] )dump i_return_value#---------------------------------------------------------------------# Get the display legend flag#i_return_value = @ xy_legend_display_get @ ( l_legend_flag )dump i_return_valuedump l_legend_flag#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the display legend flagIF( l_legend_flag == TRUE ) THEN l_legend_flag = FALSEELSE l_legend_flag = TRUEENDIF i_return_value = @ xy_legend_display_set @ ( l_legend_flag )dump i_return_value#---------------------------------------------------------------------# Get the display legend flag#i_return_value = @ xy_legend_display_get @ ( l_legend_flag )dump i_return_valuedump l_legend_flag#---------------------------------------------------------------------() |
## Purpose : This file provides an example of a call to the# function xy_legend_display_set()## This file opens a new database "new.db",# creates a window and a curve in it. Later it# gets the display legend flag. Finally it sets# the display legend flag and gets it again.## 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 xy_legend_display_set()# has the following arguments:## xy_legend_display_set# ( legend_flag )##---------------------------------------------------------------------# Variable DeclarationsLOGICAL l_legend_flagINTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002#---------------------------------------------------------------------# Create a new XY windowi_return_value = @ xy_window_create @ ( "new_xy_window", 2.5, 3.5, 5., 5. )dump i_return_value#---------------------------------------------------------------------# Create a XY curvei_return_value = @ xy_curve_create @ ( "new_curve" , "new_curve" , 7 )dump i_return_value#---------------------------------------------------------------------# Assign data points to the curvei_return_value = @ xy_curve_data_set @ ( "new_curve", FALSE, 5, @ [1., 3., 6., 8., 9.], @ [2., 8., 4., 9., 5.] )dump i_return_value#---------------------------------------------------------------------# Get the display legend flag#i_return_value = @ xy_legend_display_get @ ( l_legend_flag )dump i_return_valuedump l_legend_flag#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the display legend flagIF( l_legend_flag == TRUE ) THEN l_legend_flag = FALSEELSE l_legend_flag = TRUEENDIF i_return_value = @ xy_legend_display_set @ ( l_legend_flag )dump i_return_value#---------------------------------------------------------------------# Get the display legend flag#i_return_value = @ xy_legend_display_get @ ( l_legend_flag )dump i_return_valuedump l_legend_flag#---------------------------------------------------------------------() |
## Purpose : This file provides an example of two calls to# the function xy_legend_display_title_get()## This file opens a new database "new.db" and# creates a window and a curve in it. Later it# gets the display title flag. Finally it sets# the display title flag and gets it again.## 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 xy_legend_display_title_get()# has the following arguments:## xy_legend_display_title_get# ( title_flag )##---------------------------------------------------------------------# Variable DeclarationsLOGICAL l_title_flagINTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002#---------------------------------------------------------------------# Create a new XY windowi_return_value = @ xy_window_create @ ( "new_xy_window", 2.5, 3.5, 5., 5. )dump i_return_value#---------------------------------------------------------------------# Create XY curvei_return_value = @ xy_curve_create @ ( "new_curve" , "new_curve" , 7 )dump i_return_value#---------------------------------------------------------------------# Assign data points to the curvei_return_value = @ xy_curve_data_set @ ( "new_curve", FALSE, 5, @ [1., 3., 6., 8., 9.], @ [2., 8., 4., 9., 5.] )dump i_return_value#---------------------------------------------------------------------# Set the display legend flagi_return_value = @ xy_legend_display_set @ ( TRUE )dump i_return_value#---------------------------------------------------------------------# Get the display title flag#i_return_value = @ xy_legend_display_title_get @ ( l_title_flag )dump i_return_valuedump l_title_flag#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the display title flagIF( l_title_flag == TRUE ) THEN l_title_flag = FALSEELSE l_title_flag = TRUEENDIF i_return_value = @ xy_legend_display_title_set @ ( l_title_flag )dump i_return_value#---------------------------------------------------------------------# Get the display title flag#i_return_value = @ xy_legend_display_title_get @ ( l_title_flag )dump i_return_valuedump l_title_flag#---------------------------------------------------------------------() |
## Purpose : This file provides an example of a call to the# function xy_legend_display_title_set()## This file opens a new database "new.db" and# creates a window and a curve in it. Later it# gets the display title flag. Finally it sets# the display title flag and gets it again.## 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 xy_legend_display_title_set()# has the following arguments:## xy_legend_display_title_set# ( title_flag )##---------------------------------------------------------------------# Variable DeclarationsLOGICAL l_title_flagINTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002#---------------------------------------------------------------------# Create a new XY windowi_return_value = @ xy_window_create @ ( "new_xy_window", 2.5, 3.5, 5., 5. )dump i_return_value#---------------------------------------------------------------------# Create XY curvei_return_value = @ xy_curve_create @ ( "new_curve" , "new_curve" , 7 )dump i_return_value#---------------------------------------------------------------------# Assign data points to the curvei_return_value = @ xy_curve_data_set @ ( "new_curve", FALSE, 5, @ [1., 3., 6., 8., 9.], @ [2., 8., 4., 9., 5.] )dump i_return_value#---------------------------------------------------------------------# Set the display legend flagi_return_value = @ xy_legend_display_set @ ( TRUE )dump i_return_value#---------------------------------------------------------------------# Get the display title flag#i_return_value = @ xy_legend_display_title_get @ ( l_title_flag )dump i_return_valuedump l_title_flag#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set the display title flagIF( l_title_flag == TRUE ) THEN l_title_flag = FALSEELSE l_title_flag = TRUEENDIF i_return_value = @ xy_legend_display_title_set @ ( l_title_flag )dump i_return_value#---------------------------------------------------------------------# Get the display title flag#i_return_value = @ xy_legend_display_title_get @ ( l_title_flag )dump i_return_valuedump l_title_flag#---------------------------------------------------------------------() |
## Purpose : This file provides an example of two calls to# the function xy_legend_text_get()## This file opens a new database "new.db",# creates a window and a curve in it. Later it# gets the legend text attributes for the curve.# Finally it sets the legend text attributes and# gets them again.## 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 xy_legend_text_get()# has the following arguments:## xy_legend_text_get# ( text,# text_color )##---------------------------------------------------------------------# Variable DeclarationsSTRING s_text[256]INTEGER i_text_colorINTEGER i_return_value#---------------------------------------------------------------------# Open a new database "new.db"uil_file_new.go("","new.db")$? YES 36000002#---------------------------------------------------------------------# Create a new XY windowi_return_value = @ xy_window_create @ ( "new_xy_window", 2.5, 3.5, 5., 5. )dump i_return_value#---------------------------------------------------------------------# Create a XY curvei_return_value = @ xy_curve_create @ ( "new_curve" , "new_curve" , 7 )dump i_return_value#---------------------------------------------------------------------# Assign data points to the curvei_return_value = @ xy_curve_data_set @ ( "new_curve", FALSE, 5, @ [1., 3., 6., 8., 9.], @ [2., 8., 4., 9., 5.] )dump i_return_value#---------------------------------------------------------------------# Set the display title flag to TRUEi_return_value = @ xy_legend_display_title_set @ ( TRUE )dump i_return_value#---------------------------------------------------------------------# Set the display legend flag to TRUEi_return_value = @ xy_legend_display_set @ ( TRUE )dump i_return_value#---------------------------------------------------------------------# Get the legend text attributes#i_return_value = @ xy_legend_text_get @ ( s_text, @ i_text_color )dump i_return_valuedump s_textdump i_text_color#---------------------------------------------------------------------# Session file paused. Press "Resume" to continue..sf_pause()#---------------------------------------------------------------------# Set new legend text attributess_text = "Sample"IF( i_text_color == 7 ) THEN i_text_color = 6ELSE i_text_color = 7ENDIFi_return_value = @ xy_legend_text_set @ ( s_text, @ i_text_color )dump i_return_value#---------------------------------------------------------------------# Get the legend text attributes#i_return_value = @ xy_legend_text_get @ ( s_text, @ i_text_color )dump i_return_valuedump s_textdump i_text_color#---------------------------------------------------------------------() |
## Purpose : This file provides an example of a call to the# function xy_legend_text_set()## This file opens a new database "new.db",# creates a window and a curve in it. Later it# gets the legend text attributes for the curve.# Finally it sets the legend text attributes and# gets them again.## This file can be run by starting a session of