

START HEADER:
Strategy file name: /usr/weber/database/strategies/StockPocket
Instruction 1:   
Instruction 2:   
END HEADER:

START STRATEGY SETTINGS:
END STRATEGY SETTINGS:

START ENTITY REFERENCES:
END ENTITY REFERENCES:

START TOOL REFERENCES:
END TOOL REFERENCES:
  
START VARIABLE REFERENCES:
END VARIABLE REFERENCES:

START OBJECT: O1
Object paths off:
     
START RECORD:
Record color: 7
Record linetype: 1
Record descr: bullmills :bullmill_0.50
V2=StringConstant("bullmill_0.50")
V3=StringConstant("bullmills")
V4=StringConstant("/usr/weber/util/tooldata/tools_in/")
V5=StringConstant(FileNameString(V4,V3,V2))
Tool_ent=ReadUserData(WsToolData,V2,V5)
Stat=NameEntity(Tool_ent,ToolIdName(Tool_ent))
Stat=PutToolFileName(Tool_ent,V5)
END RECORD:
     
START RECORD:
Record color: 11
Record linetype: 1
Record descr: POCKET: Stock section 
V11=FreeParameter("Z Value",-0.15)
V1=FreeParameter("Finish allowance",0.02)
V2=FreeParameter("Width cut",0.25)
V5=FreeParameter("Minimum pickups",0)
Tool=FindUserData(".500 Bullmill",WsToolData)
Mdef1=ToolMillingDef(Tool,WsClimb)
Stat=AssociateTool(Mdef1,Tool)
Stat=MillDefCutInfo(Mdef1,1,V2,V1)
Stat=MillDefZInfo(Mdef1,1,0,0,0)
G1=WPKSectionContours("Solid.Ent.Edge5339",V11)
G2=CreateBoundarys(G1)
Paths=PocketMillBoundary(G2,Mdef1,WsCircleMoves,1,0,V5)
Stat=AutoNameGroup(Paths,"Xxx.Ent.G18")
Stat=UnAssocMachDef(Paths,Mdef1)
Stat=DeleteGroup(G1,WsTrue)
Stat=DeleteGroup(G2,WsTrue)
V8=FreeParameter("Dia comp dir (+1 left  -1 right)",1)
Stat=SetDCompDirection(Paths,V8)
Stat=DeleteEntityList(0,Mdef1)
END RECORD:
     
START RECORD:
Record color: 11
Record linetype: 1
Record descr: POCKET: Stock section 
V11=FreeParameter("Z Value",-0.25)
V1=FreeParameter("Finish allowance",0.02)
V2=FreeParameter("Width cut",0.25)
V5=FreeParameter("Minimum pickups",0)
Tool=FindUserData(".500 Bullmill",WsToolData)
Mdef1=ToolMillingDef(Tool,WsClimb)
Stat=AssociateTool(Mdef1,Tool)
Stat=MillDefCutInfo(Mdef1,1,V2,V1)
Stat=MillDefZInfo(Mdef1,1,0,0,0)
G1=WPKSectionContours("Solid.Ent.Edge5339",V11)
G2=CreateBoundarys(G1)
Paths=PocketMillBoundary(G2,Mdef1,WsCircleMoves,1,0,V5)
Stat=AutoNameGroup(Paths,"Xxx.Ent.G42")
Stat=UnAssocMachDef(Paths,Mdef1)
Stat=DeleteGroup(G1,WsTrue)
Stat=DeleteGroup(G2,WsTrue)
V8=FreeParameter("Dia comp dir (+1 left  -1 right)",1)
Stat=SetDCompDirection(Paths,V8)
Stat=DeleteEntityList(0,Mdef1)
END RECORD:
     
START RECORD:
Record color: 11
Record linetype: 1
Record descr: POCKET: Stock section 
V11=FreeParameter("Z Value",-0.375)
V1=FreeParameter("Finish allowance",0.02)
V2=FreeParameter("Width cut",0.25)
V5=FreeParameter("Minimum pickups",0)
Tool=FindUserData(".500 Bullmill",WsToolData)
Mdef1=ToolMillingDef(Tool,WsClimb)
Stat=AssociateTool(Mdef1,Tool)
Stat=MillDefCutInfo(Mdef1,1,V2,V1)
Stat=MillDefZInfo(Mdef1,1,0,0,0)
G1=WPKSectionContours("Solid.Ent.Edge5339",V11)
G2=CreateBoundarys(G1)
Paths=PocketMillBoundary(G2,Mdef1,WsCircleMoves,1,0,V5)
Stat=AutoNameGroup(Paths,"Xxx.Ent.G67")
Stat=UnAssocMachDef(Paths,Mdef1)
Stat=DeleteGroup(G1,WsTrue)
Stat=DeleteGroup(G2,WsTrue)
V8=FreeParameter("Dia comp dir (+1 left  -1 right)",1)
Stat=SetDCompDirection(Paths,V8)
Stat=DeleteEntityList(0,Mdef1)
END RECORD:
     
START RECORD:
Record color: 11
Record linetype: 1
Record descr: POCKET: Stock section 
V11=FreeParameter("Z Value",-0.5)
V1=FreeParameter("Finish allowance",0.02)
V2=FreeParameter("Width cut",0.25)
V5=FreeParameter("Minimum pickups",0)
Tool=FindUserData(".500 Bullmill",WsToolData)
Mdef1=ToolMillingDef(Tool,WsClimb)
Stat=AssociateTool(Mdef1,Tool)
Stat=MillDefCutInfo(Mdef1,1,V2,V1)
Stat=MillDefZInfo(Mdef1,1,0,0,0)
G1=WPKSectionContours("Solid.Ent.Edge5339",V11)
G2=CreateBoundarys(G1)
Paths=PocketMillBoundary(G2,Mdef1,WsCircleMoves,1,0,V5)
Stat=AutoNameGroup(Paths,"Xxx.Ent.G87")
Stat=UnAssocMachDef(Paths,Mdef1)
Stat=DeleteGroup(G1,WsTrue)
Stat=DeleteGroup(G2,WsTrue)
V8=FreeParameter("Dia comp dir (+1 left  -1 right)",1)
Stat=SetDCompDirection(Paths,V8)
Stat=DeleteEntityList(0,Mdef1)
END RECORD:
     
START RECORD:
Record color: 11
Record linetype: 1
Record descr: POCKET: Stock section 
V11=FreeParameter("Z Value",-0.625)
V1=FreeParameter("Finish allowance",0.02)
V2=FreeParameter("Width cut",0.25)
V5=FreeParameter("Minimum pickups",0)
Tool=FindUserData(".500 Bullmill",WsToolData)
Mdef1=ToolMillingDef(Tool,WsClimb)
Stat=AssociateTool(Mdef1,Tool)
Stat=MillDefCutInfo(Mdef1,1,V2,V1)
Stat=MillDefZInfo(Mdef1,1,0,0,0)
G1=WPKSectionContours("Solid.Ent.Edge5339",V11)
G2=CreateBoundarys(G1)
Paths=PocketMillBoundary(G2,Mdef1,WsCircleMoves,1,0,V5)
Stat=AutoNameGroup(Paths,"Xxx.Ent.G107")
Stat=UnAssocMachDef(Paths,Mdef1)
Stat=DeleteGroup(G1,WsTrue)
Stat=DeleteGroup(G2,WsTrue)
V8=FreeParameter("Dia comp dir (+1 left  -1 right)",1)
Stat=SetDCompDirection(Paths,V8)
Stat=DeleteEntityList(0,Mdef1)
END RECORD:
     
START RECORD:
Record color: 11
Record linetype: 1
Record descr: POCKET: Stock section 
V11=FreeParameter("Z Value",-0.75)
V1=FreeParameter("Finish allowance",0.02)
V2=FreeParameter("Width cut",0.25)
V5=FreeParameter("Minimum pickups",0)
Tool=FindUserData(".500 Bullmill",WsToolData)
Mdef1=ToolMillingDef(Tool,WsClimb)
Stat=AssociateTool(Mdef1,Tool)
Stat=MillDefCutInfo(Mdef1,1,V2,V1)
Stat=MillDefZInfo(Mdef1,1,0,0,0)
G1=WPKSectionContours("Solid.Ent.Edge5339",V11)
G2=CreateBoundarys(G1)
Paths=PocketMillBoundary(G2,Mdef1,WsCircleMoves,1,0,V5)
Stat=AutoNameGroup(Paths,"Xxx.Ent.G132")
Stat=UnAssocMachDef(Paths,Mdef1)
Stat=DeleteGroup(G1,WsTrue)
Stat=DeleteGroup(G2,WsTrue)
V8=FreeParameter("Dia comp dir (+1 left  -1 right)",1)
Stat=SetDCompDirection(Paths,V8)
Stat=DeleteEntityList(0,Mdef1)
END RECORD:
     
START RECORD:
Record color: 11
Record linetype: 1
Record descr: POCKET: Stock section 
V11=FreeParameter("Z Value",-0.875)
V1=FreeParameter("Finish allowance",0.02)
V2=FreeParameter("Width cut",0.25)
V5=FreeParameter("Minimum pickups",0)
Tool=FindUserData(".500 Bullmill",WsToolData)
Mdef1=ToolMillingDef(Tool,WsClimb)
Stat=AssociateTool(Mdef1,Tool)
Stat=MillDefCutInfo(Mdef1,1,V2,V1)
Stat=MillDefZInfo(Mdef1,1,0,0,0)
G1=WPKSectionContours("Solid.Ent.Edge5339",V11)
G2=CreateBoundarys(G1)
Paths=PocketMillBoundary(G2,Mdef1,WsCircleMoves,1,0,V5)
Stat=AutoNameGroup(Paths,"Xxx.Ent.G152")
Stat=UnAssocMachDef(Paths,Mdef1)
Stat=DeleteGroup(G1,WsTrue)
Stat=DeleteGroup(G2,WsTrue)
V8=FreeParameter("Dia comp dir (+1 left  -1 right)",1)
Stat=SetDCompDirection(Paths,V8)
Stat=DeleteEntityList(0,Mdef1)
END RECORD:
     
START RECORD:
Record color: 11
Record linetype: 1
Record descr: POCKET: Stock section 
V11=FreeParameter("Z Value",-1)
V1=FreeParameter("Finish allowance",0.02)
V2=FreeParameter("Width cut",0.25)
V5=FreeParameter("Minimum pickups",0)
Tool=FindUserData(".500 Bullmill",WsToolData)
Mdef1=ToolMillingDef(Tool,WsClimb)
Stat=AssociateTool(Mdef1,Tool)
Stat=MillDefCutInfo(Mdef1,1,V2,V1)
Stat=MillDefZInfo(Mdef1,1,0,0,0)
G1=WPKSectionContours("Solid.Ent.Edge5339",V11)
G2=CreateBoundarys(G1)
Paths=PocketMillBoundary(G2,Mdef1,WsCircleMoves,1,0,V5)
Stat=AutoNameGroup(Paths,"Xxx.Ent.G167")
Stat=UnAssocMachDef(Paths,Mdef1)
Stat=DeleteGroup(G1,WsTrue)
Stat=DeleteGroup(G2,WsTrue)
V8=FreeParameter("Dia comp dir (+1 left  -1 right)",1)
Stat=SetDCompDirection(Paths,V8)
Stat=DeleteEntityList(0,Mdef1)
END RECORD:
     
START RECORD:
Record color: 11
Record linetype: 1
Record descr: POCKET: Stock section 
V11=FreeParameter("Z Value",-1.25)
V1=FreeParameter("Finish allowance",0.02)
V2=FreeParameter("Width cut",0.25)
V5=FreeParameter("Minimum pickups",0)
Tool=FindUserData(".500 Bullmill",WsToolData)
Mdef1=ToolMillingDef(Tool,WsClimb)
Stat=AssociateTool(Mdef1,Tool)
Stat=MillDefCutInfo(Mdef1,1,V2,V1)
Stat=MillDefZInfo(Mdef1,1,0,0,0)
G1=WPKSectionContours("Solid.Ent.Edge5339",V11)
G2=CreateBoundarys(G1)
Paths=PocketMillBoundary(G2,Mdef1,WsCircleMoves,1,0,V5)
Stat=AutoNameGroup(Paths,"Xxx.Ent.G182")
Stat=UnAssocMachDef(Paths,Mdef1)
Stat=DeleteGroup(G1,WsTrue)
Stat=DeleteGroup(G2,WsTrue)
V8=FreeParameter("Dia comp dir (+1 left  -1 right)",1)
Stat=SetDCompDirection(Paths,V8)
Stat=DeleteEntityList(0,Mdef1)
END RECORD:
     
END OBJECT: O1
     

