

START HEADER:
Strategy file name: /usr/weber/database/strategies/RSMBN
Instruction 1:   90 boring bar
Instruction 2:   
END HEADER:


START STRATEGY SETTINGS:
single strategy: 1
END STRATEGY SETTINGS:

START ENTITY REFERENCES:
END ENTITY REFERENCES:

START TOOL REFERENCES:
END TOOL REFERENCES:
  
START VARIABLE REFERENCES:
START VARIABLE GROUP 1: RSMBN_164:
Xxx_ext_var_prop_directory: /usr/weber/database/properties/Holders.d/BoringBars.d/RSMBN: active: 
Xxx_ext_var_holder_name: RSMBN_164: active: 
Xxx_ext_var_tool_library: /usr/weber/util/tooldata/ltools_in/bore/: active:
Xxx_ext_var_tool_prefix: 90_bore_Q4:  active:
Xxx_ext_var_tool_template: 55_bore1.0_Q4:  active:
Xxx_ext_var_edge_dist: 0.050: active: 
Xxx_ext_var_clamp_pin_dia: 0.25: active: 
Xxx_ext_var_clamp_pin_width: 0.15: active: 
END VARIABLE GROUP 1:
START VARIABLE GROUP 2: RSMBN_204:
Xxx_ext_var_prop_directory: /usr/weber/database/properties/Holders.d/BoringBars.d/RSMBN: active: 
Xxx_ext_var_holder_name: RSMBN_204: active: 
Xxx_ext_var_tool_library: /usr/weber/util/tooldata/ltools_in/bore/: active:
Xxx_ext_var_tool_prefix: 90_bore_Q4:  active:
Xxx_ext_var_tool_template: 55_bore1.0_Q4:  active:
Xxx_ext_var_edge_dist: 0.050: active: 
Xxx_ext_var_clamp_pin_dia: 0.25: active: 
Xxx_ext_var_clamp_pin_width: 0.15: active: 
END VARIABLE GROUP 2:
START VARIABLE GROUP 3: RSMBN_244:
Xxx_ext_var_prop_directory: /usr/weber/database/properties/Holders.d/BoringBars.d/RSMBN: active: 
Xxx_ext_var_holder_name: RSMBN_244: active: 
Xxx_ext_var_tool_library: /usr/weber/util/tooldata/ltools_in/bore/: active:
Xxx_ext_var_tool_prefix: 90_bore_Q4:  active:
Xxx_ext_var_tool_template: 55_bore1.0_Q4:  active:
Xxx_ext_var_edge_dist: 0.050: active: 
Xxx_ext_var_clamp_pin_dia: 0.25: active: 
Xxx_ext_var_clamp_pin_width: 0.15: active: 
END VARIABLE GROUP 3:
START VARIABLE GROUP 4: RSMBN_325:
Xxx_ext_var_prop_directory: /usr/weber/database/properties/Holders.d/BoringBars.d/RSMBN: active: 
Xxx_ext_var_holder_name: RSMBN_325: active: 
Xxx_ext_var_tool_library: /usr/weber/util/tooldata/ltools_in/bore/: active:
Xxx_ext_var_tool_prefix: 90_bore_Q4:  active:
Xxx_ext_var_tool_template: 55_bore1.0_Q4:  active:
Xxx_ext_var_edge_dist: 0.064: active: 
Xxx_ext_var_clamp_pin_dia: 0.25: active: 
Xxx_ext_var_clamp_pin_width: 0.15: active: 
END VARIABLE GROUP 4:
START VARIABLE GROUP 5: RSMBN_326:
Xxx_ext_var_prop_directory: /usr/weber/database/properties/Holders.d/BoringBars.d/RSMBN: active: 
Xxx_ext_var_holder_name: RSMBN_326: active: 
Xxx_ext_var_tool_library: /usr/weber/util/tooldata/ltools_in/bore/: active:
Xxx_ext_var_tool_prefix: 90_bore_Q4:  active:
Xxx_ext_var_tool_template: 55_bore1.0_Q4:  active:
Xxx_ext_var_edge_dist: 0.064: active: 
Xxx_ext_var_clamp_pin_dia: 0.25: active: 
Xxx_ext_var_clamp_pin_width: 0.15: active: 
END VARIABLE GROUP 5:
START VARIABLE GROUP 6: RSMBN_406:
Xxx_ext_var_prop_directory: /usr/weber/database/properties/Holders.d/BoringBars.d/RSMBN: active: 
Xxx_ext_var_holder_name: RSMBN_406: active: 
Xxx_ext_var_tool_library: /usr/weber/util/tooldata/ltools_in/bore/: active:
Xxx_ext_var_tool_prefix: 90_bore_Q4:  active:
Xxx_ext_var_tool_template: 55_bore1.0_Q4:  active:
Xxx_ext_var_edge_dist: 0.064: active: 
Xxx_ext_var_clamp_pin_dia: 0.25: active: 
Xxx_ext_var_clamp_pin_width: 0.15: active: 
END VARIABLE GROUP 6:
END VARIABLE REFERENCES:

START OBJECT: O1
Object paths off:
     
START RECORD:
Record descr: BORING BAR:Boring Bar RSMBN
V3=StringConstant(FindNamedVar("Xxx_ext_var_prop_directory",WsVariationVars))
V4=StringConstant(FindNamedVar("Xxx_ext_var_holder_name",WsVariationVars))
V5=StringConstant(JoinStrings(V3,"/",V4))
Holder_ent=ReadUserData(12501,V4,V5,WsTrue)
Stat=NameEntity(Holder_ent,"Xxx.Ent.Uds1")
V6=StringConstant(FindNamedVar("Xxx_ext_var_tool_prefix",WsVariationVars))
V7=StringConstant(JoinStrings(V6,"(",V4,")"))
V8=StringConstant(FindNamedVar("Xxx_ext_var_tool_library",WsVariationVars))
V9=StringConstant(FindNamedVar("Xxx_ext_var_tool_template",WsVariationVars))
V10=StringConstant(JoinStrings(V8,"/",V9))
Tool_ent=ReadUserData(WsToolData,V7,V10,WsTrue)
Stat=PutUserString(Tool_ent,"Tool id name:",V7)
Stat=PutUserString(Tool_ent,"Tool image:",LWC$(VariableString(V7)))
Stat= PutUserString(Tool_ent,"Holder file:",VariableString(V5))
V11=StringConstant(JoinStrings(V6," ",V4))
V12=StringConstant(MakeNameValid(V11,WsValidFileName))
V13=StringConstant(JoinStrings("boringbars","/",V12))
Stat=PutUserString(Tool_ent,"Tool image file:",V13)
V13=StringConstant("Insert orientation:")
V14=StringConstant("acute")
Stat=PutUserString(Tool_ent,V13,V14)
V15=FreeParameter("Quadrant",4)
Stat=PutUserValue(Tool_ent,"Tool quadrant:",V15)
Stat=CopyFieldsIntoTool(Holder_ent,Tool_ent,WsBoringBar)
V17=FreeParameter("Tool tip",1)
Insert_profile=ToolInsertProfile(Tool_ent,V17)
Stat=AutoNameGroup(Insert_profile,"Xxx.Ent.G2")
Pt_group=CreateGroup("")
Pz=PointXYZ(0,0,0)
Stat=AddToGroup(Pt_group,Pz)
Pc=ToolInsertCenter(Tool_ent,V17)
Stat=AddToGroup(Pt_group,Pc)
Stat=AutoNameGroup(Pt_group,"Xxx.Ent.G3")
Shank_path=ShankToolBar(Tool_ent,V17,WsFalse,WsBoringBar)
Stat=AutoNameGroup(Shank_path,"Xxx.Ent.G4")
END RECORD:
     
START RECORD:
Record descr: CIRCLE: Three tangents
C1=ThreeTangents("Xxx.Ent.G2.L7",0.4963064346782661,"Xxx.Ent.G2.L1",0.3499580518390957,"Xxx.Ent.G2.L5",0.6853597686176672,0)
Stat=NameEntity(C1,"Xxx.Ent.C20")
END RECORD:
     
START RECORD:
Record descr: LINE: Tangent at known angle
Pt=ParameterPt("Xxx.Ent.C20",0.28234425629769)
V1=FreeParameter("Angle",90)
Ln1=SelectTanAngle("Xxx.Ent.C20",V1,Pt,WsUnTrimmed)
Stat=DeleteEntity(Pt)
Stat=NameEntity(Ln1,"Xxx.Ent.L21")
END RECORD:
     
START RECORD:
Record descr: LINE: Tangent at known angle
Pt=ParameterPt("Xxx.Ent.C20",0.299623706491063)
V1=FreeParameter("Angle",0)
Ln1=SelectTanAngle("Xxx.Ent.C20",V1,Pt,WsUnTrimmed)
Stat=DeleteEntity(Pt)
Stat=NameEntity(Ln1,"Xxx.Ent.L22")
END RECORD:
     
START RECORD:
Record descr: LINE: Parallel
L1=Parallel("Xxx.Ent.L22","Xxx_ext_var_edge_dist",WsUnTrimmed,-1)
Stat=NameEntity(L1,"Xxx.Ent.L23")
END RECORD:
     
START RECORD:
Record descr: LINE: Parallel
L1=Parallel("Xxx.Ent.L21","Xxx_ext_var_edge_dist",WsUnTrimmed,-1)
Stat=NameEntity(L1,"Xxx.Ent.L24")
END RECORD:
     
START RECORD:
Record descr: CIRCLE: Center tangent point
Pc=ParameterReturnPt("Xxx.Ent.G3.P2",0,WsGeomCenter)
Pe=ParameterReturnPt("Xxx.Ent.G3.P1",0,WsGeomCenter)
C1=CenterTangent(Pc,Pe,Pe)
Stat=NameEntity(C1,"Xxx.Ent.C25")
Stat=DeleteEntity(Pc)
Stat=DeleteEntity(Pe)
END RECORD:
     
START RECORD:
Record descr: TRIM: Trim to an element
Selectpt=ParameterPt("Xxx.Ent.L24",0.4815037407518704)
Pt=Intersect("Xxx.Ent.L24","Xxx.Ent.C25",Selectpt)
No_trim=TrimEntity("Xxx.Ent.L24",Pt,1)
Stat=DeleteEntity(Selectpt)
Stat=DeleteEntity(Pt)
END RECORD:
     
START RECORD:
Record descr: TRIM: Trim to an element
Selectpt=ParameterPt("Xxx.Ent.L23",0.5170972585486293)
Pt=Intersect("Xxx.Ent.L23","Xxx.Ent.C25",Selectpt)
No_trim=TrimEntity("Xxx.Ent.L23",Pt,0)
Stat=DeleteEntity(Selectpt)
Stat=DeleteEntity(Pt)
END RECORD:
     
START RECORD:
Record descr: TRIM: Corner Trim
Selectpt=ParameterPt("Xxx.Ent.L24",0.04579023135362745)
No_trim=CornerTrim("Xxx.Ent.L24",0,"Xxx.Ent.L23",1,Selectpt)
Stat=DeleteEntity(Selectpt)
END RECORD:
     
START RECORD:
Record descr: LINE: Point angle
Pc=ParameterReturnPt("Xxx.Ent.L24",0.0740967365967366,WsGeomCenter)
V1=FreeParameter("Angle",135)
L1=PointAngle(Pc,V1)
Stat=NameEntity(L1,"Xxx.Ent.L26")
Stat=DeleteEntity(Pc)
END RECORD:
     
START RECORD:
Record descr: LINE: Point angle
Pc=ParameterReturnPt("Xxx.Ent.L23",0.9082604895104895,WsGeomCenter)
V1=FreeParameter("Angle",135)
L1=PointAngle(Pc,V1)
Stat=NameEntity(L1,"Xxx.Ent.L27")
Stat=DeleteEntity(Pc)
END RECORD:
     
START RECORD:
Record descr: LINE: Point angle
Pc=ParameterReturnPt("Xxx.Ent.G4.L2",0.9955530769230769,WsGeomCenter)
V1=FreeParameter("Angle",0)
L1=PointAngle(Pc,V1)
Stat=NameEntity(L1,"Xxx.Ent.L28")
Stat=DeleteEntity(Pc)
END RECORD:
     
START RECORD:
Record descr: CONTOUR: Unlink 
Stat=UnLink("Xxx.Ent.G4")
Stat=DeleteEntity("Xxx.Ent.G4")
END RECORD:
     
START RECORD:
Record descr: TRIM: Corner Trim
Selectpt=ParameterPt("Xxx.Ent.L23",0.7772435897435898)
No_trim=CornerTrim("Xxx.Ent.L23",0,"Xxx.Ent.L27",0,Selectpt)
Stat=DeleteEntity(Selectpt)
END RECORD:
     
START RECORD:
Record descr: TRIM: Corner Trim
Selectpt=ParameterPt("Xxx.Ent.L27",0.9857136190138126)
No_trim=CornerTrim("Xxx.Ent.L27",1,"Xxx.Ent.L28",1,Selectpt)
Stat=DeleteEntity(Selectpt)
END RECORD:
     
START RECORD:
Record descr: TRIM: Corner Trim
Selectpt=ParameterPt("Xxx.Ent.L28",0.05242586448293093)
No_trim=CornerTrim("Xxx.Ent.L28",0,"Xxx.Ent.G4.L3",1,Selectpt)
Stat=DeleteEntity(Selectpt)
END RECORD:
     
START RECORD:
Record descr: LINE: Point angle
Pc=ParameterReturnPt("Xxx.Ent.G4.L4",0.004853846153846154,WsGeomCenter)
V1=FreeParameter("Angle",0)
L1=PointAngle(Pc,V1)
Stat=NameEntity(L1,"Xxx.Ent.L29")
Stat=DeleteEntity(Pc)
END RECORD:
     
START RECORD:
Record descr: TRIM: Corner Trim
Selectpt=ParameterPt("Xxx.Ent.L26",0.4405807328881859)
No_trim=CornerTrim("Xxx.Ent.L26",1,"Xxx.Ent.L29",1,Selectpt)
Stat=DeleteEntity(Selectpt)
END RECORD:
     
START RECORD:
Record descr: TRIM: Corner Trim
Selectpt=ParameterPt("Xxx.Ent.L29",0.05879411539680631)
No_trim=CornerTrim("Xxx.Ent.L29",0,"Xxx.Ent.G4.L3",0,Selectpt)
Stat=DeleteEntity(Selectpt)
END RECORD:
     
START RECORD:
Record descr: DELETE: Entities
Stat=DeleteEntity("Xxx.Ent.L21")
Stat=DeleteEntity("Xxx.Ent.L22")
END RECORD:
     
START RECORD:
Record descr: TRIM: Corner Trim
Selectpt=ParameterPt("Xxx.Ent.L24",0.2359411421911422)
No_trim=CornerTrim("Xxx.Ent.L24",1,"Xxx.Ent.L26",0,Selectpt)
Stat=DeleteEntity(Selectpt)
END RECORD:
     
START RECORD:
Record descr: SPLIT: Split element
Pt=ParameterPt("Xxx.Ent.G4.L3",0.49328)
E2=SplitEntity("Xxx.Ent.G4.L3",Pt)
Stat=NameEntity(E2,"Xxx.Ent.L30")
Stat=DeleteEntity(Pt)
END RECORD:
     
START RECORD:
Record descr: SPLIT: Split element
Pt=ParameterPt("Xxx.Ent.G4.L3",0.4712941939669154)
E2=SplitEntity("Xxx.Ent.G4.L3",Pt)
Stat=NameEntity(E2,"Xxx.Ent.L31")
Stat=DeleteEntity(Pt)
END RECORD:
     
START RECORD:
Record descr: SPLIT: Split element
Pt=ParameterPt("Xxx.Ent.L30",0.4889485317335017)
E2=SplitEntity("Xxx.Ent.L30",Pt)
Stat=NameEntity(E2,"Xxx.Ent.L32")
Stat=DeleteEntity(Pt)
END RECORD:
     
START RECORD:
Record descr: LINE: Point angle
Pc=ParameterReturnPt("Xxx.Ent.G4.L3",0.9158637302133517,WsGeomCenter)
V1=FreeParameter("Angle",135)
L1=PointAngle(Pc,V1)
Stat=NameEntity(L1,"Xxx.Ent.L33")
Stat=DeleteEntity(Pc)
END RECORD:
     
START RECORD:
Record descr: LINE: Point angle
Pc=ParameterReturnPt("Xxx.Ent.L30",1,WsGeomCenter)
V1=FreeParameter("Angle",45)
L1=PointAngle(Pc,V1)
Stat=NameEntity(L1,"Xxx.Ent.L34")
Stat=DeleteEntity(Pc)
END RECORD:
     
START RECORD:
Record descr: TRIM: Trim to an element
Selectpt=ParameterPt("Xxx.Ent.L33",0.5197085019784869)
Pt=Intersect("Xxx.Ent.L33","Xxx.Ent.L28",Selectpt)
No_trim=TrimEntity("Xxx.Ent.L33",Pt,0)
Stat=DeleteEntity(Selectpt)
Stat=DeleteEntity(Pt)
END RECORD:
     
START RECORD:
Record descr: TRIM: Trim to an element
Selectpt=ParameterPt("Xxx.Ent.L34",0.4764879664435035)
Pt=Intersect("Xxx.Ent.L34","Xxx.Ent.L29",Selectpt)
No_trim=TrimEntity("Xxx.Ent.L34",Pt,1)
Stat=DeleteEntity(Selectpt)
Stat=DeleteEntity(Pt)
END RECORD:
     
START RECORD:
Record descr: TRIM: Corner Trim
Selectpt=ParameterPt("Xxx.Ent.L33",0.9602494952680538)
No_trim=CornerTrim("Xxx.Ent.L33",1,"Xxx.Ent.L31",1,Selectpt)
Stat=DeleteEntity(Selectpt)
END RECORD:
     
START RECORD:
Record descr: TRIM: Corner Trim
Selectpt=ParameterPt("Xxx.Ent.L34",0.04879683624907836)
No_trim=CornerTrim("Xxx.Ent.L34",0,"Xxx.Ent.L30",0,Selectpt)
Stat=DeleteEntity(Selectpt)
END RECORD:
     
START RECORD:
Record descr: DELETE: Entities
Stat=DeleteEntity("Xxx.Ent.G4.L3")
Stat=DeleteEntity("Xxx.Ent.L32")
END RECORD:
     
START RECORD:
Record descr: LINE: Chamfer - Both Trimmed
V1=FreeParameter("Chamfer",0.125)
L1=ChamferTrim(V1,"Xxx.Ent.G4.L2",0.02171384615384615,"Xxx.Ent.G4.L1",0.8271466666666667)
Stat=NameEntity(L1,"Xxx.Ent.L35")
END RECORD:
     
START RECORD:
Record descr: LINE: Chamfer - Both Trimmed
V1=FreeParameter("Chamfer",0.125)
L1=ChamferTrim(V1,"Xxx.Ent.G4.L1",0.1824872727272727,"Xxx.Ent.G4.L4",0.9857446153846153)
Stat=NameEntity(L1,"Xxx.Ent.L36")
END RECORD:
     
START RECORD:
Record descr: LINE: Two points
Ps=ParameterReturnPt("Xxx.Ent.G4.L2",0.01221592233009709,WsGeomCenter)
Pe=ParameterReturnPt("Xxx.Ent.G4.L4",0.9924908737864078,WsGeomCenter)
L1=LineTwoPoints(Ps,Pe)
Stat=NameEntity(L1,"Xxx.Ent.L37")
Stat=DeleteEntity(Ps)
Stat=DeleteEntity(Pe)
END RECORD:
     
START RECORD:
Record descr: SPLIT: Split element
Pt=ParameterPt("Xxx.Ent.L37",0.4960533333333333)
E2=SplitEntity("Xxx.Ent.L37",Pt)
Stat=NameEntity(E2,"Xxx.Ent.L38")
Stat=DeleteEntity(Pt)
END RECORD:
     
START RECORD:
Record descr: SPLIT: Split element
Pt=ParameterPt("Xxx.Ent.L37",0.4950542952370713)
E2=SplitEntity("Xxx.Ent.L37",Pt)
Stat=NameEntity(E2,"Xxx.Ent.L39")
Stat=DeleteEntity(Pt)
END RECORD:
     
START RECORD:
Record descr: SPLIT: Split element
Pt=ParameterPt("Xxx.Ent.L38",0.4970367234628003)
E2=SplitEntity("Xxx.Ent.L38",Pt)
Stat=NameEntity(E2,"Xxx.Ent.L40")
Stat=DeleteEntity(Pt)
END RECORD:
     
START RECORD:
Record descr: POINT: Endpoint
Pt=ParameterPt("Xxx.Ent.L37",1)
Stat=NameEntity(Pt,"Xxx.Ent.P41")
END RECORD:
     
START RECORD:
Record descr: POINT: Endpoint
Pt=ParameterPt("Xxx.Ent.L38",1)
Stat=NameEntity(Pt,"Xxx.Ent.P42")
END RECORD:
     
START RECORD:
Record descr: POINT: Endpoint
Pt=ParameterPt("Xxx.Ent.G4.L1",0.5)
Stat=NameEntity(Pt,"Xxx.Ent.P43")
END RECORD:
     
START RECORD:
Record descr: CIRCLE: Three tangents
C1=ThreeTangents("Xxx.Ent.P41",0,"Xxx.Ent.P43",0,"Xxx.Ent.P42",0,0)
Stat=NameEntity(C1,"Xxx.Ent.C44")
END RECORD:
     
START RECORD:
Record descr: TRIM: Corner Trim
Selectpt=ParameterPt("Xxx.Ent.L37",0.8574220870887176)
No_trim=CornerTrim("Xxx.Ent.L37",0,"Xxx.Ent.C44",0,Selectpt)
Stat=DeleteEntity(Selectpt)
END RECORD:
     
START RECORD:
Record descr: TRIM: Corner Trim
Selectpt=ParameterPt("Xxx.Ent.L40",0.1487638085218306)
No_trim=CornerTrim("Xxx.Ent.L40",1,"Xxx.Ent.C44",0,Selectpt)
Stat=DeleteEntity(Selectpt)
END RECORD:
     
START RECORD:
Record descr: DELETE: Entities
Stat=DeleteEntity("Xxx.Ent.L39")
Stat=DeleteEntity("Xxx.Ent.L38")
Stat=DeleteEntity("Xxx.Ent.P43")
Stat=DeleteEntity("Xxx.Ent.P42")
Stat=DeleteEntity("Xxx.Ent.P41")
END RECORD:
     
START RECORD:
Record descr: LINE: Two points
Ps=ParameterReturnPt("Xxx.Ent.L31",0.08374233128834356,WsGeomCenter)
Pe=ParameterReturnPt("Xxx.Ent.L37",0.6933434683461831,WsGeomCenter)
L1=LineTwoPoints(Ps,Pe)
Stat=NameEntity(L1,"Xxx.Ent.L45")
Stat=DeleteEntity(Ps)
Stat=DeleteEntity(Pe)
END RECORD:
     
START RECORD:
Record descr: LINE: Two points
Ps=ParameterReturnPt("Xxx.Ent.L30",0.9438165967064901,WsGeomCenter)
Pe=ParameterReturnPt("Xxx.Ent.L40",0.006338602351332158,WsGeomCenter)
L1=LineTwoPoints(Ps,Pe)
Stat=NameEntity(L1,"Xxx.Ent.L46")
Stat=DeleteEntity(Ps)
Stat=DeleteEntity(Pe)
END RECORD:
     
START RECORD:
Record descr: CIRCLE: Offset
V1=FreeParameter("Distance",0.25)
C1=OffsetCircle("Xxx.Ent.C25",V1,1)
Stat=NameEntity(C1,"Xxx.Ent.C47")
END RECORD:
     
START RECORD:
Record descr: LINE: Angle Bisector
Ln1=BisectorLine("Xxx.Ent.L24",-1,"Xxx.Ent.L23",-1,WsUnTrimmed)
Stat=NameEntity(Ln1,"Xxx.Ent.L48")
END RECORD:
     
START RECORD:
Record descr: POINT: Intersect
P1=ParameterPt("Xxx.Ent.L48",0.4771636238671261)
Pt=Intersect("Xxx.Ent.L48","Xxx.Ent.C20",P1)
Stat=NameEntity(Pt,"Xxx.Ent.P49")
Stat=DeleteEntity(P1)
END RECORD:
     
START RECORD:
Record descr: POINT: Intersect
P1=ParameterPt("Xxx.Ent.L48",0.442225463915266)
Pt=Intersect("Xxx.Ent.L48","Xxx.Ent.C47",P1)
Stat=NameEntity(Pt,"Xxx.Ent.P50")
Stat=DeleteEntity(P1)
END RECORD:
     
START RECORD:
Record descr: CIRCLE: Radius center
Pc=ParameterReturnPt("Xxx.Ent.P50",0,WsGeomCenter)
C1=RadiusCenter("Xxx_ext_var_clamp_pin_dia/2",Pc)
Stat=NameEntity(C1,"Xxx.Ent.C51")
Stat=DeleteEntity(Pc)
END RECORD:
     
START RECORD:
Record descr: LINE: Parallel
L1=Parallel("Xxx.Ent.L48","Xxx_ext_var_clamp_pin_width/2",WsUnTrimmed,-1)
Stat=NameEntity(L1,"Xxx.Ent.L52")
END RECORD:
     
START RECORD:
Record descr: LINE: Parallel
L1=Parallel("Xxx.Ent.L48","Xxx_ext_var_clamp_pin_width/2",WsUnTrimmed,1)
Stat=NameEntity(L1,"Xxx.Ent.L53")
END RECORD:
     
START RECORD:
Record descr: LINE: Perpendicular
Pc=ParameterReturnPt("Xxx.Ent.P49",0,WsGeomCenter)
L1=Perpendicular("Xxx.Ent.L48",Pc,WsUnTrimmed)
Stat=NameEntity(L1,"Xxx.Ent.L54")
Stat=DeleteEntity(Pc)
END RECORD:
     
START RECORD:
Record descr: CIRCLE: orient circle
Stat=OrientCircle("Xxx.Ent.C51","Xxx.Ent.L48")
END RECORD:
     
START RECORD:
Record descr: TRIM: Corner Trim
Selectpt=ParameterPt("Xxx.Ent.L53",0.4690057296885264)
No_trim=CornerTrim("Xxx.Ent.L53",0,"Xxx.Ent.L54",0,Selectpt)
Stat=DeleteEntity(Selectpt)
END RECORD:
     
START RECORD:
Record descr: TRIM: Corner Trim
Selectpt=ParameterPt("Xxx.Ent.L54",0.9952457152482419)
No_trim=CornerTrim("Xxx.Ent.L54",1,"Xxx.Ent.L52",0,Selectpt)
Stat=DeleteEntity(Selectpt)
END RECORD:
     
START RECORD:
Record descr: TRIM: Corner Trim
Selectpt=ParameterPt("Xxx.Ent.L52",0.9932971755271266)
No_trim=CornerTrim("Xxx.Ent.L52",1,"Xxx.Ent.C51",0,Selectpt)
Stat=DeleteEntity(Selectpt)
END RECORD:
     
START RECORD:
Record descr: TRIM: Corner Trim
Selectpt=ParameterPt("Xxx.Ent.L53",0.9957371534190396)
No_trim=CornerTrim("Xxx.Ent.L53",1,"Xxx.Ent.C51",0,Selectpt)
Stat=DeleteEntity(Selectpt)
END RECORD:
     
START RECORD:
Record descr: CIRCLE: Radius center
Pc=ParameterReturnPt("Xxx.Ent.P50",0,WsGeomCenter)
V1=FreeParameter("Radius",0.09375)
C1=RadiusCenter(V1,Pc)
Stat=NameEntity(C1,"Xxx.Ent.C60")
Stat=DeleteEntity(Pc)
END RECORD:
     
START RECORD:
Record descr: CIRCLE: Radius center
Pc=ParameterReturnPt("Xxx.Ent.G3.P2",0,WsGeomCenter)
V1=FreeParameter("Radius",0.09375)
C1=RadiusCenter(V1,Pc)
Stat=NameEntity(C1,"Xxx.Ent.C61")
Stat=DeleteEntity(Pc)
END RECORD:
     
START RECORD:
Record descr: DELETE: Entities
Stat=DeleteEntity("Xxx.Ent.L48")
Stat=DeleteEntity("Xxx.Ent.C47")
Stat=DeleteEntity("Xxx.Ent.C25")
Stat=DeleteEntity("Xxx.Ent.G3.P1")
Stat=DeleteEntity("Xxx.Ent.G3.P2")
Stat=DeleteEntity("Xxx.Ent.P49")
Stat=DeleteEntity("Xxx.Ent.P50")
END RECORD:
     
START RECORD:
Record descr: DELETE: Entities
Stat=DeleteEntity("Xxx.Ent.C20")
END RECORD:
     
START RECORD:
Record descr: CONTOUR: Auto link
G1=CreateGroup("Xxx.Ent.G62",WsContourGroup)
V1=FreeParameter("Contour_color",0)
V2=FreeParameter("Contour_layer",0)
Stat=SetReverseDir("Xxx.Ent.L54",WsReverse)
Stat=AddToContour(G1,"Xxx.Ent.L54",V1,V2)
Stat=AddToContour(G1,"Xxx.Ent.L52",V1,V2)
Stat=AddToContour(G1,"Xxx.Ent.C51",V1,V2)
Stat=AddToContour(G1,"Xxx.Ent.L53",V1,V2)
Stat=NameEntity(G1,"Xxx.Ent.G62")
Stat=SetNoPathFlag(G1,WsTrue)
END RECORD:
     
START RECORD:
Record descr: TRIM: Boundary trim multiple
Stat=NullReference("Xxx.Ent.G2")
Isles=CreateGroup("")
Egroup=CreateGroup("")
Stat=AddToGroup(Egroup,"Xxx.Ent.L24")
Stat=AddToGroup(Egroup,"Xxx.Ent.L23")
Stat=AddToGroup(Egroup,"Xxx.Ent.L26")
Stat=AddToGroup(Egroup,"Xxx.Ent.L27")
Stat=AddToGroup(Egroup,"Xxx.Ent.L28")
V1=FreeParameter("Side",1)
G1=BoundaryTrim("Xxx.Ent.G2",Isles,Egroup,V1)
Stat=AutoNameGroup(G1,"Xxx.Ent.G63")
Stat=UnLink(G1)
Stat=DeleteEntity(G1)
Stat=DeleteEntity(Isles)
END RECORD:
     
START RECORD:
Record descr: TRIM: Boundary trim contour
Stat=NullReference("Xxx.Ent.G62")
Isles=CreateGroup("")
V1=FreeParameter("Side",1)
G1=BoundaryTrim("Xxx.Ent.G62",Isles,"Xxx.Ent.G2.L3",V1)
Stat=AutoNameGroup(G1,"Xxx.Ent.G64")
Stat=UnLink(G1)
Stat=DeleteEntity(G1)
Stat=DeleteEntity(Isles)
END RECORD:
     
END OBJECT: O1
     

