# *FEEDS_SPEEDS.DEF
###############################################################################
# Definitions File for Speeds/Feeds Database implemented in an ASCII text file
###############################################################################
#   REVISIONS:
#
#   00  23Mar99  Murthy R Mandaleeka         Initial Version
#   01  26JUL99  Subhash                     Changed order of attributes
#                                            presented
#   02  29Oct99  Murthy R Mandaleeka         Removed options
#   03  17Feb2004 rlm                        Add aliases for all fields
##########################################################################
DB_PREFIX  "db("
DB_SUFFIX  ")"
ESS_PREFIX "ess("
ESS_SUFFIX ")"

################################################################################
#    The list of DB_ALIAS
#
#    DB_ALIAS  <alias>
#    {
#         DB_ID       < identifier of parameter in a UG part file >
#         DB_ID_TYPE  < Type of the identifier >
#              d _ double
#              i _ integer
#              s _ string
#    }
#
###############################################################################


DB_ALIAS libref
{
   DB_ID   LIBRF
   DB_ID_TYPE   s
   DIALOG_NAME  "Speeds/Feeds Key"
}

DB_ALIAS optype
{
   DB_ID   OPERTYPE
   DB_ID_TYPE    s
   DIALOG_NAME   "Operation type "
   RSET_NAME     "Cut Method"
}


DB_ALIAS ptmtl
{
   DB_ID   PARTMAT
   DB_ID_TYPE    s
   DIALOG_NAME   "Material Name"
   RSET_NAME     "Part Material"   
}

DB_ALIAS tlmtl
{
   DB_ID   TOOLMAT
   DB_ID_TYPE    s
   DIALOG_NAME   "Tool Material"
   RSET_NAME     "Tool Material"
}

DB_ALIAS depthinch
{
   DB_ID   DPT_CUT_IN
   DB_ID_TYPE    d
   DIALOG_NAME   "Depth"
   RSET_NAME     "Depth - Inch"
}

DB_ALIAS depthmm
{
   DB_ID   DPT_CUT_MM
   DB_ID_TYPE    d
   DIALOG_NAME   "Depth"
   RSET_NAME     "Depth - mm"
}

DB_ALIAS speedinch
{
   DB_ID   SURF_SPEED_FPM
   DB_ID_TYPE    d
   DIALOG_NAME   "Speed"
   RSET_NAME     "Speed - Inch"
}

DB_ALIAS speedmm
{
   DB_ID   SURF_SPEED_MPM
   DB_ID_TYPE    d
   DIALOG_NAME   "Speed"
   RSET_NAME     "Speed - mm"
}

DB_ALIAS   feedinch
{
   DB_ID   FEED_IPT
   DB_ID_TYPE    d
   DIALOG_NAME   "feed"
   RSET_NAME     "Feed - Inch"
}

DB_ALIAS   feedmm
{
   DB_ID   FEED_MMPT
   DB_ID_TYPE    d
   DIALOG_NAME   "feed"
   RSET_NAME     "Feed - mm"
}

LIBREF   optype

CLASS FEEDS_SPEEDS
{
   TYPE   FEEDS_SPEEDS
   QUERY  "[1] == [%]"
   DIALOG  libref optype ptmtl tlmtl depthinch speedinch feedinch
   RSET    libref optype ptmtl tlmtl depthinch depthmm speedinch speedmm feedinch feedmm
   UI_NAME "CAM Speeds and Feeds Library"
}
