

START HEADER:
Strategy file name: /usr/weber/util/strategy.d/operations/metric/capscrews/M12_Capscrew
Instruction 1:   
Instruction 2:   
END HEADER:

START ENTITY REFERENCES:
END ENTITY REFERENCES:

START TOOL REFERENCES:
2.78 mm Center Drill:/usr/weber/util/tooldata/tools_mm/centerdrills/N3cdrill:
12.800mm Twist Drill:/usr/weber/util/tooldata/tools_mm/twistdrills/twistdr12.8mm:
19.5mm Counterbore:/usr/weber/util/tooldata/tools_mm/counterbores/cbore_19.5mm:
25.4mm Counter Sink:/usr/weber/util/tooldata/tools_mm/countersinks/csink_25.4mm:
END TOOL REFERENCES:
  
START VARIABLE REFERENCES:
END VARIABLE REFERENCES:

START OBJECT: O1
     
START RECORD:
Record descr: FEATURE DATA: M12 Capscrew
Vstr=StringConstant("M12 Capscrew")
V1=FreeParameter("Counterbore depth",14)
V2=FreeParameter("Counterbore diameter",19.5)
V3=FreeParameter("Counterbore chamfer",0.75)
V4=FreeParameter("Finish depth",40)
V5=FreeParameter("Thru diameter",12.8)
V6=FreeParameter("Second chamfer",0)
Mdef=HoleFeatureDef(WsCapScrew,V1,V3,V2,V4,V6,V5,WsThruHole)
Stat=NameEntity(Mdef,"Xxx.Ent.Mdef1")
Stat=SetMachDefDescr(Mdef,Vstr)
END RECORD:
     
START RECORD:
Record descr: FEATURE TOOL INFO: M12 Capscrew
Stat=NullReference("Xxx.Ent.G2")
Vo1=StringConstant("New func: 1"&CHR$(10))
Odata=CreateUserData(WsOperation,"M12 Capscrew",Vo1)
Vo2=StringConstant("Group name:")
Group1=CreateGroup("Xxx.Ent.G2",WsMachDefGroup)
Stat=PutUserString(Odata,Vo2,"Xxx.Ent.G2")
Tool=FindUserData("2.78 mm Center Drill",WsToolData)
H1=CdrillDefinition("Xxx.Ent.Mdef1",Tool)
Stat=AddToGroup("Xxx.Ent.G2",H1)
Tool=FindUserData("12.800mm Twist Drill",WsToolData)
H1=DrillDefinition("Xxx.Ent.Mdef1",Tool)
Stat=AddToGroup("Xxx.Ent.G2",H1)
Tool=FindUserData("19.5mm Counterbore",WsToolData)
H1=CboreDefinition("Xxx.Ent.Mdef1",Tool)
Stat=AddToGroup("Xxx.Ent.G2",H1)
Tool=FindUserData("25.4mm Counter Sink",WsToolData)
Vd1=FreeParameter("Diameter to countersink",GetMachDefValue("Xxx.Ent.Mdef1",WsCboreDiameter))
H1=CsinkDefinition("Xxx.Ent.Mdef1",Tool,Vd1)
Stat=AddToGroup("Xxx.Ent.G2",H1)
END RECORD:
     
END OBJECT: O1
     

