() |
## Purpose : This file provides an example of 2 calls to the# function pref_geometry_get_v1()## In this example a new database is opened and# default geometric preference values in the # database is got. Then it is changed and got# 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 pref_geometry_get_v1() has the following arguments:# pref_geometry_get_v1# ( hpat_parametrization,# nurbs_acceleration,# geometry_convention )##---------------------------------------------------------------------# Variable DeclarationsLOGICAL l_hpat_parametrizationLOGICAL l_nurbs_accelerationLOGICAL l_geometry_conventionINTEGER i_return_value#---------------------------------------------------------------------# Create a new database and set the preferencesuil_file_new.go("", "./new.db")$? YES 36000002# Get the default geometric preference values in the database.i_return_value = @ pref_geometry_get_v1 @ ( l_hpat_parametrization, @ l_nurbs_acceleration, @ l_geometry_convention )dump i_return_value# The geometric preference values aredump l_hpat_parametrizationdump l_nurbs_accelerationdump l_geometry_convention#---------------------------------------------------------------------# Set a different geometric preference values.#IF (l_hpat_parametrization == TRUE) THEN l_hpat_parametrization = FALSEELSE l_hpat_parametrization = TRUEEND IFIF (l_nurbs_acceleration == TRUE) THEN l_nurbs_acceleration = FALSEELSE l_nurbs_acceleration = TRUEEND IFIF (l_geometry_convention == TRUE) THEN l_geometry_convention = FALSEELSE l_geometry_convention = TRUEEND IFi_return_value = @ pref_geometry_set_v1 @ ( l_hpat_parametrization, @ l_nurbs_acceleration, @ l_geometry_convention )dump i_return_value#---------------------------------------------------------------------# Get the geometric preference values in the database again.i_return_value = @ pref_geometry_get_v1 @ ( l_hpat_parametrization, @ l_nurbs_acceleration, @ l_geometry_convention )dump i_return_value# The geometric preference values aredump l_hpat_parametrizationdump l_nurbs_accelerationdump l_geometry_convention#---------------------------------------------------------------------() |
## Purpose : This file provides an example of a call to the# function pref_geometry_set_v1()## In this example a new database is opened and# default geometric preference values in the# database is got. Then it is changed and got# 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 pref_geometry_set_v1() has the following arguments:# pref_geometry_set_v1# ( hpat_parametrization,# nurbs_acceleration,# geometry_convention )##---------------------------------------------------------------------# Variable DeclarationsLOGICAL l_hpat_parametrizationLOGICAL l_nurbs_accelerationLOGICAL l_geometry_conventionINTEGER i_return_value#---------------------------------------------------------------------# Create a new database and set the preferencesuil_file_new.go("", "./new.db")$? YES 36000002# Get the default geometric preference values in the database.i_return_value = @ pref_geometry_get_v1 @ ( l_hpat_parametrization, @ l_nurbs_acceleration, @ l_geometry_convention )dump i_return_value# The geometric preference values aredump l_hpat_parametrizationdump l_nurbs_accelerationdump l_geometry_convention#---------------------------------------------------------------------# Set a different geometric preference values.#IF (l_hpat_parametrization == TRUE) THEN l_hpat_parametrization = FALSEELSE l_hpat_parametrization = TRUEEND IFIF (l_nurbs_acceleration == TRUE) THEN l_nurbs_acceleration = FALSEELSE l_nurbs_acceleration = TRUEEND IFIF (l_geometry_convention == TRUE) THEN l_geometry_convention = FALSEELSE l_geometry_convention = TRUEEND IFi_return_value = @ pref_geometry_set_v1 @ ( l_hpat_parametrization, @ l_nurbs_acceleration, @ l_geometry_convention )dump i_return_value#---------------------------------------------------------------------# Get the geometric preference values in the database again.i_return_value = @ pref_geometry_get_v1 @ ( l_hpat_parametrization, @ l_nurbs_acceleration, @ l_geometry_convention )dump i_return_value# The geometric preference values aredump l_hpat_parametrizationdump l_nurbs_accelerationdump l_geometry_convention#---------------------------------------------------------------------