- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Wie muss dieses Makro verändert werden so das, das Makro durch alle NCProgramme geht für die Zeit ohne einzelne Auszuwählen.
Am besten mit Abfrage vorher ob die Zeit für alle NCProgramme berechnet werden soll oder nur für einzelne.
ENTITY LIST tps = INPUT ENTITY MULTIPLE NCProgram "Gesamt Zeit NC Programm"
//ENTITY LIST tps = INPUT ENTITY MULTIPLE TOOLPATH "Gesamt Zeit Fräsweg"
REAL LIST vals = extract(tps,'Statistics.LeadsAndLinks.Times.Rapid')
$vals = $vals + extract(tps,'Statistics.LeadsAndLinks.Times.Ramp')
$vals = $vals + extract(tps,'Statistics.LeadsAndLinks.Times.Plunge')
$vals = $vals + extract(tps,'Statistics.LeadsAndLinks.Times.Others')
$vals = $vals + extract(tps,'Statistics.CuttingMoves.Times.Linear')
$vals = $vals + extract(tps,'Statistics.CuttingMoves.Times.Arcs')
REAL total = 0
FOREACH val In vals {
$total = total + val
}
int h = total / 60
int minuten = int (total) - int (total) / 60 * 60
real sr = total - int (total)
int si = sr * 60
//TOOLBAR COMMANDBAR RAISE
//print = "Gesamtzeit: " + string(h) + ":" + string (minuten) + //":" + string(si)
//print = " "
MESSAGE INFO "Gesamtzeit: " + string(h) + ":" + string (minuten) + ":" + string(si)
Solved! Go to Solution.