db_delete_client_label Obsolete | The call no longer exists. This call was removed from the documentation. |
Description: | ||
Delete client data from the database. | ||
Input: | ||
INTEGER | label | User defined label of the data to be deleted. |
Output: | ||
INTEGER | <Return Value> | Integer indicating success or failure of the routine. If the routine failed, this value contains an indication of the reason. |
Error Conditions: | ||
None. | ||
Remarks: | ||
None. | ||
Examples: | ||
None. |
db_reset_client_info Obsolete | The call is no longer used. This call was removed from the documentation. |
Description: | ||
This function will set the max_client_entity_id and max_client_entity_label entities in the control_info database relation to the highest value label and ID values currently used plus one. | ||
Input: | ||
INTEGER | label | User defined label of the data to be deleted. |
Output: | ||
INTEGER | <Return Value> | Integer indicating success or failure of the routine. If the routine failed, this value contains an indication if the reason. |
Error Conditions: | ||
None. | ||
Notes: | ||
The db_create_client_data PCL function makes use of the max_client_entity_id and max_client_entity_label entities to store maximum entity ID and label values in use plus one. | ||
Remarks: | ||
None. |
#
# Purpose : This file gives an example of a call to the
# function db_reset_client_info()
#
# A table is provided in the database which
# is reserved for the use by user.
# The db_create_client_data() function writes the
# information to this table.The function
# db_reset_client_info() resets the max_client_
# entity_id and max_client_entity_label columns.
#
# To run this session file,first start
# a session of MSC.Patran,open a database or
# start a new database,then run this session
# file by “File”,”Session”,”Play” pulldown
# menus on the menu bar.
#
# The db_reset_client_info has the following arguments:
# db_reset_client_info
# ( )
#
# -------------------------------------------------------------------
# Variable Declaration
#
INTEGER i_client_type,i_client_label
INTEGER i_client_labels(1)
INTEGER i_id, i_client_type, @
i_num_logicals, i_num_integers, i_num_reals, @
i_num_strings, i_max_string_length
LOGICAL l_logical_data(1)= [TRUE]
INTEGER i_integer_data(1)=[1]
REAL r_real_data(1)=[202.54]
STRING s_string_data[25](1)=[“Geometric”]
INTEGER i_return_value
# -------------------------------------------------------------------
# Create a client defined entity in the database.
#
# i_client_label=101
# i_client_type=1001
# i_num_logicals=1
# i_num_integers=1
# i_num_reals=1
# i_num_strings=1
# i_max_string_length= 25
#
i_client_label = 101
i_client_type = 1001
i_num_logicals = 1
i_num_integers = 1
i_num_reals = 1
i_num_strings = 1
i_max_string_length = 25
i_return_value = @
db_create_client_data @
( i_id, @
i_client_label, @
i_client_type, @
i_num_logicals, @
i_num_integers, @
i_num_reals, @
i_num_strings, @
i_max_string_length, @
l_logical_data, @
i_integer_data, @
r_real_data, @
s_string_data )
# check for the return value.
dump i_return_value
dump i_id
i_return_value = @
db_reset_client_info @
( )
dump i_return_value
# -------------------------------------------------------------------