

START HEADER:
Strategy file name: /usr/weber/util/strategy.d/CLAMP
END HEADER:

START ENTITY REFERENCES:
Xxx.Ext.Ent.P71: POINT: CLAMP LOCATOR
Xxx.Ext.Ent.L2682: LINE: LINE FOR ANGULAR PLACEMENT
END ENTITY REFERENCES:
  
START VARIABLE REFERENCES:
END VARIABLE REFERENCES:

START OBJECT: O1
Object paths off:
     
START RECORD:
Record color: 15
Record descr: LINE: Point angle
Stat=SetDefaults(WsLineLength,100)
Pc=ParameterReturnPt("Xxx.Ext.Ent.P71",0,WsGeomCenter)
L1=PointAngle(Pc,"Xxx.Ext.Ent.L2682")
Stat=NameEntity(L1,"Xxx.Ent.L1")
Stat=DeleteEntity(Pc)
END RECORD:
     
START RECORD:
Record color: 15
Record descr: LINE: Perpendicular
Pc=ParameterReturnPt("Xxx.Ext.Ent.P71",0,WsGeomCenter)
L1=Perpendicular("Xxx.Ent.L1",Pc,WsUnTrimmed)
Stat=NameEntity(L1,"Xxx.Ent.L2")
Stat=DeleteEntity(Pc)
END RECORD:
     
START RECORD:
Record color: 15
Record descr: LINE: Parallel
V1=FreeParameter("Distance",0.5)
L1=Parallel("Xxx.Ent.L1",V1,WsUnTrimmed,1)
Stat=NameEntity(L1,"Xxx.Ent.L3")
END RECORD:
     
START RECORD:
Record color: 15
Record descr: LINE: Parallel
V1=FreeParameter("Distance",0.5)
L1=Parallel("Xxx.Ent.L1",V1,WsUnTrimmed,-1)
Stat=NameEntity(L1,"Xxx.Ent.L4")
END RECORD:
     
START RECORD:
Record color: 15
Record descr: LINE: Parallel
V1=FreeParameter("Distance",6)
L1=Parallel("Xxx.Ent.L2",V1,WsUnTrimmed,-1)
Stat=NameEntity(L1,"Xxx.Ent.L5")
END RECORD:
     
START RECORD:
Record color: 15
Record descr: TRIM: Corner Trim
Selectpt=ParameterPt("Xxx.Ent.L4",0.609379)
No_trim=CornerTrim("Xxx.Ent.L4",1,"Xxx.Ent.L2",1,Selectpt)
Stat=DeleteEntity(Selectpt)
END RECORD:
     
START RECORD:
Record color: 15
Record descr: TRIM: Corner Trim
Selectpt=ParameterPt("Xxx.Ent.L2",0.08222)
No_trim=CornerTrim("Xxx.Ent.L2",0,"Xxx.Ent.L3",1,Selectpt)
Stat=DeleteEntity(Selectpt)
END RECORD:
     
START RECORD:
Record color: 15
Record descr: LINE: Chamfer
V1=FreeParameter("Chamfer",0.2)
L1=ChamferTrim(V1,"Xxx.Ent.L4",0.083484,"Xxx.Ent.L2",0.35313)
Stat=NameEntity(L1,"Xxx.Ent.L6")
END RECORD:
     
START RECORD:
Record color: 15
Record descr: LINE: Chamfer
V1=FreeParameter("Chamfer",0.2)
L1=ChamferTrim(V1,"Xxx.Ent.L2",0.6936,"Xxx.Ent.L3",0.073435)
Stat=NameEntity(L1,"Xxx.Ent.L7")
END RECORD:
     
START RECORD:
Record color: 15
Record descr: LINE: Parallel
V1=FreeParameter("Distance",0.25)
L1=Parallel("Xxx.Ent.L3",V1,WsUnTrimmed,-1)
Stat=NameEntity(L1,"Xxx.Ent.L8")
END RECORD:
     
START RECORD:
Record color: 15
Record descr: LINE: Parallel
V1=FreeParameter("Distance",0.25)
L1=Parallel("Xxx.Ent.L4",V1,WsUnTrimmed,1)
Stat=NameEntity(L1,"Xxx.Ent.L9")
END RECORD:
     
START RECORD:
Record color: 15
Record descr: LINE: Parallel
V1=FreeParameter("Distance",0.5)
L1=Parallel("Xxx.Ent.L2",V1,WsUnTrimmed,-1)
Stat=NameEntity(L1,"Xxx.Ent.L10")
END RECORD:
     
START RECORD:
Record color: 15
Record descr: CIRCLE: Three tangents
C1=ThreeTangents("Xxx.Ent.L9",0.310648,"Xxx.Ent.L10",0.495362,"Xxx.Ent.L8",0.295187,0)
Stat=NameEntity(C1,"Xxx.Ent.C11")
END RECORD:
     
START RECORD:
Record color: 15
Record descr: SPLIT: Split element
Pt=ParameterPt("Xxx.Ent.L1",0.785624)
E2=SplitEntity("Xxx.Ent.L5",Pt)
Stat=NameEntity(E2,"Xxx.Ent.L12")
Stat=DeleteEntity(Pt)
END RECORD:
     
START RECORD:
Record color: 15
Record descr: TRIM: Corner Trim
Selectpt=ParameterPt("Xxx.Ent.L4",0.57443)
No_trim=CornerTrim("Xxx.Ent.L4",0,"Xxx.Ent.L5",1,Selectpt)
Stat=DeleteEntity(Selectpt)
END RECORD:
     
START RECORD:
Record color: 15
Record descr: TRIM: Corner Trim
Selectpt=ParameterPt("Xxx.Ent.L5",0.36614)
No_trim=CornerTrim("Xxx.Ent.L5",0,"Xxx.Ent.L9",0,Selectpt)
Stat=DeleteEntity(Selectpt)
END RECORD:
     
START RECORD:
Record color: 15
Record descr: TRIM: Corner Trim
Selectpt=ParameterPt("Xxx.Ent.L3",0.576779)
No_trim=CornerTrim("Xxx.Ent.L3",0,"Xxx.Ent.L12",0,Selectpt)
Stat=DeleteEntity(Selectpt)
END RECORD:
     
START RECORD:
Record color: 15
Record descr: TRIM: Corner Trim
Selectpt=ParameterPt("Xxx.Ent.L12",0.68024)
No_trim=CornerTrim("Xxx.Ent.L12",1,"Xxx.Ent.L8",0,Selectpt)
Stat=DeleteEntity(Selectpt)
END RECORD:
     
START RECORD:
Record color: 15
Record descr: TRIM: Corner Trim
Selectpt=ParameterPt("Xxx.Ent.L9",0.546132)
No_trim=CornerTrim("Xxx.Ent.L9",1,"Xxx.Ent.C11",0,Selectpt)
Stat=DeleteEntity(Selectpt)
END RECORD:
     
START RECORD:
Record color: 15
Record descr: TRIM: Corner Trim
Selectpt=ParameterPt("Xxx.Ent.C11",0.389508)
No_trim=CornerTrim("Xxx.Ent.C11",0,"Xxx.Ent.L8",1,Selectpt)
Stat=DeleteEntity(Selectpt)
END RECORD:
     
START RECORD:
Record color: 15
Record descr: TRIM: Trim to an element
Selectpt=ParameterPt("Xxx.Ent.L1",0.54092)
Pt=Intersect("Xxx.Ent.L1","Xxx.Ent.L10",Selectpt)
No_trim=TrimEntity("Xxx.Ent.L1",Pt,1)
Stat=DeleteEntity(Selectpt)
Stat=DeleteEntity(Pt)
END RECORD:
     
START RECORD:
Record color: 15
Record descr: TRIM: Trim to an element
Selectpt=ParameterPt("Xxx.Ent.L1",0.537432)
Pt=Intersect("Xxx.Ent.L1","Xxx.Ent.L12",Selectpt)
No_trim=TrimEntity("Xxx.Ent.L1",Pt,0)
Stat=DeleteEntity(Selectpt)
Stat=DeleteEntity(Pt)
END RECORD:
     
START RECORD:
Record color: 15
Record descr: CIRCLE: Radius center
Pc=ParameterReturnPt("Xxx.Ent.L1",0.484451,WsGeomCenter)
V1=FreeParameter("Radius",0.25)
C1=RadiusCenter(V1,Pc)
Stat=NameEntity(C1,"Xxx.Ent.C13")
Stat=DeleteEntity(Pc)
END RECORD:
     
START RECORD:
Record color: 15
Record descr: COPY: Z copy mult ent
Egroup=CreateGroup("Picked Entities")
Stat=AddToGroup(Egroup,"Xxx.Ent.L2")
Stat=AddToGroup(Egroup,"Xxx.Ent.L3")
Stat=AddToGroup(Egroup,"Xxx.Ent.L4")
Stat=AddToGroup(Egroup,"Xxx.Ent.L5")
Stat=AddToGroup(Egroup,"Xxx.Ent.L6")
Stat=AddToGroup(Egroup,"Xxx.Ent.L7")
Stat=AddToGroup(Egroup,"Xxx.Ent.L8")
Stat=AddToGroup(Egroup,"Xxx.Ent.L9")
Stat=AddToGroup(Egroup,"Xxx.Ent.C11")
Stat=AddToGroup(Egroup,"Xxx.Ent.L12")
Stat=AddToGroup(Egroup,"Xxx.Ent.C13")
V1=FreeParameter("Zmove",0.5)
Move_vector=PointXYZ(0,0,V1)
G1=VectorCopyGroup(Egroup,Move_vector)
Stat=AutoNameGroup(G1,"Xxx.Ent.Vr14")
Stat=DeleteSubGroups(G1)
Stat=DeleteEntity(Egroup)
Stat=DeleteEntity(Move_vector)
END RECORD:
     
START RECORD:
Record color: 15
Record descr: RULED SURFACE: Two Elements
Surf1=RuledSurface(1,"Xxx.Ent.L6","Xxx.Ent.Vr14.L5","RULED SURFACE",0,1,1)
Stat=NameEntity(Surf1,"Xxx.Ent.Rldsrf15")
END RECORD:
     
START RECORD:
Record color: 15
Record descr: RULED SURFACE: Two Elements
Surf1=RuledSurface(1,"Xxx.Ent.L2","Xxx.Ent.Vr14.L1","RULED SURFACE",0,1,1)
Stat=NameEntity(Surf1,"Xxx.Ent.Rldsrf16")
END RECORD:
     
START RECORD:
Record color: 15
Record descr: RULED SURFACE: Two Elements
Surf1=RuledSurface(1,"Xxx.Ent.L7","Xxx.Ent.Vr14.L6","RULED SURFACE",0,1,1)
Stat=NameEntity(Surf1,"Xxx.Ent.Rldsrf17")
END RECORD:
     
START RECORD:
Record color: 15
Record descr: RULED SURFACE: Two Elements
Surf1=RuledSurface(1,"Xxx.Ent.L3","Xxx.Ent.Vr14.L2","RULED SURFACE",0,1,1)
Stat=NameEntity(Surf1,"Xxx.Ent.Rldsrf18")
END RECORD:
     
START RECORD:
Record color: 15
Record descr: RULED SURFACE: Two Elements
Surf1=RuledSurface(1,"Xxx.Ent.L12","Xxx.Ent.Vr14.L10","RULED SURFACE",0,-1,-1)
Stat=NameEntity(Surf1,"Xxx.Ent.Rldsrf20")
END RECORD:
     
START RECORD:
Record color: 15
Record descr: RULED SURFACE: Two Elements
Surf1=RuledSurface(1,"Xxx.Ent.L8","Xxx.Ent.Vr14.L7","RULED SURFACE",0,-1,-1)
Stat=NameEntity(Surf1,"Xxx.Ent.Rldsrf21")
END RECORD:
     
START RECORD:
Record color: 15
Record descr: RULED SURFACE: Two Elements
Surf1=RuledSurface(1,"Xxx.Ent.C11","Xxx.Ent.Vr14.C9","RULED SURFACE",0,-1,-1)
Stat=NameEntity(Surf1,"Xxx.Ent.Rldsrf22")
END RECORD:
     
START RECORD:
Record color: 15
Record descr: RULED SURFACE: Two Elements
Surf1=RuledSurface(1,"Xxx.Ent.L9","Xxx.Ent.Vr14.L8","RULED SURFACE",0,1,1)
Stat=NameEntity(Surf1,"Xxx.Ent.Rldsrf23")
END RECORD:
     
START RECORD:
Record color: 15
Record descr: RULED SURFACE: Two Elements
Surf1=RuledSurface(1,"Xxx.Ent.L5","Xxx.Ent.Vr14.L4","RULED SURFACE",0,-1,-1)
Stat=NameEntity(Surf1,"Xxx.Ent.Rldsrf24")
END RECORD:
     
START RECORD:
Record color: 15
Record descr: RULED SURFACE: Two Elements
Surf1=RuledSurface(1,"Xxx.Ent.L4","Xxx.Ent.Vr14.L3","RULED SURFACE",0,1,1)
Stat=NameEntity(Surf1,"Xxx.Ent.Rldsrf26")
END RECORD:
     
START RECORD:
Record color: 15
Record descr: RULED SURFACE: Two Elements
Surf1=RuledSurface(1,"Xxx.Ent.C13","Xxx.Ent.Vr14.C11","RULED SURFACE",0,-1,-1)
Stat=NameEntity(Surf1,"Xxx.Ent.Rldsrf27")
END RECORD:
     
START RECORD:
Record color: 15
Record descr: CIRCLE: Radius center
Pc=ParameterReturnPt("Xxx.Ent.Vr14.C11",0.473974,WsGeomCenter)
V1=FreeParameter("Radius",0.5)
C1=RadiusCenter(V1,Pc)
Stat=NameEntity(C1,"Xxx.Ent.C28")
Stat=DeleteEntity(Pc)
END RECORD:
     
START RECORD:
Record color: 15
Record descr: COPY: Z copy ent
V1=FreeParameter("Zmove",0.25)
Move_vector=PointXYZ(0,0,V1)
E2=VectorCopyEntity("Xxx.Ent.C28",Move_vector)
Stat=NameEntity(E2,"Xxx.Ent.C29")
Stat=DeleteEntity(Move_vector)
END RECORD:
     
START RECORD:
Record color: 15
Record descr: RULED SURFACE: Two Elements
Surf1=RuledSurface(1,"Xxx.Ent.C28","Xxx.Ent.C29","RULED SURFACE",0,1,1)
Stat=NameEntity(Surf1,"Xxx.Ent.Rldsrf30")
END RECORD:
     
START RECORD:
Record color: 15
Record descr: DISK: Circle
D1=CircleDisk("Xxx.Ent.C29")
Stat=NameEntity(D1,"Xxx.Ent.Dsk31")
END RECORD:
     
START RECORD:
Record descr: TRIM: Trim to an element
Selectpt=ParameterPt("Xxx.Ent.L1",0.05902)
Pt=Intersect("Xxx.Ent.L1","Xxx.Ent.L2",Selectpt)
No_trim=TrimEntity("Xxx.Ent.L1",Pt,1)
Stat=DeleteEntity(Selectpt)
Stat=DeleteEntity(Pt)
END RECORD:
     
START RECORD:
Record descr: TRIM: Trim to an element
Selectpt=ParameterPt("Xxx.Ent.L1",0.0485667)
Pt=Intersect("Xxx.Ent.L1","Xxx.Ent.L10",Selectpt)
No_trim=TrimEntity("Xxx.Ent.L1",Pt,0)
Stat=DeleteEntity(Selectpt)
Stat=DeleteEntity(Pt)
END RECORD:
     
START RECORD:
Record descr: TRIM: Trim to an element
Selectpt=ParameterPt("Xxx.Ent.L10",0.52046)
Pt=Intersect("Xxx.Ent.L10","Xxx.Ent.L3",Selectpt)
No_trim=TrimEntity("Xxx.Ent.L10",Pt,0)
Stat=DeleteEntity(Selectpt)
Stat=DeleteEntity(Pt)
END RECORD:
     
START RECORD:
Record descr: TRIM: Trim to an element
Selectpt=ParameterPt("Xxx.Ent.L10",0.916952)
Pt=Intersect("Xxx.Ent.L10","Xxx.Ent.L4",Selectpt)
No_trim=TrimEntity("Xxx.Ent.L10",Pt,1)
Stat=DeleteEntity(Selectpt)
Stat=DeleteEntity(Pt)
END RECORD:
     
END OBJECT: O1
     

