thanks boss! i think I have something here but I'm not sure about it. so i select a number of toolpaths to add to an nc program, and then add them one at a time and verify, then toolpath goes into info box so i know it is done. when I add a second toolpath ( and third and fourth, etc...) do the connecting moves between that and the first get checked? The previous toolpath has already been verified - does it do it again? here's my code:
EDIT NCPROGRAM PREFERENCES MODELLOCATION "G54"
EDIT NCPROGRAM PREFERENCES WORKPLANE "G54"
//select toolpaths for posting
STRING LIST $tps = {}
$tps = INPUT ENTITY MULTIPLE toolpath "Select some toolpaths"
//create NcP
STRING ncName = INPUT "ENTER NAME"
CREATE NCPROGRAM $ncName
INFOBOX NEW "NC Verification Progress"
INFOBOX STYLE "WARNING"
INFOBOX STATE "auto_newline" TRUE
INFOBOX STATE "underline" TRUE
INFOBOX APPEND "Verified Toolpaths:"
INFOBOX STATE "auto_newline" TRUE
INFOBOX STYLE "Normal"
INFOBOX STATE "auto_newline" TRUE
//add Tps tp ncP
FOREACH $Tp IN $tps {
EDIT NCPROGRAM ; APPEND TOOLPATH $Tp
//set verification options & verify
EDIT PAR "entity('ncprogram','').Verification.MachineChecks.VerifyToolpaths" 1
EDIT PAR "entity('ncprogram','').Verification.MachineChecks.CheckConnections" 1
EDIT PAR "entity('ncprogram','').Verification.MachineClearance" .5
NCPVERIFICATION VERIFY
INFOBOX APPEND $Tp
INFOBOX STATE "auto_newline" TRUE
}
the numbers never lie