PLAN=getActualInspectionDir() CONFIRM=confirm("Are you done working? If Yes models will be removed") endif if CONFIRM== true then message("Clearing CAD and Saving") else message("Keeping CAD and Saving") endif if CONFIRM == true if fileExists(PLAN+"\model.sab")==true then deleteFile(PLAN+"\model.sab") deleteFile(PLAN+"\model.jpg") deleteFile(PLAN+"\model.fct") endif clearCAD() endif