if SMT_THICKNESS==ceil(SMT_THICKNESS)
cmat=ptc_material_name+" "+"T="+itos(smt_thickness)+".0"
endif
if SMT_THICKNESS==0.001
cmat=ptc_material_name+""
endif
/* The following relations make the bend allowance parameters */
/* of part to be dependent on the assigned material, if the value */
/* of the parameter SMT_UPDATE_BEND_ALLOW_INFO is YES. */
/* If you remove or change these relations, the check box */
/* 'Use assigned material to define the value of the bend */
/* allowance parameters' in the Bend Allowance category */
/* in sheet metal Preferences dialog box might stop working. */
if ( SMT_UPDATE_BEND_ALLOW_INFO == YES && exists("PTC_MATERIAL_NAME") )
if ( PTC_MATERIAL_NAME != "UNASSIGNED" )
if ( string_length( material_param("BEND_TABLE") ) > 0 )
error在表达式左侧有无效数据类型组合
SMT_PART_BEND_TABLE_NAME = material_param("BEND_TABLE")
endif
if ( material_param("INITIAL_BEND_Y_FACTOR") > 0.0 )
error在表达式左侧有无效数据类型组合
SMT_PART_BEND_ALLOW_FACTOR_TYPE = "Y FACTOR"
SMT_PART_BEND_ALLOWANCE_FACTOR = material_param("INITIAL_BEND_Y_FACTOR")
endif
endif
endif
SMT_DFLT_BEND_RADIUS = SMT_THICKNESS
SMT_DFLT_CRNR_REL_WIDTH = SMT_THICKNESS
SMT_DFLT_CRNR_REL_DEPTH = SMT_THICKNESS
SMT_DFLT_BEND_REL_WIDTH = SMT_THICKNESS
SMT_DFLT_BEND_REL_DEPTH = SMT_THICKNESS * 2.0
SMT_GAP = SMT_THICKNESS * 0.5
SMT_DFLT_EDGE_TREA_WIDTH = -SMT_GAP
SMT_DFLT_MITER_CUT_WIDTH = SMT_GAP
SMT_DFLT_MITER_CUT_OFFSET = SMT_THICKNESS * 1.1