# *MACHINING_DATA.DEF
###############################################################################
# Definitions File for Machining Data 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
##########################################################################
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 diam_in
{
   DB_ID   DIAM_IN
   DB_ID_TYPE    d
   DIALOG_NAME   "Diam"
   RSET_NAME     "Diam - Inch"
}

DB_ALIAS diam_mm
{
   DB_ID   DIAM_MM
   DB_ID_TYPE    d
   DIALOG_NAME   "Diam"
   RSET_NAME     "Diam - mm"
}

DB_ALIAS length_in
{
   DB_ID   LENGTH_IN
   DB_ID_TYPE    d
   DIALOG_NAME   "Length"
   RSET_NAME     "Length - Inch"
}

DB_ALIAS length_mm
{
   DB_ID   LENGTH_MM
   DB_ID_TYPE    d
   DIALOG_NAME   "Length"
   RSET_NAME     "Length - mm"
}

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 stepover_in
{
   DB_ID   STEPOVER_IN
   DB_ID_TYPE    d
   DIALOG_NAME   "Stepover"
   RSET_NAME     "Stepover - Inch"
}

DB_ALIAS stepover_mm
{
   DB_ID   STEPOVER_MM
   DB_ID_TYPE    d
   DIALOG_NAME   "Stepover"
   RSET_NAME     "stepover - 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"
}

DB_ALIAS   approach_pct
{
   DB_ID   APPROACH_PCT
   DB_ID_TYPE    i
   DIALOG_NAME   "Approach Percent"
   RSET_NAME     "Approach Percent"
}

DB_ALIAS   engage_pct
{
   DB_ID   ENGAGE_PCT
   DB_ID_TYPE    i
   DIALOG_NAME   "Engage Percent"
   RSET_NAME     "Engage Percent"
}

DB_ALIAS   frstcut_pct
{
   DB_ID   FRSTCUT_PCT
   DB_ID_TYPE    i
   DIALOG_NAME   "First Cut Percent"
   RSET_NAME     "First Cut Percent"
}

DB_ALIAS   stepover_pct
{
   DB_ID   STEPOVER_PCT
   DB_ID_TYPE    i
   DIALOG_NAME   "Stepover Percent"
   RSET_NAME     "Stepover Percent"
}

DB_ALIAS   retract_pct
{
   DB_ID   RETRACT_PCT
   DB_ID_TYPE    i
   DIALOG_NAME   "Retract Percent"
   RSET_NAME     "Retract Percent"
}

DB_ALIAS   return_pct
{
   DB_ID   RETURN_PCT
   DB_ID_TYPE    i
   DIALOG_NAME   "Return Percent"
   RSET_NAME     "Return Percent"
}

DB_ALIAS   depart_pct
{
   DB_ID   DEPART_PCT
   DB_ID_TYPE    i
   DIALOG_NAME   "Depart Percent"
   RSET_NAME     "Depart Percent"
}

LIBREF   optype

CLASS TECH_SETTINGS
{
   TYPE   TECH_SETTINGS
   QUERY  "[1] == [1]"
   DIALOG  libref optype ptmtl tlmtl depthinch speedinch feedinch
   RSET    libref optype ptmtl tlmtl diam_in diam_mm length_in length_mm depthinch depthmm stepover_in stepover_mm speedinch speedmm feedinch feedmm approach_pct engage_pct frstcut_pct stepover_pct retract_pct return_pct depart_pct
   UI_NAME "CAM Machining Data Library"
}
